compiling gcc-4.0.2 on solaris 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am on:

SunOS hostname 5.9 Generic_118558-14 sun4u sparc SUNW,Sun-Blade-1500.
I try to do a bootstrap with the following using gnu make 3.80:

mkdir objectdir;cd objectdir
CC="cc -xildoff -xarch=v9"
../gcc-4.0.2/configure
make bootstrap

I get the following errors:

stage1/xgcc -Bstage1/ -B/usr/local/sparc-sun-solaris2.9/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o
build/genmodes \
 build/genmodes.o build/errors.o ../build-sparc-sun-solaris2.9/libiberty/libiberty.a
ld: warning: file ../build-sparc-sun-solaris2.9/libiberty/libiberty.a(hashtab.o): wrong ELF class: ELFCLASS64
Undefined                       first referenced
 symbol                             in file
htab_create_alloc                   build/genmodes.o
htab_find                           build/genmodes.o
xcalloc                             build/genmodes.o
htab_hash_string                    build/genmodes.o
htab_find_slot                      build/genmodes.o
xmalloc                             build/genmodes.o
xstrdup                             build/genmodes.o
ld: fatal: Symbol referencing errors. No output written to build/genmodes
collect2: ld returned 1 exit status
make[2]: *** [build/genmodes] Error 1
make[2]: Leaving directory `/export/home/src/net/gnu/odir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/export/home/src/net/gnu/odir/gcc'
make: *** [bootstrap] Error 2

I am new to the sun environment, so any help would be appreciated. Thanks!


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux