public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/25665]  New: build failure on ppc64-linux
@ 2006-01-04 10:30 fxcoudert at gcc dot gnu dot org
  2006-01-04 12:16 ` [Bug bootstrap/25665] " fxcoudert at gcc dot gnu dot org
  2006-01-04 12:46 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-01-04 10:30 UTC (permalink / raw)
  To: gcc-bugs

I'm trying to bootstrap GCC trunk on a "Linux 2.6.5-7.97-pseries64 #1 SMP Fri
Jul 2 14:21:59 UTC 2004 ppc64", and after configure by:

../gcc/configure --enable-languages=c,fortran --with-gmp=[...]
--enable-bootstrap

I get the following error:

/tmp/debug/ibin/./prev-gcc/xgcc -B/tmp/debug/ibin/./prev-gcc/
-B/tmp/debug/irun/powerpc64-unknown-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition
-Wmissing-format-attribute -Werror -fno-common   -DHAVE_CONFIG_H
-DGENERATOR_FILE  -o build/genmodes \
 build/genmodes.o build/errors.o
../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xmalloc.o)' is
incompatible with powerpc:common64 output
/usr/bin/ld: warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xexit.o)' is
incompatible with powerpc:common64 output
/usr/bin/ld: can not size stub section: Bad value
/usr/lib/../lib64/crt1.o(.text+0x1c): In function `._start':
../sysdeps/powerpc/powerpc64/elf/start.S:58: undefined reference to
`.__libc_start_main'
[... other nice error messages ...]
make[3]: *** [build/genmodes] Error 1
make[3]: Leaving directory `/tmp/debug/ibin/stage2-gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/tmp/debug/ibin'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/tmp/debug/ibin'
make: *** [all] Error 2

Did I miss something obvious? I ran through the ppc-specific install notes, but
noted nothing special. binutils are 2.15.90.0.1.1 20040303, which should be
enough (install notes specify binutils >= 2.15).


-- 
           Summary: build failure on ppc64-linux
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/25665] build failure on ppc64-linux
  2006-01-04 10:30 [Bug bootstrap/25665] New: build failure on ppc64-linux fxcoudert at gcc dot gnu dot org
@ 2006-01-04 12:16 ` fxcoudert at gcc dot gnu dot org
  2006-01-04 12:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-01-04 12:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2006-01-04 12:16 -------
With newer binutils (2.16.1), what happens is:

coudert@openpower-linux1:/tmp/debug/ibin/stage2-gcc$
/home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld
--eh-frame-hdr -V -Qy -m elf64ppc -dynamic-linker /lib64/ld64.so.1 -o
build/genchecksum /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o
/tmp/debug/ibin/./prev-gcc/crtbegin.o -L/tmp/debug/ibin/./prev-gcc
-L/lib/../lib64 -L/usr/lib/../lib64 build/genchecksum.o
../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a -lgcc --as-needed
-lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/tmp/debug/ibin/./prev-gcc/crtsavres.o /tmp/debug/ibin/./prev-gcc/crtend.o
/usr/lib/../lib64/crtn.o
GNU ld version 2.16.1
  Supported emulations:
   elf64ppc
   elf32ppclinux
   elf32ppc
   elf32ppcsim
/home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld:
warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(md5.o)' is
incompatible with powerpc:common64 output
/home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld:
warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(fopen_unlocked.o)'
is incompatible with powerpc:common64 output
/home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld:
warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xstrerror.o)' is
incompatible with powerpc:common64 output
/home/users/c/co/coudert/ppc64-linux/gfortran/gfortran_libs/ppc64-linux/bin/ld:
can not size stub section: Bad value
Segmentation fault

The backtrace for the ld segfault is:
Program received signal SIGSEGV, Segmentation fault.
bfd_putb32 (data=Unhandled dwarf expression opcode 0x93
) at libbfd.c:594
594       addr[3] = data & 0xff;
(gdb) where
#0  bfd_putb32 (data=Unhandled dwarf expression opcode 0x93
) at libbfd.c:594
#1  0x1004953c in ppc_build_one_stub (gen_entry=0x1014dbe8, in_arg=0x10139790)
    at elf64-ppc.c:7899
#2  0x10034b4c in bfd_hash_traverse (table=0x10148a58, 
    func=0x10048a10 <ppc_build_one_stub>, info=0x10139790) at hash.c:498
#3  0x1004dfc4 in ppc64_elf_build_stubs (emit_stub_syms=0, info=0x0, 
    stats=0x10139790) at elf64-ppc.c:9313
#4  0x1001bb04 in gldelf64ppc_finish () at eelf64ppc.c:407
#5  0x10016ec0 in ldemul_finish () at ldemul.c:91
#6  0x100100a4 in lang_process () at ldlang.c:4886
#7  0x10013a8c in main (argc=269719560, argv=0x10130000) at ../ld/ldmain.c:458


-- 


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/25665] build failure on ppc64-linux
  2006-01-04 10:30 [Bug bootstrap/25665] New: build failure on ppc64-linux fxcoudert at gcc dot gnu dot org
  2006-01-04 12:16 ` [Bug bootstrap/25665] " fxcoudert at gcc dot gnu dot org
@ 2006-01-04 12:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-04 12:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-04 12:45 -------
/usr/bin/ld: warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xmalloc.o)' is
incompatible with powerpc:common64 output
/usr/bin/ld: warning: powerpc:common architecture of input file
`../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xexit.o)' is
incompatible with powerpc:common64 output

Oh, the problem is different than you think.  The internal error in ld is an
binutils bug.  But cause of it is because you forgot to use the option
--with-cpu=default32 as your first stage compiler is a 32bit compiler by
default.

You can also work around that by using CFLAGS="-m64 -O2 -g".

But this is not a GCC bug at all.  Maybe it is a doc failure but how would we
know that the installed compiler is a 32bit one or a 64bit one.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-04 12:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-04 10:30 [Bug bootstrap/25665] New: build failure on ppc64-linux fxcoudert at gcc dot gnu dot org
2006-01-04 12:16 ` [Bug bootstrap/25665] " fxcoudert at gcc dot gnu dot org
2006-01-04 12:46 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).