Attempting to build GCC 3.2 on hppa64 with binutils-020820

Albert Chin
Fri Aug 23 19:20:00 GMT 2002

I'm attempting to build GCC 3.2 on hppa64-hp-hpux11.11. I built
binutils 2.11.2 (+ some patches) and then used a pre-compiled 3.0.1
binary from to build
only the C compiler in 3.2. I'm now using this newly built compiler to
finish the rest of the 3.2 build but this time I'm building against
binutils-020820 and using shared libraries (configured gcc with

gcc-3.2/objdir/config.status says:
../configure --with-gcc-version-trigger=/opt/build/gcc-3.2/gcc/version.c
--with-gnu-as --with-as=/opt/TWWfsw/gcc32-64/hppa64-hp-hpux11.11/bin/as
--with-gnu-ld --with-ld=/opt/TWWfsw/gcc32-64/hppa64-hp-hpux11.11/bin/ld
--with-included-gettext --enable-shared --host=hppa64-hp-hpux11.11
--with-local-prefix=/opt/TWWfsw/gcc32-64 --prefix=/opt/TWWfsw/gcc32-64

$ cd objdir
$ gmake bootstrap
gmake[2]: Entering directory `/opt/build/gcc-3.2/objdir/gcc'
stage1/xgcc -Bstage1/ -B/opt/TWWfsw/gcc32-64/hppa64-hp-hpux11.11/bin/
-c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -I../../gcc/.
-I../../gcc/config -I../../gcc/../include ../../gcc/gengenrtl.c -o
stage1/xgcc -Bstage1/ -B/opt/TWWfsw/gcc32-64/hppa64-hp-hpux11.11/bin/
-DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
 gengenrtl.o ../libiberty/libiberty.a
collect2: ld terminated with signal 11 [Segmentation fault]

I get the same error with binutils 2.13. Running wdb on the core file
I get:
#0  0x4000000000088c20 in elf64_hppa_check_relocs (abfd=0x8000000100052408, 
    info=0x800000010001eb80, sec=0x800000010005e670, relocs=0x8000000100056d68)
    at elf64-hppa.c:738
#1  0x4000000000095768 in elf_link_add_object_symbols (
    abfd=0x8000000100052408, info=0x800000010001eb80) at elflink.h:2189
#2  0x4000000000091458 in bfd_elf64_bfd_link_add_symbols (
    abfd=0x8000000100052408, info=0x800000010001eb80) at elflink.h:95
#3  0x4000000000047988 in load_symbols (entry=0x8000000100028ec0, 
    place=0x800003ffff7f1470) at ldlang.c:1589
#4  0x40000000000489f4 in open_input_bfds (s=0x8000000100028ec0, force=false)
    at ldlang.c:1987
#5  0x400000000004eba4 in lang_process () at ldlang.c:4221
#6  0x4000000000054808 in main (argc=18, argv=0x800003ffff7f0ec0)
    at ldmain.c:407

albert chin (

More information about the Binutils mailing list