[Mesa-dev] [Bug 101071] compiling glsl fails with undefined reference to `pthread_create'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 20 22:31:14 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101071

Sergey Kondakov <virtuousfox at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |virtuousfox at gmail.com

--- Comment #17 from Sergey Kondakov <virtuousfox at gmail.com> ---
On my LTO build of 17.3.0 in openSUSE OBS I've also got "undefined reference to
`pthread_create'" in glsl_compiler but somehow managed to go past it (I think
it was this patch:
https://lists.freedesktop.org/archives/mesa-dev/2016-May/118772.html) and stuck
with:

[   93s] + export 'CFLAGS=-fno-strict-aliasing -flto=3 -ffat-lto-objects
-flto-odr-type-merging -fuse-linker-plugin'
[   93s] + export 'CXXFLAGS=-fno-strict-aliasing -flto=3 -ffat-lto-objects
-flto-odr-type-merging -fuse-linker-plugin'
[   93s] + export 'LDFLAGS=-flto=3 -fuse-linker-plugin'
[   93s] + export FFLAGS=
…
[  109s] + ./configure --host=x86_64-suse-linux-gnu
--build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var
--sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
--disable-dependency-tracking --enable-gles1 --enable-gles2 --enable-dri
--with-platforms=x11,drm,wayland --enable-shared-glapi --enable-texture-float
--enable-lmsensors --enable-gallium-extra-hud --enable-gallium-osmesa
--enable-dri3 --enable-nine --enable-gbm --enable-glx-tls --enable-opencl
--enable-opencl-icd --with-dri-searchpath=/usr/lib64/dri --enable-llvm
--disable-llvm-shared-libs --enable-vdpau --enable-va --enable-xvmc
--enable-omx-bellagio --with-vulkan-drivers=intel,radeon --enable-xa
--with-dri-drivers=i915,i965,nouveau,r200,radeon
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,swr,svga,virgl
…
[  426s]   CCLD     libgbm.la
[  426s] /tmp/ccW1pRdh.ltrans0.ltrans.o: In function `call_once':
[  426s] <artificial>:(.text+0x11a17): undefined reference to `pthread_once'
[  426s] /tmp/ccW1pRdh.ltrans0.ltrans.o: In function `thrd_create':
[  426s] <artificial>:(.text+0x11c5e): undefined reference to `pthread_create'
[  426s] /tmp/ccW1pRdh.ltrans0.ltrans.o: In function `thrd_join':
[  426s] <artificial>:(.text+0x11c9f): undefined reference to `pthread_join'
[  426s] /tmp/ccW1pRdh.ltrans0.ltrans.o: In function `u_thread_create':
[  426s] <artificial>:(.text+0x11d07): undefined reference to `pthread_sigmask'
[  426s] <artificial>:(.text+0x11d40): undefined reference to `pthread_sigmask'
[  426s] /tmp/ccW1pRdh.ltrans0.ltrans.o: In function `u_thread_setname':
[  426s] <artificial>:(.text+0x11d76): undefined reference to
`pthread_setname_np'
[  426s] /tmp/ccW1pRdh.ltrans0.ltrans.o: In function `u_thread_get_time_nano':
[  426s] <artificial>:(.text+0x11d97): undefined reference to
`pthread_getcpuclockid'
[  426s] collect2: error: ld returned 1 exit status
[  426s] make[3]: *** [Makefile:846: libgbm.la] Error 1

Same 32 bit build fails with:
[  217s]   CXXLD    vulkan/libvulkan_intel.la
[  217s] /tmp/ccUrgMYa.ltrans0.ltrans.o: In function `_mesa_lroundevenf':
[  217s] <artificial>:(.text+0xca56): undefined reference to `lrintf'
[  217s] collect2: error: ld returned 1 exit status
[  217s] make[4]: *** [Makefile:2708: tools/aubinator_error_decode] Error 1
[  217s] make[4]: *** Waiting for unfinished jobs....

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171220/109acf02/attachment.html>


More information about the mesa-dev mailing list