Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647090

Summary: media-libs/mesa-18.0.0_r3 - libtool: ld glsl/.libs/libstandalone.a: /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/32/libstdc++.so: undefined reference to `pthread_create'
Product: Gentoo Linux Reporter: Chris Chan <cryptopsy>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log (middle truncated)
build log compressed

Description Chris Chan 2018-02-09 06:56:54 UTC
could it be related to flto?
Comment 1 Chris Chan 2018-02-09 06:57:25 UTC
Created attachment 518718 [details]
emerge --info
Comment 2 Chris Chan 2018-02-09 06:59:52 UTC
Created attachment 518720 [details]
build.log (middle truncated)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-10 12:00:21 UTC
(In reply to Chris Chan from comment #2)
> Created attachment 518720 [details]
> build.log (middle truncated)

Why truncated? The answer is usually to compress the file before uploading it.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-10 12:02:02 UTC
libtool: link: x86_64-pc-linux-gnu-g++ -m32 -fvisibility=hidden -Werror=pointer-arith -Werror=vla -march=native -O3 -pipe -flto -Wall -fno-math-errno -fno-trapping-math -Wl,-O1 -Wl,--as-needed -o glsl_compiler glsl/main.o  glsl/.libs/libstandalone.a -lz -lpthread -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/32/libstdc++.so: undefined reference to `pthread_create'
Comment 5 cryptopsy 2018-02-14 11:06:52 UTC
Created attachment 519408 [details]
build log compressed
Comment 6 Matt Turner gentoo-dev 2018-03-01 06:59:42 UTC
Yes, it's because of -flto.

*** This bug has been marked as a duplicate of bug 641808 ***