[Mesa-users] /usr/lib64/libexpat.so: error adding symbols: File in wrong format

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Tue Oct 18 11:19:01 UTC 2016


No, both 32-bit and 64-bit expat are installed:

$ cat /var/log/packages/expat-2.1.0-x86_64-1 
[...]
FILE LIST:
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/xmlwf
usr/doc/
usr/doc/expat-2.1.0/
usr/doc/expat-2.1.0/COPYING
usr/doc/expat-2.1.0/Changes
usr/doc/expat-2.1.0/README
usr/doc/expat-2.1.0/reference.html
usr/include/
usr/include/expat.h
usr/include/expat_external.h
usr/lib64/
usr/lib64/libexpat.a
usr/lib64/libexpat.la
usr/lib64/libexpat.so.1.6.0
usr/lib64/pkgconfig/
usr/lib64/pkgconfig/expat.pc
usr/man/
usr/man/man1/
usr/man/man1/xmlwf.1.gz

$ cat /var/log/packages/32-expat-2.2.0-x86_64-20161010143212_ygo 
[...]
FILE LIST:
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin32/
usr/bin32/xmlwf
usr/lib/
usr/lib/libexpat.la
usr/lib/libexpat.so.1.6.2
usr/lib/pkgconfig/
usr/lib/pkgconfig/expat.pc

On Mon, 17 Oct 2016 13:57:24 +0200
arabek <arabek at gmail.com> wrote:

> You're missing the libexpat 32bit libs and development packages on your host.
> 
> 2016-10-16 13:54 GMT+02:00 YuGiOhJCJ Mailing-List
> <yugiohjcj-mailinglist at laposte.net>:
> > 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/pip
 e-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 -lLLVMIn
 stru
> >  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 -lLLVMAsmP
 arse
> >  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.
> > _______________________________________________
> > mesa-users mailing list
> > mesa-users at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-users
> 
> 
> 
> -- 
> pozdrawiam
> Wojtek


More information about the mesa-users mailing list