This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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[2]: Leaving directory `/home/jabba/tmp/gcc-2.95.3/gcc/intl'
/home/jabba/tmp/gcc-2.95.3/gcc/xgcc -B/home/jabba/tmp/gcc-2.95.3/gcc/
-B/usr/local/sparc-sun-solaris/bin/ -I/usr/local/sparc-sun-solaris/include
-DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -I. -I. -I./config
-I./../include \
-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
function)
./config/sparc/gmon-sol2.c:185: (Each undeclared identifier is reported only
once
./config/sparc/gmon-sol2.c:185: for each function it appears in.)
make[1]: *** [gmon.o] Error 1
make[1]: 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
wrong? Thanks
--Phillip Thurmond
_________________________________________________________
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 crossgcc-unsubscribe@sourceware.cygnus.com
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |