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?


Hi,

i also have problems compiling gcc 3.1 (release) on sparcv9-sun-solaris2.8
using SUNWspro CC. I used the following command line:

CC="cc -xildoff -xarch=v9" ../gcc-3.1/configure \
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld

i get this error:

Bootstrapping the compiler
make[1]: Entering directory `/data/build/gcc-sparc-sun-solaris2.8/gcc'
/usr/local/bin/make CC="stage1/xgcc -Bstage1/
-B/usr/local/sparc-sun-solaris2.8/bin/" \
         STAGE_PREFIX=stage1/ \
         CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/local/lib
LANGUAGES="c gcov c++ f77 java objc" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/data/build/gcc-sparc-sun-solaris2.8/gcc'
stage1/xgcc -Bstage1/ -B/usr/local/sparc-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
collect2: ld returned 1 exit status
make[2]: *** [genflags] Error 1
make[2]: Leaving directory `/data/build/gcc-sparc-sun-solaris2.8/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/data/build/gcc-sparc-sun-solaris2.8/gcc'
make: *** [bootstrap] Error 2


This topic was already discussed in april, but i didn't find an answer.

Regards,
 Kai.


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