building the trunk fails on x86_64-unknown-linux-gnu as of r130396. The failure
occurs while building fixincl. The compilation is done in 64 bit, but the link
stage in 32 bit, which of course fails:

gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../gcc430/fixincludes
-I../include -I../../../gcc430/fixincludes/../include
../../../gcc430/fixincludes/fixincl.c

... snip ....

gcc -g -O2 -g -m32 -o fixincl fixincl.o fixtests.o fixfixes.o server.o
procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: i386:x86-64 architecture of input file `fixincl.o' is incompatible
with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `fixtests.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `fixfixes.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `server.o' is incompatible
with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `procopen.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `fixlib.o' is incompatible
with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `fixopts.o' is incompatible
with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(regex.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(fopen_unlocked.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(safe-ctype.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(xmalloc.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(xstrdup.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(xstrerror.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`../libiberty/libiberty.a(xexit.o)' is incompatible with i386 output
make[3]: *** [full-stamp] Error 1

Note the explicit -m32 during the link stage.

A possibly related issue is that the configure script now explicitly checks for
32-bit versions of the MPFR and GMP libraries, also by adding a -m32 flag to
the compilation of the test program.


-- 
           Summary: bootstrap of gcc 4.3.0 fails on x86_64-unknown-linux-gnu
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: p dot vanhoof at oma dot be
  GCC host triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34218

Reply via email to