| Summary: | threads_posix.h:96: undefined reference to `pthread_once' | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Vinson Lee <vlee> |
| Component: | Mesa core | Assignee: | mesa-dev |
| Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | git | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Vinson Lee
2019-05-10 21:17:54 UTC
This should fix your issue, but I haven't had time to dive in and see exactly why quad-tex uses threads.
----8<----
diff --git a/src/gallium/tests/trivial/meson.build b/src/gallium/tests/trivial/meson.build
index bbb25519e12ff466ce46..1f912d5aa46a16a06eda 100644
--- a/src/gallium/tests/trivial/meson.build
+++ b/src/gallium/tests/trivial/meson.build
@@ -24,6 +24,7 @@ foreach t : ['compute', 'tri', 'quad-tex']
'@0@.c'.format(t),
include_directories : inc_common,
link_with : [libmesa_util, libgallium, libpipe_loader_dynamic],
+ dependencies : dep_thread,
install : false,
)
endforeach
---->8----
This patch fixed my build issue. Tested-by: Vinson Lee <vlee@freedesktop.org> (In reply to Eric Engestrom from comment #1) > This should fix your issue, but I haven't had time to dive in and see > exactly why quad-tex uses threads. > > ----8<---- > diff --git a/src/gallium/tests/trivial/meson.build > b/src/gallium/tests/trivial/meson.build > index bbb25519e12ff466ce46..1f912d5aa46a16a06eda 100644 > --- a/src/gallium/tests/trivial/meson.build > +++ b/src/gallium/tests/trivial/meson.build > @@ -24,6 +24,7 @@ foreach t : ['compute', 'tri', 'quad-tex'] > '@0@.c'.format(t), > include_directories : inc_common, > link_with : [libmesa_util, libgallium, libpipe_loader_dynamic], > + dependencies : dep_thread, > install : false, > ) > endforeach > ---->8---- commit 730ceeddb557cec08a502e82b7faeb689bc91d2a Author: Vinson Lee <vlee@freedesktop.org> Date: Thu Jun 13 15:08:27 2019 -0700 meson: Add dep_thread dependency. Fix this build error on Ubuntu 18.04. /usr/bin/ld: src/util/libmesa_util.a(u_cpu_detect.c.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5' Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110663 Suggested-by: Eric Engestrom <eric@@engestrom.ch> Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Eric Engestrom <eric@engestrom.ch> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.