This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

assert failure in CVS ld



I am trying to bootstrap today's CVS gcc on sparc64-sun-solaris2.8.
I extracted CVS binutils today, and configured explicitly as 
"sparc64-sun-solaris2.8" (which configure failed to deduce by itself).

In gcc stage 2, ld crashed as follows:

stage1/xgcc -Bstage1/ -B/local/home/ncm/Gnu/local/sparc64-sun-solaris2.8/bin/ -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o genflags \
 genflags.o rtl.o read-rtl.o bitmap.o  ggc-none.o gensupport.o print-rtl.o errors.o ../libiberty/libiberty.a
collect2: ld terminated with signal 11 [Segmentation Fault]
/local/home/ncm/Gnu/local/bin/ld: warning: sparc architecture of input file `../libiberty/libiberty.a(hashtab.o)' is incompatible with sparc:v9 output
/local/home/ncm/Gnu/local/bin/ld: warning: sparc architecture of input file `../libiberty/libiberty.a(obstack.o)' is incompatible with sparc:v9 output
/local/home/ncm/Gnu/local/bin/ld: warning: sparc architecture of input file `../libiberty/libiberty.a(safe-ctype.o)' is incompatible with sparc:v9 output
/local/home/ncm/Gnu/local/bin/ld: warning: sparc architecture of input file `../libiberty/libiberty.a(xmalloc.o)' is incompatible with sparc:v9 output
/local/home/ncm/Gnu/local/bin/ld: warning: sparc architecture of input file `../libiberty/libiberty.a(xstrdup.o)' is incompatible with sparc:v9 output
/local/home/ncm/Gnu/local/bin/ld: warning: sparc architecture of input file `../libiberty/libiberty.a(xexit.o)' is incompatible with sparc:v9 output
/local/home/ncm/Gnu/local/bin/ld: BFD 2.11.93 20011221 assertion fail ../../../src/bfd/elflink.h:2653
/local/home/ncm/Gnu/local/bin/ld: BFD 2.11.93 20011221 assertion fail ../../../src/bfd/elflink.h:2653
/local/home/ncm/Gnu/local/bin/ld: BFD 2.11.93 20011221 assertion fail ../../../src/bfd/elflink.h:2653
/local/home/ncm/Gnu/local/bin/ld: BFD 2.11.93 20011221 assertion fail ../../../src/bfd/elflink.h:2653
/local/home/ncm/Gnu/local/bin/ld: BFD 2.11.93 20011221 assertion fail ../../../src/bfd/elflink.h:2653
/local/home/ncm/Gnu/local/bin/ld: BFD 2.11.93 20011221 assertion fail ../../../src/bfd/elflink.h:2653

The line that fails is

      BFD_ASSERT (shdr->sh_entsize == sizeof (Elf_External_Rela));

in elf_link_read_relocs_from_section (
     abfd, shdr, external_relocs, internal_relocs).

(BTW, during the gcc build I noticed lots of warnings about string literals
bigger than 509 characters; in one case, the string was over 3.6K.)

Binutils and stage1  were built with gcc-3.0.1.
I did not do "autoconfig; automake" before configuring, in either
binutils or gcc.  Ought I to have?  If so, what versions of autotools 
do I need?

Note I am not on any binutils lists; cc: me if I can help.

Nathan Myers
ncm at cantrip dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]