Ok, I'll start at the beginning. I need to build the gcc/binutils/gdb
under linux for the PalmOS (the cross-compiler). I have all the
appropriate source and versions as defined in this web page:
http://www.cs.purdue.edu/homes/zamboni/Pilot/unix-develtools.html
I follow the directions explicitly, and upon 'make gnutools', I get
this following series of errors:
-----------------
In file included from /usr/include/fcntl.h:28,
from /usr/include/sys/file.h:6,
from gcc.c:41:
/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
cc1: Invalid option `68020'
make[1]: *** [gcc.o] Error 1
make[1]: Leaving directory `/src/compiling/m68k/gcc-2.7.2.2'
make: *** [stamp.gcc] Error 2
-----------------
This looks to me like it's either using the wrong headers, or the
wrong cc1 is being called. Ok, so it's a gcc problem I say, so I cd
../gcc-2.7.2.2, and type 'make', which gives me these following
errors:
-----------
broccoli:/src/compiling/m68k/gcc-2.7.2.2# make
cc -DCROSS_COMPILE -DIN_GCC -g -I. -I. -I./config -c
./objc-parse.c
cc1: Invalid option `68020'
make: *** [objc-parse.o] Error 1
-----------
Now, I'm slightly confused here. The whole reason I am going through
this rigamarole is so I can port all of the patches to use the new
gdb-4.18, the new binutils-2.9.1.0.25, and the latest egcs from the
cvs source. I can't even get the base packages to build at all, using
the directions and versions and patches supplied.
If anyone can give me a hand here, I'm open to suggestions... thanks.