This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to build on sparcv9-sun-solaris2.8?
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: rth at redhat dot com (Richard Henderson)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), gcc at gcc dot gnu dot org
- Date: Tue, 16 Apr 2002 13:12:33 -0500 (EST)
- Subject: Re: How to build on sparcv9-sun-solaris2.8?
>
> On Tue, Apr 16, 2002 at 12:15:33PM -0500, Brad Lucier wrote:
> > I'm confused about how to build a 64-bit (default)/32 bit (optional) gcc on
> > solaris 2.8. I've not understood completely the effects of rth's
> > configure patches, but I thought the following should work with today's CVS
> > 3.1 branch:
>
> At the moment you have to use sparc64-*. I'll get sparcv9-* re-installed
> today.
This doesn't seem to work, either.
env CC='cc -xildoff -xarch=v9' ../configure --enable-libgcj sparc64-sun-solaris2.8 ; make -j 8 bootstrap > & build.log
yields
stage1/xgcc -Bstage1/ -B/usr/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
ld: warning: file ../libiberty/libiberty.a(hashtab.o): wrong ELF class: ELFCLASS64
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 genflags.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
Also, there are a few kazillion warnings of the following form:
stage1/xgcc -Bstage1/ -B/usr/local/sparc64-sun-solaris2.8/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/print-rtl.c -o print-rtl.o
In file included from config.h:19,
from ../../gcc/print-rtl.c:23:
../../gcc/config/sparc/sparc.h:606:1: warning: "TARGET_DEFAULT" redefined
In file included from config.h:18,
from ../../gcc/print-rtl.c:23:
../../gcc/config/sparc/sol2-64.h:5:1: warning: this is the location of the previous definition