[Mesa-dev] [Bug 79263] New: Linking error in egl_gallium.la when compiling 32 bit on multiarch

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 26 07:15:34 PDT 2014


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

          Priority: medium
            Bug ID: 79263
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: Linking error in egl_gallium.la when compiling 32 bit
                    on multiarch
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: knut.tidemann at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: EGL
           Product: Mesa

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'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140526/1aab0e1f/attachment.html>


More information about the mesa-dev mailing list