Error compiling solaris cross compiler.
Thu Oct 4 07:54:00 GMT 2001
I'm trying to cross-compile gcc 2.95.3 to the target sparc-solaris.
Unfortunately it only gets so far and then spits out the following error.
make: Leaving directory `/home/jabba/tmp/gcc-2.95.3/gcc/intl'
-DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -I. -I. -I./config
-c ./config/sparc/gmon-sol2.c -o gmon.o
./config/sparc/gmon-sol2.c: In function `_mcleanup':
./config/sparc/gmon-sol2.c:185: `PATH_MAX' undeclared (first use in this
./config/sparc/gmon-sol2.c:185: (Each undeclared identifier is reported only
./config/sparc/gmon-sol2.c:185: for each function it appears in.)
make: *** [gmon.o] Error 1
make: Leaving directory `/home/jabba/tmp/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2
I have binutils cross-compiled for solaris and installed in
/usr/local/sparc-sun-solaris and I also copied over all the include files
including directories from /usr/include on my solaris box into
/usr/local/sparc-sun-solaris/include on my linux box. I checked and found
out that PATH_MAX is defined in limits.h as 1024, so I added the line
#define PATH_MAX 1024
into gmon-sol2.c. This will let me get further into the compile, but then I
get errors about struct exception being defined more than once. Does anyone
know what modifications need to be made to 2.95.3 to allow it to be
cross-compiled for solaris, or can anyone tell me if I'm doing something
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc