[Mesa-users] /usr/lib64/libexpat.so: error adding symbols: File in wrong format
YuGiOhJCJ Mailing-List
yugiohjcj-mailinglist at laposte.net
Sun Oct 16 11:54:20 UTC 2016
Hello,
I am trying to build mesa-11.2.2 32-bit on a 64-bit operating system (Slackware64 14.2) through multilib.
That's what I am doing:
$ export PATH="/usr/bin32:${PATH}"
$ export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib"
$ export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
$ CFLAGS="-O2 -m32" CXXFLAGS="-O2 -m32" LDFLAGS="-O2 -m32 -L/usr/lib" ./configure --prefix=/usr --bindir=/usr/bin32 --libdir=/usr/lib --sysconfdir=/etc --mandir=/usr/man --docdir=/usr/doc/mesa-11.2.2 --with-dri-driverdir=/usr/lib/xorg/modules/dri --disable-llvm-shared-libs --enable-texture-float --enable-gles1 --enable-gles2 --enable-glx --enable-egl --enable-gallium-egl --enable-gallium-llvm --enable-shared-glapi --enable-gbm --enable-glx-tls --enable-dri --enable-osmesa --with-egl-platforms=x11,drm --with-gallium-drivers=nouveau,radeonsi --with-dri-drivers=nouveau,i915,i965 --enable-vdpau --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
$ make V=1
[...]
make[3]: Entering directory '/tmp/build/wine/mesa-11.2.2/src/gallium/targets/dri'
/bin/sh ../../../../libtool --tag=CXX --mode=link g++ -O2 -m32 -Wall -fno-strict-aliasing -fno-builtin-memcmp -shared -shrext .so -module -avoid-version -Wl,--gc-sections -Wl,--version-script=../../../../src/gallium/targets/dri/dri.sym -Wl,--dynamic-list=../../../../src/gallium/targets/dri-vdpau.dyn -L/usr/lib64 -O2 -m32 -L/usr/lib -o gallium_dri.la -rpath /usr/lib/xorg/modules/dri gallium_dri_la-target.lo ../../../../src/mesa/libmesagallium.la ../../../../src/mesa/drivers/dri/common/libdricommon.la ../../../../src/mesa/drivers/dri/common/libmegadriver_stub.la ../../../../src/gallium/state_trackers/dri/libdri.la ../../../../src/gallium/auxiliary/libgalliumvl.la ../../../../src/gallium/auxiliary/libgallium.la ../../../../src/gallium/drivers/ddebug/libddebug.la ../../../../src/gallium/drivers/noop/libnoop.la ../../../../src/gallium/drivers/rbug/librbug.la ../../../../src/gallium/drivers/trace/libtrace.la -lexpat -ldrm -lm -lpthread -ldl ../../../../src/gallium/auxiliary/pipe-lo
ader/libpipe_loader_static.la ../../../../src/gallium/winsys/sw/null/libws_null.la ../../../../src/gallium/winsys/sw/wrapper/libwsw.la ../../../../src/gallium/winsys/sw/dri/libswdri.la ../../../../src/gallium/winsys/sw/kms-dri/libswkmsdri.la -ldrm ../../../../src/gallium/winsys/nouveau/drm/libnouveaudrm.la ../../../../src/gallium/drivers/nouveau/libnouveau.la -ldrm_nouveau -ldrm ../../../../src/gallium/drivers/radeonsi/libradeonsi.la -ldrm_radeon -ldrm -ldrm_amdgpu ../../../../src/gallium/winsys/radeon/drm/libradeonwinsys.la ../../../../src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la ../../../../src/gallium/drivers/radeon/libradeon.la -lLLVMAMDGPUCodeGen -lLLVMipo -lLLVMVectorize -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLLVMAMDGPUAsmParser -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMAMDGPUInfo -lLLVMAMDGPUAsmPrinter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMInstru
mentation -lLLVMProfileData -lLLVMTransformUtils -lLLVMBitWriter -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMExecutionEngine -lLLVMTarget -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMMC -lLLVMCore -lLLVMSupport -lrt -ldl -lcurses -lpthread -lz -lm
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/crti.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/32/crtbeginS.o .libs/gallium_dri_la-target.o -Wl,--whole-archive ../../../../src/mesa/.libs/libmesagallium.a ../../../../src/mesa/drivers/dri/common/.libs/libdricommon.a ../../../../src/mesa/drivers/dri/common/.libs/libmegadriver_stub.a ../../../../src/gallium/state_trackers/dri/.libs/libdri.a ../../../../src/gallium/auxiliary/.libs/libgalliumvl.a ../../../../src/gallium/auxiliary/.libs/libgallium.a ../../../../src/gallium/drivers/ddebug/.libs/libddebug.a ../../../../src/gallium/drivers/noop/.libs/libnoop.a ../../../../src/gallium/drivers/rbug/.libs/librbug.a ../../../../src/gallium/drivers/trace/.libs/libtrace.a ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_static.a ../../../../src/gallium/winsys/sw/null/.libs/libws_null.a ../../../../src/gallium/winsys/sw/wrapper/.libs/libwsw.a ../../../../src/gal
lium/winsys/sw/dri/.libs/libswdri.a ../../../../src/gallium/winsys/sw/kms-dri/.libs/libswkmsdri.a ../../../../src/gallium/winsys/nouveau/drm/.libs/libnouveaudrm.a ../../../../src/gallium/drivers/nouveau/.libs/libnouveau.a ../../../../src/gallium/drivers/radeonsi/.libs/libradeonsi.a ../../../../src/gallium/winsys/radeon/drm/.libs/libradeonwinsys.a ../../../../src/gallium/winsys/amdgpu/drm/.libs/libamdgpuwinsys.a ../../../../src/gallium/drivers/radeon/.libs/libradeon.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/lib64/../lib -Wl,-rpath -Wl,/usr/lib64/../lib64 -Wl,-rpath -Wl,/usr/lib64/../lib -Wl,-rpath -Wl,/usr/lib64/../lib64 -L/usr/lib64 -L/usr/lib /usr/lib/libgcrypt.so /usr/lib/libgpg-error.so /usr/lib64/libexpat.so /usr/lib/libexpat.so /usr/lib/libdrm.so /usr/lib64/libdrm_nouveau.so /usr/lib64/libdrm_radeon.so /usr/lib64/libdrm_amdgpu.so /usr/lib64/libdrm.so /usr/lib64/../lib/libstdc++.so -lelf -lLLVMAMDGPUCodeGen -lLLVMipo -lLLVMVectorize -lLLVMLinker -lLLVMIRReader -lLLVMAsmParse
r -lLLVMAMDGPUAsmParser -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMAMDGPUInfo -lLLVMAMDGPUAsmPrinter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMInstrumentation -lLLVMProfileData -lLLVMTransformUtils -lLLVMBitWriter -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMExecutionEngine -lLLVMTarget -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMMC -lLLVMCore -lLLVMSupport -lrt -ldl -lcurses -lpthread -lz -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/32 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/../../.. /usr/lib64/../lib64/libstdc++.so -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/32/crtendS.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/5.3
.0/../../../../lib/crtn.o -O2 -m32 -Wl,--gc-sections -Wl,--version-script=../../../../src/gallium/targets/dri/dri.sym -Wl,--dynamic-list=../../../../src/gallium/targets/dri-vdpau.dyn -O2 -m32 -Wl,-soname -Wl,gallium_dri.so -o .libs/gallium_dri.so
/usr/lib64/libexpat.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:919: recipe for target 'gallium_dri.la' failed
make[3]: *** [gallium_dri.la] Error 1
make[3]: Leaving directory '/tmp/build/wine/mesa-11.2.2/src/gallium/targets/dri'
Makefile:591: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/build/wine/mesa-11.2.2/src/gallium'
Makefile:686: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/build/wine/mesa-11.2.2/src'
Makefile:631: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
As you can see, I get this error:
/usr/lib64/libexpat.so: error adding symbols: File in wrong format
I don't know why, but the building process is linking with the wrong library.
It should be the 32-bit version of libexpat: /usr/lib/libexpat.so (instead of /usr/lib64/libexpat.so).
Any idea how to solve that please?
Thank you.
Best regards.
More information about the mesa-users
mailing list