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

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


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