Need help with linux to sunos crossgcc (gcc-2.95)

fred anger anger@triib.com
Mon Aug 2 14:52:00 GMT 1999


Hi.  I'm trying to build a linux to sunos4 cross compiler under
gcc-2.95.  I built and installed the sunos4 binutils-2.9.1
(target=sparc-sun-sunos4) on the linux machine, and configured gcc-2.95
with --target="sparc-sun-sunos4" in a separate directory, as directed. 
When I run 'make' to build everything, it compiles a bunch of stuff and
does some includes fixing, but eventually dies.  I've appended the
surrounding output in hopes that someone can spot what I'm doing wrong. 
Thank you for your time.

[snip]
make[2]: Leaving directory `/local/src/builds/cross/newgcc/gcc'
touch stmp-multilib
touch chill-cross
gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2  -DHAVE_CONFIG_H   
-I. -I../../../../gcc-2.95/gcc -I../../../../gcc-2.95/gcc/config
-I../../../../gcc-2.95/gcc/../include
../../../../gcc-2.95/gcc/cp/g++spec.c
In file included from /usr/include/unistd.h:96,
                 from ../../../../gcc-2.95/gcc/system.h:149,
                 from ../../../../gcc-2.95/gcc/cp/g++spec.c:22:
/usr/include/gnu/types.h:133: warning: `__FD_SETSIZE' redefined
/usr/include/linux/posix_types.h:33: warning: this is the location of
the previous definition
/usr/include/gnu/types.h:136: warning: `__NFDBITS' redefined
/usr/include/linux/posix_types.h:30: warning: this is the location of
the previous definition
/usr/include/gnu/types.h:138: warning: `__FDMASK' redefined
/usr/include/linux/posix_types.h:42: warning: this is the location of
the previous definition
/usr/include/gnu/types.h:147: warning: `__FD_ZERO' redefined
/usr/include/asm/posix_types.h:69: warning: this is the location of the
previous definition
/usr/include/gnu/types.h:148: warning: `__FD_SET' redefined
/usr/include/asm/posix_types.h:45: warning: this is the location of the
previous definition
/usr/include/gnu/types.h:149: warning: `__FD_CLR' redefined
/usr/include/asm/posix_types.h:50: warning: this is the location of the
previous definition
/usr/include/gnu/types.h:150: warning: `__FD_ISSET' redefined
/usr/include/asm/posix_types.h:58: warning: this is the location of the
previous definition
In file included from ../../../../gcc-2.95/gcc/system.h:149,
                 from ../../../../gcc-2.95/gcc/cp/g++spec.c:22:
/usr/include/unistd.h:136: parse error before `__llseek'
/usr/include/unistd.h:136: parse error before `__loff_t'
/usr/include/unistd.h:136: warning: data definition has no type or
storage class
/usr/include/unistd.h:137: parse error before `llseek'
/usr/include/unistd.h:137: parse error before `__loff_t'
/usr/include/unistd.h:137: warning: data definition has no type or
storage class
make[1]: *** [g++spec.o] Error 1
make[1]: Leaving directory `/local/src/builds/cross/newgcc/gcc'
make: *** [all-gcc] Error 2
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.


More information about the crossgcc mailing list