I am running OpenSUSE linux version 10.0 and I amd trying to build a cross compilation tool set for Mingw32 using binutils 2.16.91.0.2 20050720 and gcc 4.0.2 20050901. Everything configures like it should, but, when I do make it comes up with this error: gcc -DHAVE_CONFIG_H -I. -I/home/jason.morris/source/binutils-2.16.91-20060119-1/bfd -I. -I. -I/home/jason.morris/source/binutils-2.16.91-20060119-1/bfd -I/home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/../include -I/home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c -o elf.o /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7632: error: syntax error before 'pid_t' cc1: warnings being treated as errors /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7633: warning: function declaration isn't a prototype /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c: In function 'elfcore_grok_nto_status': /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7634: error: 'note' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7634: error: (Each undeclared identifier is reported only once /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7634: error: for each function it appears in.) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7642: error: 'abfd' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7645: error: 'tid' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c: At top level: /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7686: error: syntax error before 'pid_t' /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7688: warning: function declaration isn't a prototype /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c: In function 'elfcore_grok_nto_regs': /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7694: error: 'base' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7694: error: 'tid' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7696: error: 'abfd' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7705: error: 'note' undeclared (first use in this function) /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c: In function 'elfcore_grok_nto_note': /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7728: error: syntax error before 'tid' /home/jason.morris/source/binutils-2.16.91-20060119-1/bfd/elf.c:7735: error: 'tid' undeclared (first use in this function) make[4]: *** [elf.lo] Error 1 Any help is appreciated Jason
I have no problems building a cross Mingw32 compiler on FC6: [hjl@gnu-2 ~]$ /usr/mingw-4.1/bin/i686-mingw32-gcc -v Using built-in specs. Target: i686-mingw32 Configured with: /export/gnu/src/mingw-4.1/mingw/configure --target=i686-mingw32 --enable-languages=c,c++ --with-demangler-in-ld --enable-threads --disable-nls --disable-win32-registry --disable-shared --enable-sjlj-exceptions --with-sysroot=/usr/mingw-4.1 --enable-checking=assert --prefix=/usr/mingw-4.1 --with-local-prefix=/usr/mingw-4.1 Thread model: win32 gcc version 4.1.2 20061230 (prerelease) [gcc-4_1-branch revision 120287] [hjl@gnu-2 ~]$ /usr/mingw-4.1/bin/i686-mingw32-ld -V GNU ld version 2.17.50 20061231 Supported emulations: i386pe [hjl@gnu-2 ~]$