[Mesa-users] /usr/lib64/libexpat.so: error adding symbols: File in wrong format
Sérgio Basto
sergio at serjux.com
Tue Oct 18 11:47:29 UTC 2016
in http://www.slackware.com/releasenotes/packages14.2.php you got
mesa-11.2.2-i586-1.txz already compiled !
On Ter, 2016-10-18 at 13:13 +0200, YuGiOhJCJ Mailing-List wrote:
> Indeed, I used the wrong "build" option but I get the same result
> with the right one:
> $ 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"
> $ export CC="gcc -m32"
> $ export CXX="g++ -m32"
> $ export PKG_CONFIG_PATH="/usr/lib32/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=x86_64-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=CC --mode=compile gcc -m32
> -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\"
> -DPACKAGE_VERSION=\"11.2.2\" -DPACKAGE_STRING=\"Mesa\ 11.2.2\"
> -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?pro
> duct=Mesa\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\"
> -DVERSION=\"11.2.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE___BUILTIN_BSWAP32=1
> -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1
> -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1
> -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1
> -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1
> -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1
> -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1
> -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1
> -DHAVE_FUNC_ATTRIB
> UTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1
> -DHAVE_FUNC_ATTRIBUTE_UNUSED=1
> -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_DLADDR=1
> -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -DHAVE_SHA1_IN_LIBGCRYPT=1
> -I. -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE
> -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H
> -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN
> -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM
> -DHAVE_LIBUDEV -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING
> -DGLX_USE_TLS -DHAVE_ALIAS -DHAVE_DRI3 -DHAVE_MINCORE
> -DHAVE_LLVM=0x0308 -DMESA_LLVM_VERSION_PATCH=0 -DGALLIUM_DDEBUG
> -DGALLIUM_NOOP -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_NOUVEAU -
> DGALLIUM_RADEONSI -I../../../../src/mapi
> -I../../../../src/mesa -I../../../../src
> -I../../../../src/mesa/drivers/dri/common
> -I../../../../src/gallium/state_trackers/dri -I../../../../src
> -I../../../../include -I../../../../src/loader
> -I../../../../src/gallium/include -I../../../../src/g
> allium/auxiliary -I../../../../src/gallium/drivers
> -I../../../../src/gallium/winsys -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG
> -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H
> -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN
> -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM -DHAVE_LIBUDEV
> -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS
> -DHAVE_ALIAS -DHAVE_DRI3 -DHAVE_MINCORE -DHAVE_LLVM=0x0308
> -DMESA_LLVM_VERSION_PATCH=0 -pthread -I/usr/include/libdrm
> -fvisibility=hidden -O2 -m32 -Wall -std=c99 -Werror=implicit-
> function-declaration -Werror=missing-prototypes -fno-strict-aliasing
> -fno-math-errno -fno-trapping-math -fno-builtin-memcmp -MT
> gallium_dri_la-target.lo -MD -MP -MF .deps/gallium_dri_la-target.Tpo
> -c -o gallium_dri_la-target.lo `test -f 'target.c' || echo
> './'`target.c
> libtool: compile: gcc -m32 -DPACKAGE_NAME=\"Mesa\"
> -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"11.2.2\" "-
> DPACKAGE_STRING=\"Mesa 11.2.2\"" "-DPACKAGE_BUGREPORT=\"https://bugs.
> freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"mesa\" -DVERSION=\"11.2.2\" -D_FILE_OFFSET_BITS=64
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
> -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1
> -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1
> -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1
> -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1
> -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1
> -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1
> -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1
> -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1
> -DHAVE_FUNC_ATTRIBUTE
> _PURE=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1
> -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_DLADDR=1
> -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -DHAVE_SHA1_IN_LIBGCRYPT=1
> -I. -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE
> -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H
> -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN
> -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM
> -DHAVE_LIBUDEV -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING
> -DGLX_USE_TLS -DHAVE_ALIAS -DHAVE_DRI3 -DHAVE_MINCORE
> -DHAVE_LLVM=0x0308 -DMESA_LLVM_VERSION_PATCH=0 -DGALLIUM_DDEBUG
> -DGALLIUM_NOOP -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_NOUVEAU
> -DGALLIUM_RADEONSI -I../../../../src/mapi -I../../../../src/mesa
> -I../../../../src -I../../../../src/mesa/drivers/dri/common
> -I../../../../src/gallium/state_trackers/dri -I../../../../src
> -I../../../../include -I../../../../src/loader
> -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary
> -I../../../../src/gallium/dri
> vers -I../../../../src/gallium/winsys -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG
> -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H
> -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN
> -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM -DHAVE_LIBUDEV
> -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS
> -DHAVE_ALIAS -DHAVE_DRI3 -DHAVE_MINCORE -DHAVE_LLVM=0x0308
> -DMESA_LLVM_VERSION_PATCH=0 -pthread -I/usr/include/libdrm
> -fvisibility=hidden -O2 -m32 -Wall -std=c99 -Werror=implicit-
> function-declaration -Werror=missing-prototypes -fno-strict-aliasing
> -fno-math-errno -fno-trapping-math -fno-builtin-memcmp -MT
> gallium_dri_la-target.lo -MD -MP -MF .deps/gallium_dri_la-target.Tpo
> -c target.c -fPIC -DPIC -o .libs/gallium_dri_la-target.o
> mv -f .deps/gallium_dri_la-target.Tpo .deps/gallium_dri_la-target.Plo
> /bin/sh ../../../../libtool --tag=CXX --mode=link g++ -m32 -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/pi
> pe-loader/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/libradeo
> nwinsys.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 -lLLVMI
> nstrumentation -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++ -m32 -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
> ../../../../sr
> c/gallium/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 -lLLVMAsm
> Parser -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-gn
> u/5.3.0/../../../../lib/crtn.o -m32 -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
>
> Any other idea?
>
> On Mon, 17 Oct 2016 11:51:20 -0600
> Brian Paul <brianp at vmware.com> wrote:
>
> >
> > On 10/16/2016 05:54 AM, YuGiOhJCJ Mailing-List wrote:
> > >
> > > 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
> > When I build 32-bit on a 64-bit system I use these options:
> >
> > --build=x86_64-linux-gnu --host=i686-linux-gnu
> >
> > Looks like you're using 'i686-pc-linux-gnu' for both --build and --
> > host.
> > Maybe that's the problem.
> >
> > -Brian
> >
> >
> >
> > >
> > > $ 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-l
> >
> > o
> > >
> > > 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/libr
> > > adeonwinsys.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 -lLLVMI
> nst
> >
> > ru
> > >
> > > 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
> /ga
> >
> > l
> > >
> > > 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 -lLLVMAsm
> Par
> >
> > se
> > >
> > > 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-gn
> u/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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freede
> > > sktop.org_mailman_listinfo_mesa-
> > > 2Dusers&d=CwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-
> > > uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-
> > > 8uDKartPGbomVj8&m=EruYKew7UhZEMzNwrtazwYx-
> > > F3pvZDCST9a4NQpuYWM&s=BCgCaMy7bAjbBCVKPzFC11qrGaAIUDvXlroqMf88g40
> > > &e=
> > >
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-users
--
Sérgio M. B.
More information about the mesa-users
mailing list