This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
[Update] : Problem while building/compiling Gcc-4.2.1 on Solaris-5.8
- From: Wim VAN-ACKOOIJ <wim dot van-ackooij at edfgdf dot fr>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 23 Oct 2007 10:40:54 +0200
- Subject: [Update] : Problem while building/compiling Gcc-4.2.1 on Solaris-5.8
Since the last time i have changed binutils, added gmp and mpfr and
fortran to the whole thing, but that still gives me the same error :
The machine is [uname -a] :
SunOS clay1r30 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-280R
I configure using :
./configure --prefix=/users/ackooij/softs/gcc-4.2.1SunOS/
--with-gmp=/logiciels/public/gmp-4.1.4
--with-mpfr=/logiciels/public/mpfr-2.2.0 --with-gnu-as
--with-as=/logiciels/public/binutils-2.16/bin/as --with-gnu-ld
--with-ld=/logiciels/public/binutils-2.16/bin/ld
--enable-languages=c,c++,fortran --disable-libgcj
--build=sparc-sun-solaris2.8
I have changed the Makefile and configure script as follows :
*-*-beos* | \
*-*-elf* | \
*-*-hpux* | \
*-*-netware* | \
*-*-nto-qnx* | \
*-*-rtems* | \
*-*-solaris2* | \
*-*-sysv45* | \
*-*-vxworks* | \
*-wrs-windiss)
#md_exec_prefix=/usr/ccs/bin
md_exec_prefix=/logiciels/public/binutils-2.16/bin
echo "Solaris Modif : /usr/ccs/bin : changed into $md_exec_prefix \n"
;;
Makefile :
echo Comparing stages 2 and 3 ; \
cd ${HOST_SUBDIR} ; \
cd stage3-gcc; \
In the end when running "make" i still get the following error messages
(this is just after the stage 3 vs 2 compare) :
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fbb
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fc3
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fcb
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fd5
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fdd
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fe5
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88fed
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88ff5
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec88ffd
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890c9
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890d1
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890d9
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890e1
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890e9
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890f1
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec890f9
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec89101
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec89109
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec8914a is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec89152 is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec8915a is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec89162 is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec8916a is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(regex.o): symbol <unknown>: offset 0xfec90f56 is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(fopen_unlocked.o): symbol <unknown>: offset
0xfec9107a is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(safe-ctype.o): symbol <unknown>: offset
0xfec910f1 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec91136
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrdup.o): symbol <unknown>: offset 0xfec9119d
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec911bb
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec911db is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(regex.o): symbol <unknown>: offset 0xfec912ea is
non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(fopen_unlocked.o): symbol <unknown>: offset
0xfec9130a is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xmalloc.o): symbol <unknown>: offset 0xfec9132a
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrdup.o): symbol <unknown>: offset 0xfec9134a
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xstrerror.o): symbol <unknown>: offset 0xfec9136a
is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../libiberty/libiberty.a(xexit.o): symbol <unknown>: offset 0xfec9138a is
non-aligned
collect2: ld returned 1 exit status
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory
`/users/ackooij/softs/gcc-4.2.1i/host-sparc-sun-solaris2.8/fixincludes'
make[1]: *** [all-fixincludes] Error 2
make[1]: Leaving directory `/users/ackooij/softs/gcc-4.2.1i'
make: *** [all] Error 2
What did i do wrong ?
By the way when running the configure script this tells me something like
"buggy version of mpfr.h detected" is this the source of a potential error
?
Thanks in advance for giving me a clear procedure to install gcc-4.2.1 on
sun. By the way i use gcc-4.1.1 to compile :
[/logiciels/public/gcc-4.1.1/bin/gcc] This is the "standard version" of
gcc when typing which gcc.
Wim