This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem with parallel make
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Sat, 18 Oct 2003 14:27:17 +0200
- Subject: Re: problem with parallel make
- References: <holls6h1yr.fsf@byrd.suse.de>
> 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 bug only apperas when -j2 is used, with -j4 it is gone. I expect when more
processes are used something gets build soon enough.
Following patch caused or exposed it.
2003-08-27 Daniel Jacobowitz <drow@mvista.com>
* configure.in: Set RAW_CXX_FOR_TARGET if unset.
* configure: Regenerated.
Josef
> 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'}