Bonjour, J'essaie de construire un cross compileur pour AMD64 (Opteron 242) avec gcc-3.3.3 et gcc-3.4.0. Je suis sur Debian unstable :
$ gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.3 (Debian 20040401) $ uname -a Linux hal 2.4.23-amd64 #1 Sat Nov 29 12:52:06 EST 2003 x86_64 GNU/Linux J'ai compilé avec succès binutils pour AMD64 avec ./configure --target=x86_64-unknown-linux --prefix=/opt/x86-64 Pour gcc, j'utilise PATH=/opt/x86-64/bin:$PATH CFLAGS="-O2 -Dinhibit_libc" ./configure --target=x86_64-unknown-linux --prefix=/opt/x86-64 \ --enable-languages=c \ --disable-shared --disable-multilib --enable-threads=single J'obtiens pour gcc-3.3.3 et gcc-3.40 respectivement : /home/yann/src/gcc/gcc-3.3.3/gcc/xgcc -B/home/yann/src/gcc/gcc-3.3.3/gcc/ -B/opt/x86-64/x86_64-unknown-linux/bin/ -B/opt/x86-64/x86_64-unknown-linux/lib/ -isystem /opt/x86-64/x86_64-unknown-linux/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I. -I./. -I./config -I./../include -fexceptions -c ./unwind-dw2.c -o libgcc/./unwind-dw2.o unwind-dw2.c: In function `uw_frame_state_for': unwind-dw2.c:942: error: structure has no member named `rsp' unwind-dw2.c:942: error: structure has no member named `rax' unwind-dw2.c:942: error: structure has no member named `rdx' unwind-dw2.c:942: error: structure has no member named `rcx' unwind-dw2.c:942: error: structure has no member named `rbx' unwind-dw2.c:942: error: structure has no member named `rsi' unwind-dw2.c:942: error: structure has no member named `rdi' unwind-dw2.c:942: error: structure has no member named `rbp' unwind-dw2.c:942: error: structure has no member named `r8' unwind-dw2.c:942: error: structure has no member named `r9' unwind-dw2.c:942: error: structure has no member named `r10' unwind-dw2.c:942: error: structure has no member named `r11' unwind-dw2.c:942: error: structure has no member named `r12' unwind-dw2.c:942: error: structure has no member named `r13' unwind-dw2.c:942: error: structure has no member named `r14' unwind-dw2.c:942: error: structure has no member named `r15' unwind-dw2.c:942: error: structure has no member named `rip' make[2]: *** [libgcc/./unwind-dw2.o] Error 1 make[2]: Leaving directory `/usr/local/src/gcc/gcc-3.3.3/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/usr/local/src/gcc/gcc-3.3.3/gcc' make: *** [all-gcc] Error 2 /home/yann/src/gcc/gcc-3.4.0/gcc/xgcc -B/home/yann/src/gcc/gcc-3.4.0/gcc/ -B/opt/x86-64/x86_64-unknown-linux/bin/ -B/opt/x86-64/x86_64-unknown-linux/lib/ -isystem /opt/x86-64/x86_64-unknown-linux/include -isystem /opt/x86-64/x86_64-unknown-linux/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I. -I./. -I./../include -fexceptions -c ./unwind-dw2.c -o libgcc/./unwind-dw2.o ./unwind-dw2.c: In function `uw_frame_state_for': ./unwind-dw2.c:1022: error: structure has no member named `rsp' ./unwind-dw2.c:1022: error: structure has no member named `rax' ./unwind-dw2.c:1022: error: structure has no member named `rdx' ./unwind-dw2.c:1022: error: structure has no member named `rcx' ./unwind-dw2.c:1022: error: structure has no member named `rbx' ./unwind-dw2.c:1022: error: structure has no member named `rsi' ./unwind-dw2.c:1022: error: structure has no member named `rdi' ./unwind-dw2.c:1022: error: structure has no member named `rbp' ./unwind-dw2.c:1022: error: structure has no member named `r8' ./unwind-dw2.c:1022: error: structure has no member named `r9' ./unwind-dw2.c:1022: error: structure has no member named `r10' ./unwind-dw2.c:1022: error: structure has no member named `r11' ./unwind-dw2.c:1022: error: structure has no member named `r12' ./unwind-dw2.c:1022: error: structure has no member named `r13' ./unwind-dw2.c:1022: error: structure has no member named `r14' ./unwind-dw2.c:1022: error: structure has no member named `r15' ./unwind-dw2.c:1022: error: structure has no member named `rip' make[2]: *** [libgcc/./unwind-dw2.o] Error 1 make[2]: Leaving directory `/usr/local/src/gcc/gcc-3.4.0/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/usr/local/src/gcc/gcc-3.4.0/gcc' make: *** [all-gcc] Error 2 Qu'est-ce que j'ai oublié ? Par avance, merci. Yann -- http://www.non-violence.org/ | Site collaboratif sur la non-violence http://www.forget-me.net/ | Alternatives sur le Net http://fr.wikipedia.org/ | Encyclopédie libre http://www.forget-me.net/pro/ | Formations et services Linux