<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 --- - Linking error in egl_gallium.la when compiling 32 bit on multiarch"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79263">79263</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linking error in egl_gallium.la when compiling 32 bit on multiarch
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>knut.tidemann@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>EGL
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>This morning I was unable to compile a 32 bit mesa from git. 64 bit compiled
properly. This was on a 64 bit install of Arch Linux with multiarch enabled and
using gcc version 4.9.0 20140521 (prerelease) from the official repositories.
I've bisected the issue to this commit:
7a63bd960c33127dbce0e5802a7cda96dc011104
automake: correctly append the version-script
Here's my configure line for the build:
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
export LLVM_CONFIG="/usr/bin/llvm-config32"
CFLAGS="-m32 -msse -msse2 -march=i686 -mfpmath=sse -mtune=generic -O2 -pipe"
CXXFLAGS="-m32 -msse -msse2 -march=i686 -mfpmath=sse -mtune=generic -O2 -pipe"
./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--with-dri-driverdir=/usr/lib32/xorg/modules/dri \
--with-gallium-drivers=r300,r600,nouveau,svga,swrast \
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
--with-llvm-shared-libs \
--enable-gallium-egl --enable-shared-glapi \
--enable-gallium-llvm \
--enable-gallium-gbm \
--enable-glx-tls \
--enable-gles1 \
--enable-gles2 \
--enable-egl \
--enable-dri \
--enable-glx \
--disable-xa \
--enable-osmesa \
--enable-gbm \
--enable-texture-float \
--enable-32-bit \
--disable-xvmc \
--disable-vdpau \
--libdir=/usr/lib32
The linker error produced is:
make[3]: Entering directory
'/var/abs/local/mesa-git/lib32-mesa-git/src/build/src/gallium/targets/egl-static'
CC egl.lo
CC egl_pipe.lo
CC egl_st.lo
CXXLD egl_gallium.la
.libs/egl.o: In function `create_drm_screen':
egl.c:(.text+0x8f): undefined reference to `loader_get_driver_for_fd'
.libs/egl.o: In function `_eglMain':
egl.c:(.text+0x1da): undefined reference to `loader_set_logger'
collect2: error: ld returned 1 exit status
Makefile:917: recipe for target 'egl_gallium.la' failed
make[3]: *** [egl_gallium.la] Error 1
make[3]: Leaving directory
'/var/abs/local/mesa-git/lib32-mesa-git/src/build/src/gallium/targets/egl-static'</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>