<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:virtuousfox@gmail.com" title="Sergey Kondakov <virtuousfox@gmail.com>"> <span class="fn">Sergey Kondakov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - compiling glsl fails with undefined reference to `pthread_create'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101071">bug 101071</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>virtuousfox@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - compiling glsl fails with undefined reference to `pthread_create'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101071#c17">Comment # 17</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - compiling glsl fails with undefined reference to `pthread_create'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101071">bug 101071</a>
from <span class="vcard"><a class="email" href="mailto:virtuousfox@gmail.com" title="Sergey Kondakov <virtuousfox@gmail.com>"> <span class="fn">Sergey Kondakov</span></a>
</span></b>
<pre>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:
<a href="https://lists.freedesktop.org/archives/mesa-dev/2016-May/118772.html">https://lists.freedesktop.org/archives/mesa-dev/2016-May/118772.html</a>) 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....</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>