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: Sparcv9 port broken again.


Is the  build procedure that you give in your message the correct one? 
I followed it but used a sparc-sun-solaris2.8 gcc-3.1 from yesterday
as a bootstrap compiler. 

Here is what I get:

[snip]
stage1/xgcc -Bstage1/ -B/export/runner3/dann/build/gcc-HEAD-cvs/installed-v9/sparcv9-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/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/export/runner3/dann/build/gcc-HEAD-cvs/installed-v9/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
ld: warning: file ../libiberty/libiberty.a(hashtab.o): wrong ELF class: ELFCLASS32
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
make[2]: *** [genflags] Error 1
  

Pay attention to the ELFCLASS error

runner3:...gcc-HEAD-cvs/objsv9/gcc> file ../libiberty/hashtab.o 
../libiberty/hashtab.o: ELF 32-bit MSB relocatable SPARC Version 1
runner3:...gcc-HEAD-cvs/objsv9/gcc> file rtl.o
rtl.o:          ELF 64-bit MSB relocatable SPARCV9 Version 1

All the .o files and binaries in gcc/stage1 are 32bit and the ones 
being built for stage2 are 64bit, but libiberty is not. 



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