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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 18 13:19:36 UTC 2017


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

--- Comment #4 from Emil Velikov <emil.l.velikov at gmail.com> ---
> [piotro at minimyth-dev ~]$ ldd -r
> /home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/
> 5.3.0/libstdc++.so
>         linux-vdso.so.1 (0x00007ffee99fd000)
>         libm.so.6 => /usr/lib/libm.so.6 (0x00007faef68e6000)
>         libc.so.6 => /usr/lib/libc.so.6 (0x00007faef6542000)
>         /usr/lib64/ld-linux-x86-64.so.2 (0x000055db774d7000)
>         libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007faef632b000)

Right, so the libstdc++.so is fine and the link error is misleading.

> why then I hasn't any issues like this with last 10.0 ... 17.0 mesa versions?

Your guess is as good as mine. As you can see in the command line we explicitly
request linkage against libpthread.so (the -lpthread bit), yet GCC fails to do
so.

Couple of things to check:
 - does the minimyth environment have a libpthread.so library?
 - can you trace that correct one is attempted/used in the process?

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


More information about the mesa-dev mailing list