This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sparcv9 port broken again.
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: zack at codesourcery dot com (Zack Weinberg)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), gcc at gcc dot gnu dot org
- Date: Thu, 20 Dec 2001 14:10:44 -0500 (EST)
- Subject: Re: Sparcv9 port broken again.
>
> On Thu, Dec 20, 2001 at 01:21:25PM -0500, Brad Lucier wrote:
> > On Solaris2.8 with the sun assembler/linker, and this command
> >
> > ( /bin/rm -rf * ) ; ( env CC='cc -xildoff' ../configure --prefix=/pkgs/gcc-3.1v9 sparcv9-sun-solaris2.8 ) ; ( make -j 4 bootstrap > & build.log )
> >
> > with today's CVS sources, bootstrap fails with
> >
> > stage1/xgcc -Bstage1/ -B/pkgs/gcc-3.1v9/sparcv9-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
> > Undefined first referenced
> > symbol in file
> > htab_create read-rtl.o
> > _obstack_begin genflags.o
> > _sch_toupper genflags.o
> > obstack_free read-rtl.o
> > htab_find read-rtl.o
> > _sch_istable read-rtl.o
> > xstrdup read-rtl.o
> > xmalloc genflags.o
> > htab_find_slot read-rtl.o
> > _obstack_newchunk genflags.o
> > htab_traverse read-rtl.o
>
> All these symbols are supposed to be provided by libiberty. Can you
> please check the contents of that library.
ar -t ../libiberty/libiberty.a
argv.o
alloca.o
choose-temp.o
concat.o
cplus-dem.o
cp-demangle.o
dyn-string.o
fdmatch.o
fnmatch.o
getopt.o
getopt1.o
getpwd.o
getruntime.o
hashtab.o
hex.o
floatformat.o
lbasename.o
md5.o
make-temp-file.o
objalloc.o
obstack.o
partition.o
pexecute.o
regex.o
safe-ctype.o
sort.o
spaces.o
splay-tree.o
strerror.o
strsignal.o
xatexit.o
xexit.o
xmalloc.o
xmemdup.o
xstrdup.o
xstrerror.o
ternary.o
fibheap.o
asprintf.o
mkstemps.o
setenv.o
sigsetmask.o
vasprintf.o
strncmp.o
> It's interesting that the failure occurs in stage 2. You're building
> with the Sun compiler, so that suggests a problem with GCC (probably
> collect2) talking to the Sun linker. -v output for the above command
> might provide some clues.
banach-221% stage1/xgcc -v -Bstage1/ -B/pkgs/gcc-3.1v9/sparcv9-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
Reading specs from stage1/specs
Configured with: ../configure --prefix=/pkgs/gcc-3.1v9 sparcv9-sun-solaris2.8
Thread model: posix
gcc version 3.1 20011220 (experimental)
stage1/collect2 -V -Y P,/usr/lib/sparcv9 -Qy -o genflags stage1/crt1.o stage1/crti.o /usr/lib/sparcv9/values-Xa.o stage1/crtbegin.o -Lstage1 -L/pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1 -L/usr/ccs/bin -L/usr/ccs/lib -L/pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1/../../.. genflags.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o print-rtl.o errors.o ../libiberty/libiberty.a -lgcc -lgcc_eh -lc -lgcc -lgcc_eh stage1/crtend.o stage1/crtn.o
ld: Software Generation Utilities - Solaris-ELF (4.0)
Undefined first referenced
symbol in file
htab_create read-rtl.o
_obstack_begin genflags.o
_sch_toupper genflags.o
obstack_free read-rtl.o
htab_find read-rtl.o
_sch_istable read-rtl.o
xstrdup read-rtl.o
xmalloc genflags.o
htab_find_slot read-rtl.o
_obstack_newchunk genflags.o
htab_traverse read-rtl.o
ld: fatal: Symbol referencing errors. No output written to genflags
collect2: ld returned 1 exit status
Brad