LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1134|回复: 5

GCC4.03编译LFS不成功

[复制链接]
发表于 2006-1-5 22:07:55 | 显示全部楼层 |阅读模式
打算尝试一下LFS,目前系统GCC是4.03,试着编译了一下binutils没成功。
GOOGLE有提到过GCC4-BOOK,可是我连接失效了,论坛得帖子我也没看明白:(
请教各位大侠:
1.我目前的这个系统能够编译过去吗?
Linux version 2.6.14-ARCH (root@Wohnung) (gcc-Version 4.0.3 20051222 (prerelease))
CPU:P4 2.0

2.那些.patch怎么用?

谢谢。

[PHP]
Making all in po
make[3]: Entering directory `/mnt/lfs/binutils-build/binutils-2.15.94.0.2.2/gas/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.15.94.0.2.2/gas/po'
make[3]: Entering directory `/mnt/lfs/binutils-build/binutils-2.15.94.0.2.2/gas'gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd -I./../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c app.c
In file included from ./targ-cpu.h:1,
                 from ./config/obj-elf.h:42,
                 from ./obj-format.h:1,
                 from ./config/te-linux.h:4,
                 from targ-env.h:1,
                 from as.h:625,
                 from app.c:30:
./config/tc-i386.h:443: error: array type has incomplete element type
make[3]: *** [app.o] Error 1
make[3]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.15.94.0.2.2/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.15.94.0.2.2/gas'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.15.94.0.2.2/gas'
make: *** [all-gas] Error 2

[/PHP]
发表于 2006-1-5 22:51:41 | 显示全部楼层
呵呵,又是这个问题,去YOUBEST兄的帖子看一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 18:57:23 | 显示全部楼层
楼上的,先谢谢回帖。
那个帖子我已经看了,不过平时不用LINUX,所以不会patch命令。
patch -Np1 -i gcc*.patch

刚刚搜了一下,回头试试。不过我看好像没有4.03的补丁。有试过的没?
回复 支持 反对

使用道具 举报

发表于 2006-1-6 19:09:08 | 显示全部楼层
既然来 lfs版面 了,就看看lfs的book吧。没熟悉前,最好别自作主张。呵呵。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 19:44:13 | 显示全部楼层
昨天心血来潮,边看边做。呵呵,主要是太菜了,有些没看懂。

谢谢大家帮助。
回复 支持 反对

使用道具 举报

发表于 2006-1-11 17:25:02 | 显示全部楼层
正好也请教这个问题
    patch -Np1 -i glibc-2.3.4-fix_test-1.patch 命令执行后,出现提示file to patch:
应该是glibc的文件位置吧???可是哪里才是啊?

这里的打补丁是指给宿主os打补丁吧????
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表