|
|
今天第一次安装LFS,在第六章编译GCC出错,
出错信息如下:
[PHP]SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='../../gcc-3.4.1/gcc/libgcc-std.ver ../../gcc-3.4.1/gcc/config/libgcc-glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
mkinstalldirs='/bin/sh ../../gcc-3.4.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-3.4.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-3.4.1/gcc -I../../gcc-3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../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-3.4.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-3.4.1/gcc/crtstuff.c:62:
../../gcc-3.4.1/gcc/tsystem.h:79:19: stdio.h: No such file or directory
../../gcc-3.4.1/gcc/tsystem.h:82:23: sys/types.h: No such file or directory
../../gcc-3.4.1/gcc/tsystem.h:85:19: errno.h: No such file or directory
../../gcc-3.4.1/gcc/tsystem.h:92:20: string.h: No such file or directory
../../gcc-3.4.1/gcc/tsystem.h:93:20: stdlib.h: No such file or directory
../../gcc-3.4.1/gcc/tsystem.h:94:20: 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-3.4.1/gcc/tsystem.h:97,
from ../../gcc-3.4.1/gcc/crtstuff.c:62:
/sources/gcc-build/gcc/include/limits.h:122:61: limits.h: No such file or directory
In file included from ../../gcc-3.4.1/gcc/crtstuff.c:62:
../../gcc-3.4.1/gcc/tsystem.h:100:18: 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[/PHP]
gcc-build目录在/sources目录下,../../gcc-3.4.1怎么会有这个目录存在??难道需要自己建立?希望大家帮忙,谢谢了!!! |
|