View previous topic :: View next topic |
Author |
Message |
broly Guru
Joined: 21 Feb 2003 Posts: 345 Location: cachan 94
|
Posted: Fri Apr 09, 2004 8:23 am Post subject: [off] pb compil gcc [ résolu] |
|
|
Désolé de posté ici mais je compte sur vous car je sais que ce forum est super réactif
bon voila mon pb :
je suis au taff et on me demande de compiler un gcc 3.4.0 sur une machine sun 2.8 64 bit.
il y a déja un un gcc 2.8.xx , donc j'essai de compiler le nouveau mais il gauffre lamentablement a chaque fois, ca fait deja 3 jours que j'essai
voila ce qu'il me met avec quelque info :
Code: |
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2afd is non-aligned
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2b1d is non-aligned
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2b3d is non-aligned
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2b5d is non-aligned
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2b7d is non-aligned
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2b9d is non-aligned
ld: fatal: relocation error: R_SPARC_DISP32: file .libs/locale-inst.o: symbol <unknown>: offset 0xfd0c2bbd is non-aligned
...........................................................................................
...........................................................................................
...........................................................................................
collect2: ld returned 1 exit status
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory `/var/tmp/gcc-3.4.0-20040406/objdir/sparc-sun-solaris2.8/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/gcc-3.4.0-20040406/objdir/sparc-sun-solaris2.8/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/gcc-3.4.0-20040406/objdir/sparc-sun-solaris2.8/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/gcc-3.4.0-20040406/objdir'
make: *** [bootstrap] Error 2
# env
_=/usr/bin/env
_INIT_UTS_RELEASE=5.8
HZ=100
_INIT_UTS_MACHINE=sun4u
PATH=/usr/sbin:/usr/bin:/apps/gnu/bin
_INIT_UTS_VERSION=Generic_108528-27
_INIT_RUN_NPREV=0
EDITOR=/usr/bin/vi
_INIT_NET_STRATEGY=none
LOGNAME=root
_INIT_UTS_NODENAME=h397000r
_INIT_UTS_ISA=sparc
MAIL=/var/mail/root
_INIT_PREV_LEVEL=S
CC=/apps/gnu/bin/gcc
CXX=/apps/gnu/bin/g++
DISPLAY=H398390Z.snm.snecma:0.0
SHELL=/sbin/sh
HOME=/
_INIT_UTS_SYSNAME=SunOS
TERM=dtterm
CFLAGS=
PWD=/var/tmp/gcc-3.4.0-20040406/objdir
TZ=MET
_INIT_RUN_LEVEL=3
_INIT_UTS_PLATFORM=SUNW,Sun-Fire-V240
# which ld make cc c++
/apps/gnu/bin/ld
/apps/gnu/bin/make
/apps/gnu/bin/cc
/apps/gnu/bin/c++
|
j'ai lancé un configure --prefix=/data/apps/gnu-3.4.0 --srcdir=/var/tmp/gcc-3.4.0-20040406 --enable-languages=c,c++,objc --disable-multilib
je pense qu'il arrive pas a trouvé un librairie mais je c pas comment faire !!
A L'AIDE SVP
Last edited by broly on Fri Apr 09, 2004 9:50 am; edited 1 time in total |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3636 Location: Belgium
|
Posted: Fri Apr 09, 2004 8:43 am Post subject: Re: [off] pb compil gcc |
|
|
broly wrote: | voila ce qu'il me met avec quelque info :
Code: |
collect2: ld returned 1 exit status
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory `/var/tmp/gcc-3.4.0-20040406/objdir/sparc-sun-solaris2.8/libstdc++-v3/src'
[ ... ] |
|
Ces messages ne disent rien du tout : il faudrait remonter plus haut dans l'output pour avoir l'erreur réelle !
Ensuite, je me demande si ta version gcc actuelle (2.8.xx) est suffisante. Ne faudrait-il pas d'abord passer par une 2.95 au minimum ?
Tu as vérifié les "prérequis" sur http://gcc.gnu.org ? |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3636 Location: Belgium
|
Posted: Fri Apr 09, 2004 8:51 am Post subject: Re: [off] pb compil gcc |
|
|
ghoti wrote: | broly wrote: | voila ce qu'il me met avec quelque info : |
|
Héééé là bas : on dirait que tu as édité ton message entretemps, non ?
Désolé, mais je n'ai pas la réponse à propos des erreurs de relocation.
Toutefois : "R_SPARC_DISP32" c'est normal sur un 64 bits ? |
|
Back to top |
|
|
broly Guru
Joined: 21 Feb 2003 Posts: 345 Location: cachan 94
|
Posted: Fri Apr 09, 2004 8:57 am Post subject: |
|
|
effectivement ghoti j'ai edité mon message
heu sinon j'ai vérifié mon gcc :
Code: |
># /apps/gnu/bin/gcc -v
Reading specs from /apps/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/specs
gcc version 2.95.3 20010315 (release)
|
|
|
Back to top |
|
|
broly Guru
Joined: 21 Feb 2003 Posts: 345 Location: cachan 94
|
Posted: Fri Apr 09, 2004 9:18 am Post subject: |
|
|
apparement c un pb de ld je recompile un nouvelle version des bindutils une 2-14 et j'essaierai avec le nouvel ld |
|
Back to top |
|
|
broly Guru
Joined: 21 Feb 2003 Posts: 345 Location: cachan 94
|
Posted: Fri Apr 09, 2004 9:50 am Post subject: |
|
|
ca marche !!!
j'ai utilisé ca :
Code: |
/var/tmp/gcc-3.4.0-20040406/configure --prefix=/data/apps/gnu-3.4.0 --srcdir=/var/tmp/gcc-3.4.0-20040406 --enable-languages=c,c++,objc --disable-multilib --with-ld=/usr/ccs/bin/ld
|
merci pour ceux qui ont essayé de m'aider !! |
|
Back to top |
|
|
|