Help| chp 6.12 (installation of Gcc)
Hi,
mkdir -v ../gcc-build cd ../gcc-build ../gcc-4.1.2/configure --prefix=/usr \ --libexecdir=/usr/lib --enable-shared \ --enable-threads=posix --enable-__cxa_atexit \ --enable-clocale=gnu --enable-languages=c,c++ make Error: In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68: ../../gcc-4.1.2/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:96:19: error: errno.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:103:20: error: string.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory In file included from /sources/gcc-build/./gcc/include/syslimits.h:7, from /sources/gcc-build/./gcc/include/limits.h:11, from ../../gcc-4.1.2/gcc/tsystem.h:108, from ../../gcc-4.1.2/gcc/crtstuff.c:68: /sources/gcc-build/./gcc/include/limits.h:122:61: error: limits.h: No such file or directory In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68: ../../gcc-4.1.2/gcc/tsystem.h:111:18: error: time.h: No such file or directory make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/sources/gcc-build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/sources/gcc-build' make: *** [all] Error 2 I have looked similar mistakes but I have not found the solution.. Thank's for your help |
In 6.10 you should have made an adjustment to the toolchain.
In 6.11 you should have completed binutils. In 6.12 there should be no question about the toolchain finding the headers and the make program. Check the PATH environment variable. It should be the same as was set up in 6.10, and used in 6.11. Could you have exited the endeavor, and then re-entered into 6.12 without setting up a proper PATH ? |
Welcome to LQ.
All the missing headers are from glibc ... //tools//include ? ? Quote:
..... |
Hi, thanks
I solved my problem : First was delete the folders gcc.4.1.2 and gcc-build again. I went back to excecute the comand make, and the previous problem is solved, but i have a new error, something like this: /usr/include/linux/errno.h:143 :23: error: asm/errno.h: No such file or directory make [1]: *** [crtbegin.o] Error 1 make [1]: Leaving directory '/sources/gcc-build/gcc' make: *** [all-gcc] Error 2 I knew then that I had no folder /include/linux (for any reason) I went back to the chapter 6.7.1 (linux headers), and repeat the process.. now everything is fine. sorry for my English :P |
All times are GMT -5. The time now is 10:37 AM. |