Bug 41700 - Gallium won't build with --enable-32-bit on a 64-bit system
Summary: Gallium won't build with --enable-32-bit on a 64-bit system
Status: RESOLVED DUPLICATE of bug 50757
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 50754
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-11 14:17 UTC by Ian Romanick
Modified: 2013-01-30 00:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ian Romanick 2011-10-11 14:17:50 UTC
The build eventually dies with the following output.  I tried to get -m32 in the right *FLAGS from configure.ac, but the Gallium build goes to great lengths to remove everything you set from there.

g++  -L/usr/lib64/llvm  -lpthread -lffi -ldl -lm  lp_test_format.o lp_test_main.o -o lp_test_format -Wl,--start-group  -L../../auxiliary/ -lgallium libllvmpipe.a -lLLVMpic16passes -lLLVMMCDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreAsmPrinter -lLLVMXCoreInfo -lLLVMSystemZCodeGen -lLLVMSystemZAsmPrinter -lLLVMSystemZInfo -lLLVMSparcCodeGen -lLLVMSparcAsmPrinter -lLLVMSparcInfo -lLLVMPowerPCCodeGen -lLLVMPowerPCAsmPrinter -lLLVMPowerPCInfo -lLLVMPIC16AsmPrinter -lLLVMPIC16CodeGen -lLLVMPIC16Info -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen -lLLVMMipsInfo -lLLVMMSP430CodeGen -lLLVMMSP430AsmPrinter -lLLVMMSP430Info -lLLVMMBlazeAsmPrinter -lLLVMMBlazeCodeGen -lLLVMMBlazeInfo -lLLVMLinker -lLLVMipo -lLLVMInterpreter -lLLVMInstrumentation -lLLVMJIT -lLLVMExecutionEngine -lLLVMCppBackend -lLLVMCppBackendInfo -lLLVMCellSPUCodeGen -lLLVMCellSPUAsmPrinter -lLLVMCellSPUInfo -lLLVMCBackend -lLLVMCBackendInfo -lLLVMBlackfinCodeGen -lLLVMBlackfinAsmPrinter -lLLVMBlackfinInfo -lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86AsmPrinter -lLLVMX86Info -lLLVMAsmParser -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen -lLLVMARMAsmPrinter -lLLVMARMInfo -lLLVMArchive -lLLVMBitReader -lLLVMAlphaCodeGen -lLLVMSelectionDAG -lLLVMAlphaAsmPrinter -lLLVMAsmPrinter -lLLVMMCParser -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMAlphaInfo -lLLVMSupport -lLLVMSystem -lstdc++  -L/opt/xorg-master-x86_64/lib -lX11 -lXext -lXdamage -lXfixes -lXxf86vm   -L/opt/xorg-master-x86_64/lib -ldrm   -lm -lpthread -ldl -Wl,--end-group
/usr/bin/ld: skipping incompatible ../../auxiliary//libgallium.a when searching for -lgallium
/usr/bin/ld: cannot find -lgallium
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXext.a when searching for -lXext
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXext.a when searching for -lXext
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXdamage.so when searching for -lXdamage
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXdamage.a when searching for -lXdamage
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXdamage.so when searching for -lXdamage
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXdamage.a when searching for -lXdamage
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXfixes.so when searching for -lXfixes
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXfixes.a when searching for -lXfixes
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXfixes.so when searching for -lXfixes
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXfixes.a when searching for -lXfixes
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXxf86vm.so when searching for -lXxf86vm
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXxf86vm.a when searching for -lXxf86vm
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXxf86vm.so when searching for -lXxf86vm
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libXxf86vm.a when searching for -lXxf86vm
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libdrm.so when searching for -ldrm
/usr/bin/ld: skipping incompatible /opt/xorg-master-x86_64/lib/libdrm.so when searching for -ldrm
collect2: ld returned 1 exit status
gmake[4]: *** [lp_test_format] Error 1

I'd like to avoid breaking the Gallium build, but I can't do that if I can't get it to build.  There's irony there somewhere.
Comment 1 Kevin DeKorte 2012-02-01 13:41:13 UTC
Patch in Bug #45466 fixes this on Fedora 16 x86_64
Comment 2 Alexandre Demers 2012-09-07 07:42:43 UTC
The proposed patch from bug 45466 was not commited. It doesn't apply correctly with latest git. However, when fixed, it helps from what I've encountered.
Comment 3 Ian Romanick 2013-01-30 00:44:25 UTC
There are several other more recent bugs related to this issue (i.e., bug #50757 and bug #60038), so I'm going to close this bug in favor of those.

*** This bug has been marked as a duplicate of bug 50757 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.