LinuxSir.cn,穿越时空的Linuxsir!

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

lfs 6.3 Gcc4.1.2 -pass1 Error...

[复制链接]
发表于 2009-11-11 15:33:37 | 显示全部楼层 |阅读模式
make[4]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include -L/mnt/lfs/sources/gcc-build/gcc/../ld -O2 -O2 -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I32 -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/32 -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include  -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
          -c ../../gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o 32/crtbegin.o
In file included from /usr/include/features.h:346,
                 from /usr/include/stdio.h:28,
                 from ../../gcc-4.1.2/gcc/tsystem.h:90,
                 from ../../gcc-4.1.2/gcc/crtstuff.c:68:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2
 楼主| 发表于 2009-11-11 15:49:45 | 显示全部楼层
请热心人帮助看看
回复 支持 反对

使用道具 举报

发表于 2009-11-11 21:38:20 | 显示全部楼层
你的系统头文件没装
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-12 09:28:13 | 显示全部楼层
Post by tusooa;2044833
你的系统头文件没装

首先表示感谢!我用的是lfs 6.3 livecd,不知道你所说的系统头文件怎么装,是livecd系统不完整吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-12 11:21:35 | 显示全部楼层
顺便说一下,我制作的是一个64位的系统。我用find搜索了整个系统,也未发现stubs-32.h
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-12 23:22:22 | 显示全部楼层
解决了。
在CC="gcc -B/usr/bin/" ../gcc-4.1.2/configure --prefix=/tools \
    --with-local-prefix=/tools --disable-nls \
    --enable-shared  --enable-languages=c  

后加 --disable-multilib
回复 支持 反对

使用道具 举报

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

本版积分规则

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