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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 17 09:52:05 UTC 2017


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

            Bug ID: 101071
           Summary: compiling glsl fails with undefined reference to
                    `pthread_create'
           Product: Mesa
           Version: 17.1
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: warpme at o2.pl
        QA Contact: mesa-dev at lists.freedesktop.org

I’m trying cross-compile mesa 17.1 on system with llvm3.8.1, gcc5.3.0 and
glibc2.17

I’m receiving following error:

libtool: link: x86_64-minimyth-linux-gnu-ranlib glsl/.libs/libstandalone.a
libtool: link: rm -fr glsl/.libs/libstandalone.lax glsl/.libs/libstandalone.lax
libtool: link: ( cd "glsl/.libs" && rm -f "libstandalone.la" && ln -s
"../libstandalone.la" "libstandalone.la" )
//home/piotro/minimyth-dev/images/build/bin/bash ../../libtool  --tag=CXX  
--mode=link x86_64-minimyth-linux-gnu-g++ -fvisibility=hidden
-Werror=pointer-arith -Werror=vla -ffat-lto-objects -lpthread -pipe -flto -pipe
-march=x86-64 -mtune=generic -O3 -mfpmath=sse -flto -m64 -Wall -fno-math-errno
-fno-trapping-math   -Wl,--as-needed -pipe -flto -pipe -march=x86-64
-mtune=generic -O3 -mfpmath=sse -flto -m64 -o glsl_compiler glsl/main.o
glsl/libstandalone.la
libtool: link: x86_64-minimyth-linux-gnu-g++ -fvisibility=hidden
-Werror=pointer-arith -Werror=vla -ffat-lto-objects -pipe -flto -pipe
-march=x86-64 -mtune=generic -O3 -mfpmath=sse -flto -m64 -Wall -fno-math-errno
-fno-trapping-math -Wl,--as-needed -pipe -flto -pipe -march=x86-64
-mtune=generic -O3 -mfpmath=sse -flto -m64 -o glsl_compiler glsl/main.o
glsl/.libs/libstandalone.a -lz -lpthread
/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/libstdc++.so:
undefined reference to `pthread_create'
/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/libstdc++.so:
undefined reference to `pthread_once'
/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/libstdc++.so:
undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[5]: *** [glsl_compiler] Error 1

exactly the same cross-compile environment and settings cross-compile 17.0.6 no
problem.

-- 
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/20170517/a7c7fdff/attachment-0001.html>


More information about the mesa-dev mailing list