<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Can't compile GLU 32bit on 64bit"
href="https://bugs.freedesktop.org/show_bug.cgi?id=61318">61318</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Can't compile GLU 32bit on 64bit
</td>
</tr>
<tr>
<th>Severity</th>
<td>critical
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexandre.f.demers@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>GLU
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>When crosscompiling, building GLU 32 bit on 64 bit system fails:
CXXLD libGLU.la
/usr/lib/x86_64-linux-gnu/libGL.so: could not read symbols: File in wrong
format
collect2: error: ld returned 1 exit status
make: *** [libGLU.la] Error 1
I use the following to build:
if [ "$BUILD32" = "true" ]; then
echo "Building 32 bit"
export CFLAGS='-m32'
export CXXFLAGS='-m32'
export LLVM_CONFIG='/usr/bin/llvm-config32'
./autogen.sh --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
--prefix=/usr --libdir=/usr/lib/i386-linux-gnu
--includedir=/usr/include/i386-linux-gnu
fi
make -j $NUM_THREADS</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>