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] |
Hi, I am trying to build linux(i386) to solaris(sparc) cross gcc, after building/installing the bin utils, when I try to make gcc I get the following error. Can some one help me with this. I'm using binutils version 2.12.1, gcc version 3.1. If any of you have built i386<->solaris cross gcc please send me the version you used for binutils, gcc, newlib, gdb & the Linux/Solaris [Kernel] version. ----ERROR-------- /home/iilangov/tools/cross/build-gcc/gcc/xgcc -B/home/iilangov/tools/cross/b uild -gcc/gcc/ -B/home/iilangov/mycr/sparc-sun-solaris/bin/ -B/home/iilangov/mycr /spa rc-sun-solaris/lib/ -isystem /home/iilangov/mycr/sparc-sun-solaris/include -DIN_ GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing -pro totypes -isystem ./include -I. -I. -I../../gcc-3.1/gcc -I../../gcc-3.1/gcc/. -I ../../gcc-3.1/gcc/config -I../../gcc-3.1/gcc/../include \ -c ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c -o gmon.o In file included from ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:36: ../../gcc-3.1/gcc/system.h:50:19: stdio.h: No such file or directory ../../gcc-3.1/gcc/system.h:112:23: sys/types.h: No such file or directory ../../gcc-3.1/gcc/system.h:114:19: errno.h: No such file or directory ------OMITTED--------ATTACHED THE COMPLETE AT THE END OF MAIL ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c: In function `internal_mcount': ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:301: warning: implicit declaration of function `atexit' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c: In function `moncontrol': ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:415: warning: implicit declaration of function `profil' make[1]: *** [gmon.o] Error 1 make[1]: Leaving directory `/home/iilangov/tools/cross/build-gcc/gcc' make: *** [all-gcc] Error 2 ----END ERROR-------- BTW who is the owns gmon-sol2.c ? any help would be of great use to me ! Thanks in advance, Indu COMPLETE ERROR ------------- /home/iilangov/tools/cross/build-gcc/gcc/xgcc -B/home/iilangov/tools/cross/b uild -gcc/gcc/ -B/home/iilangov/mycr/sparc-sun-solaris/bin/ -B/home/iilangov/mycr /spa rc-sun-solaris/lib/ -isystem /home/iilangov/mycr/sparc-sun-solaris/include -DIN_ GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing -pro totypes -isystem ./include -I. -I. -I../../gcc-3.1/gcc -I../../gcc-3.1/gcc/. -I ../../gcc-3.1/gcc/config -I../../gcc-3.1/gcc/../include \ -c ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c -o gmon.o In file included from ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:36: ../../gcc-3.1/gcc/system.h:50:19: stdio.h: No such file or directory ../../gcc-3.1/gcc/system.h:112:23: sys/types.h: No such file or directory ../../gcc-3.1/gcc/system.h:114:19: errno.h: No such file or directory ../../gcc-3.1/gcc/system.h:121:21: string.h: No such file or directory ../../gcc-3.1/gcc/system.h:122:22: strings.h: No such file or directory ../../gcc-3.1/gcc/system.h:134:21: stdlib.h: No such file or directory ../../gcc-3.1/gcc/system.h:157:21: unistd.h: No such file or directory ../../gcc-3.1/gcc/system.h:161:24: sys/param.h: No such file or directory ../../gcc-3.1/gcc/system.h:200:23: sys/time.h: No such file or directory ../../gcc-3.1/gcc/system.h:201:19: time.h: No such file or directory ../../gcc-3.1/gcc/system.h:213:20: fcntl.h: No such file or directory ../../gcc-3.1/gcc/system.h:251:22: sys/wait.h: No such file or directory ../../gcc-3.1/gcc/system.h:312:20: malloc.h: No such file or directory ../../gcc-3.1/gcc/system.h:381:23: sys/stat.h: No such file or directory ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c: In function `monstartup': ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:112: warning: implicit declaration of function `sbrk' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:112: warning: assignment makes pointe r from integer without a cast ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:114: warning: implicit declaration of function `write' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:136: warning: assignment makes pointe r from integer without a cast ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c: In function `_mcleanup': ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:181: `PATH_MAX' undeclared (first use in this function) ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:181: (Each undeclared identifier is r eported only once ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:181: for each function it appears in. ) ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:186: warning: implicit declaration of function `getenv' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:186: warning: assignment makes pointe r from integer without a cast ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:192: warning: implicit declaration of function `strrchr' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:198: warning: implicit declaration of function `sprintf' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:198: warning: implicit declaration of function `getpid' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:204: warning: implicit declaration of function `creat' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:206: warning: implicit declaration of function `perror' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:231: warning: implicit declaration of function `close' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:181: warning: unused variable `buf' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c: In function `internal_mcount': ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:301: warning: implicit declaration of function `atexit' ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c: In function `moncontrol': ../../gcc-3.1/gcc/config/sparc/gmon-sol2.c:415: warning: implicit declaration of function `profil' make[1]: *** [gmon.o] Error 1 make[1]: Leaving directory `/home/iilangov/tools/cross/build-gcc/gcc' make: *** [all-gcc] Error 2 ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |