This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
building with multilibs on x86_64-linux-gnu I get a build failure with
a parallel make (-j2 -l7) on my dual Opteron system:
/usr/bin/ld: warning: i386 architecture of input file `.libs/allchblk.o' is incompatible with
i386:x86-64 output
The problem is that -m32 is not passed to GCC. If I run a sequential
build, this works for me, just the parallel one fails on this machine
(it works on another where I tested it).
Looking at x86_64-suse-linux-gnu/32/config.cache I noticed:
ac_cv_prog_CC=${ac_cv_prog_CC='/builds/gcc/misc/gcc/xgcc -B/builds/gcc/misc/gcc/
-B/opt/gcc/3.4-devel/x86_64-suse-linux-gnu/bin/ -B/opt/gcc/3.4-devel/x86_64-sus
e-linux-gnu/lib/ -isystem /opt/gcc/3.4-devel/x86_64-suse-linux-gnu/include -isys
tem /opt/gcc/3.4-devel/x86_64-suse-linux-gnu/sys-include'}
ac_cv_prog_CPP=${ac_cv_prog_CPP='/builds/gcc/misc/gcc/xgcc -B/builds/gcc/misc/gc
c/ -B/opt/gcc/3.4-devel/x86_64-suse-linux-gnu/bin/ -B/opt/gcc/3.4-devel/x86_64-s
use-linux-gnu/lib/ -isystem /opt/gcc/3.4-devel/x86_64-suse-linux-gnu/include -is
ystem /opt/gcc/3.4-devel/x86_64-suse-linux-gnu/sys-include -E'}
So, the -m32 is missing. But it's there for CXXCPP:
ac_cv_prog_CXXCPP=${ac_cv_prog_CXXCPP='/builds/gcc/misc/gcc/xgcc -shared-libgcc
-B/builds/gcc/misc/gcc/ -nostdinc++ -L/builds/gcc/misc/x86_64-suse-linux-gnu/32/
libstdc++-v3/src -L/builds/gcc/misc/x86_64-suse-linux-gnu/32/libstdc++-v3/src/.l
ibs -B/opt/gcc/3.4-devel/x86_64-suse-linux-gnu/bin/ -B/opt/gcc/3.4-devel/x86_64-
suse-linux-gnu/lib/ -isystem /opt/gcc/3.4-devel/x86_64-suse-linux-gnu/include -i
system /opt/gcc/3.4-devel/x86_64-suse-linux-gnu/sys-include -m32 -E'}
What's wrong here? Any ideas how to fix this?
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |