<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - compiling glsl fails with undefined reference to `pthread_create'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101071">101071</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compiling glsl fails with undefined reference to `pthread_create'
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>17.1
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Other
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>warpme@o2.pl
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>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.</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>