Hello,
I followed the instructions exactly for ther gcc 4 branch of LinuxFromScratch.
I am reaching the chapter 6, to 6.14 , and do the following:
Prepare GCC for compilation:
./gcc-4.0.1/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
and then run :
make
(I am working on FC4 with 2.6.12-1.1398_FC4 kernel)
After quite a while I get:
.........
.........
mkinstalldirs='/bin/sh ../../gcc-4.0.1/gcc/../mkinstalldirs' \
/bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
HEADERS="
ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.0.1/gcc/mkconfig.sh tconfig.h
/sources/gcc-build/gcc/xgcc -B/sources/gcc-build/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I. -I../../gcc-
4.0.1/gcc -I../../gcc-4.0.1/gcc/. -I../../gcc-4.0.1/gcc/../include
-I../../gcc-4.0.1/gcc/../libcpp/include -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -fno-omit-frame-pointer \
-c ../../gcc-4.0.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-4.0.1/gcc/crtstuff.c:68:
./../gcc-4.0.1/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
./../gcc-
4.0.1/gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
./../gcc-4.0.1/gcc/tsystem.h:96:19: error: errno.h: No such file or directory
./../gcc-4.0.1/gcc/tsystem.h:103:20: error: string.h: No such file or directory
./../gcc-4.0.1/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
./../gcc-4.0.1/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.0.1/gcc/tsystem.h:108,
from ../../gcc-4.0.1/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.0.1/gcc/crtstuff.c:68:
./../gcc-4.0.1/gcc/tsystem.h:111:18: error: time.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
any idea what can bet the reason that it does not find the headers like
stdio.h?
ls /usr/include (from the chroot environment of course) shows that
these headers (
stdio.h and others) ***DO*** exist.
So why gcc does not have a path to this folder ?
Regards,
Rami
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page