Hi, I started all over again to build a toolchain for AMD64 with gcc-3.3.3 and gcc3.4.0. I am on 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 I compile succesively binutils with /configure --target=x86_64-unknown-linux --prefix=/opt/x86-64 For gcc, I use: 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 I got respectively for gcc-3.3.3 and gcc-3.40: /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 Help welcome. ;o) Thanks, 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