Dear list-members and gcc-gurus, I am trying to build a crosscompiler on a NetBSD 3.0 (i386) system for a Gentoo Linux (i386) system. These are the steps I have performed. [+] The versions I am using: binutils-2.15 gcc-3.4.5 glibc-2.3.5 linux-2.6.8 [+] The machine I am trying to compile gcc on # uname -va NetBSD hydra.pentacon.gov 3.0 NetBSD 3.0 (MYKERNEL.MP) #1: Sat Mar 4 17:20:08 CET 2006 root@xxxxxxxxxxxxxxxxxx:/usr/src/sys/arch/i386/compile/MYKERNEL.MP i386 [+] Building the binutils: # ./configure --prefix=/home/sammy/crossdev --target=i686-pc-linux-gnu # make install [+][+] Copying the libs and headers to there proper place. [+] from glibc # cp -Ri include /home/sammy/crossdev/i686-pc-linux-gnu/ [+] from the linux kernel src # cp -Ri linux/include/linux \ /home/sammy/crossdev/i686-pc-linux-gnu/include/linux # cp -Ri linux/include/asm-i386 \ /home/sammy/crossdev/i686-pc-linux-gnu/include/asm [+] copy the libraries # cp -Ri lib/* /home/sammy/crossdev/i686-pc-linux-gnu/lib # cp -Ri usr/lib/* /home/sammy/crossdev/i686-pc-linux-gnu/lib [+] The actual gcc build # ./configure \ --prefix=/home/sammy/crossdev \ --target=i686-pc-linux-gnu \ --with-gnu-ld \ --with-ld=/home/sammy/crossdev/i686-pc-linux-gnu-ld \ --with-gnu-as \ --with-as=/home/sammy/crossdev/i686-pc-linux-gnu-as # make -j6 (tried it although without the -j option) [...] /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:5:28: signal/signal.h: No such file or directory In file included from ../../gcc/config/i386/linux.h:217, from ./tm.h:11, from ../../gcc/libgcc2.c:43: /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:8: error: syntax error before "libc_hidden_proto" /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:9: error: syntax error before "libc_hidden_proto" /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:10: error: syntax error before "libc_hidden_proto" [...] /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:27: error: storage class specified for parameter `__sigsuspe nd' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:39: error: storage class specified for parameter `__sigvec' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:40: error: storage class specified for parameter `__sigretur n' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:42: error: storage class specified for parameter `__sigaltst ack' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:44: error: storage class specified for parameter `__libc_sig action' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:45: error: syntax error before "libc_hidden_proto" /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:48: error: storage class specified for parameter `__default_ sigpause' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:49: error: storage class specified for parameter `__xpg_sigp ause' /home/sammy/crossdev/i686-pc-linux-gnu/include/signal.h:57: error: storage class specified for parameter `__libc_all ocate_rtsig' In file included from ./tm.h:11, from ../../gcc/libgcc2.c:43: ../../gcc/config/i386/linux.h:218:26: sys/ucontext.h: No such file or directory In file included from ../../gcc/libgcc2.c:56: ../../gcc/libgcc2.h:33: error: storage class specified for parameter `__gcc_bcmp' ../../gcc/libgcc2.h:34: error: storage class specified for parameter `__clear_cache' ../../gcc/libgcc2.h:36: error: storage class specified for parameter `__eprintf' ../../gcc/libgcc2.h:38: warning: empty declaration ../../gcc/libgcc2.h:39: error: storage class specified for parameter `__get_eh_table_language' ../../gcc/libgcc2.h:40: error: storage class specified for parameter `__get_eh_table_version' ../../gcc/libgcc2.h:67: error: storage class specified for parameter `QItype' ../../gcc/libgcc2.h:68: error: storage class specified for parameter `UQItype' ../../gcc/libgcc2.h:69: error: storage class specified for parameter `HItype' [...] ../../gcc/libgcc2.h:302: error: storage class specified for parameter `DItype' ../../gcc/libgcc2.h:302: error: redefinition of parameter 'DItype' ../../gcc/libgcc2.h:297: error: previous definition of 'DItype' was here ../../gcc/libgcc2.h:302: error: syntax error before "__fixunsdfdi" ../../gcc/libgcc2.h:303: warning: type defaults to `int' in declaration of `DItype' ../../gcc/libgcc2.h:303: error: storage class specified for parameter `DItype' ../../gcc/libgcc2.h:303: error: redefinition of parameter 'DItype' ../../gcc/libgcc2.h:302: error: previous definition of 'DItype' was here ../../gcc/libgcc2.h:303: error: syntax error before "__fixunssfdi" ../../gcc/libgcc2.h:306: warning: type defaults to `int' in declaration of `DItype' ../../gcc/libgcc2.h:306: error: storage class specified for parameter `DItype' ../../gcc/libgcc2.h:306: error: redefinition of parameter 'DItype' ../../gcc/libgcc2.h:303: error: previous definition of 'DItype' was here ../../gcc/libgcc2.h:306: error: syntax error before "__fixxfdi" ../../gcc/libgcc2.h:307: warning: type defaults to `int' in declaration of `DItype' ../../gcc/libgcc2.h:307: error: storage class specified for parameter `DItype' ../../gcc/libgcc2.h:307: error: redefinition of parameter 'DItype' ../../gcc/libgcc2.h:306: error: previous definition of 'DItype' was here ../../gcc/libgcc2.h:307: error: syntax error before "__fixunsxfdi" ../../gcc/libgcc2.h:308: warning: type defaults to `int' in declaration of `XFtype' ../../gcc/libgcc2.h:308: error: storage class specified for parameter `XFtype' ../../gcc/libgcc2.h:308: error: conflicting types for 'XFtype' ../../gcc/libgcc2.h:93: error: previous definition of 'XFtype' was here ../../gcc/libgcc2.h:308: error: syntax error before "__floatdixf" ../../gcc/libgcc2.h:309: warning: type defaults to `int' in declaration of `USItype' ../../gcc/libgcc2.h:309: error: storage class specified for parameter `USItype' ../../gcc/libgcc2.h:309: error: redefinition of parameter 'USItype' ../../gcc/libgcc2.h:301: error: previous definition of 'USItype' was here ../../gcc/libgcc2.h:309: error: syntax error before "__fixunsxfsi" ../../gcc/libgcc2.h:325: error: syntax error before "SItype" ../../gcc/libgcc2.h:325: warning: no semicolon at end of struct or union ../../gcc/libgcc2.h:334: error: field `s' has incomplete type ../../gcc/libgcc2.h:335: error: syntax error before "DItype" ../../gcc/libgcc2.h:335: warning: no semicolon at end of struct or union ../../gcc/libgcc2.c:1137: warning: type defaults to `int' in declaration of `DWunion' ../../gcc/libgcc2.c:1137: error: syntax error before "bu" Which libs am I missing? Is there anything else I have missed? I would be very pleased if someone could help me with this. Please let me know if you need any other information. -- /sp4rc