|
发表于 2003-11-22 07:06:19
|
显示全部楼层
我刚才先是make distclean 然后重新打补丁,然后configure make的
先前也看了一位兄弟在mandrake下安装的过程,但是我们的错误不一样,我这里有3种情况,都尝试了,还是过不了。
1 , 不打补丁,出现下面的错误
In file included from system.h:162,
from gengenrtl.c:23:
../include/limits.h:124:3: warning: suggest hiding #include_next from traditional C with an indented #
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -g -O2 - DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing -prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONF IG_H -DGENERATOR_FILE -static -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/pacs/job/gcc-3.3.1/ gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/pacs/job/gcc-3.3.1/ gcc'
make: *** [bootstrap] Error 2
2, 3个补丁全部打,就会报无法找到times.h 和limits.h等错误(第一个补丁文件里面涉及的文件)
3, 只打后面2个补丁,就会多出几个stdlib.h errorno.h string.h /sys/types.h等文件找不到
4 , 仍然是只打2个补丁,把这几个头文件从/usr/include 下面考到gcc编译目录的include文件夹下,就会出现和第一种情况相同的情况。
我的系统是mandrake9.2 gcc版本是3.3.1,刚刚把gcc3.3.1-2mdk 升级到
cooker版本的gcc-3.3.1-4mdk 还是一样 ,我现在试试还是打3个补丁,也拷贝这些头文件,看会出现什么错误! |
|