This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problems with 3.1: sparc64-sun-solaris2.8
- From: Mark Benvenuto <markb at cs dot columbia dot edu>
- To: gcc at gcc dot gnu dot org
- Cc: markb at cs dot columbia dot edu
- Date: 18 Apr 2002 00:48:31 -0400
- Subject: problems with 3.1: sparc64-sun-solaris2.8
Should I not be building with Solaris ld or is this a deeper problem?
Current CVS for 3.1 branch.
../gcc/configure --host=sparc64-sun-solaris2.8
--prefix=/export/build/gcc/install/
stage1/xgcc -Bstage1/ -B/export/build/gcc/install//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/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include \
../../gcc/gcc/gencheck.c -o gencheck.o
stage1/xgcc -Bstage1/ -B/export/build/gcc/install//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 genpreds \
genpreds.o ../libiberty/libiberty.a
stage1/xgcc -Bstage1/ -B/export/build/gcc/install//sparc64-sun-solaris2.8/bin/ -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -DGENERATOR_FILE -o f/fini \
f/fini.o ../libiberty/libiberty.a
ld: warning: file ../libiberty/libiberty.a(safe-ctype.o): wrong ELF class: ELFCLASS32
Undefined first referenced
symbol in file
_sch_toupper f/fini.o
_sch_tolower f/fini.o
_sch_istable f/fini.o
xmalloc f/fini.o
ld: fatal: Symbol referencing errors. No output written to f/fini
collect2: ld returned 1 exit status
make[2]: *** [f/fini] Error 1
make[2]: Leaving directory `/export/build/gcc/objs/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/export/build/gcc/objs/gcc'
make: *** [bootstrap] Error 2
$ /usr/ccs/bin/elfdump safe-ctype.o
ELF Header
ei_magic: { 0x7f, E, L, F }
ei_class: ELFCLASS32 ei_data: ELFDATA2MSB
e_machine: EM_SPARC e_version: EV_CURRENT
e_type: ET_REL
e_flags: 0
e_entry: 0 e_ehsize: 52 e_shstrndx: 9
e_shoff: 0x1074 e_shentsize: 40 e_shnum: 12
e_phoff: 0 e_phentsize: 0 e_phnum: 0
....
Mark