LinuxSir.cn,穿越时空的Linuxsir!

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

LFS6.3_x86 第六章gcc4.1.2出错!

[复制链接]
发表于 2007-12-23 16:57:19 | 显示全部楼层 |阅读模式
环境是虚拟机+lfslivecd-x86-6.3-r2145.iso.到第六章的GCC4.1.2,


../gcc-4.1.2/configure --prefix=/usr \
    --libexecdir=/usr/lib --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-clocale=gnu --enable-languages=c,c++
没出错,但是
make 就出现如下的错误!请问大家是甚么原因?谢谢!!
!

TARGET_CPU_DEFAULT="" \
        HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
        /bin/sh ../../gcc-4.1.2/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 -O2 -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/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.1.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
In file included from /usr/include/errno.h:36,
                 from ../../gcc-4.1.2/gcc/tsystem.h:96,
                 from ../../gcc-4.1.2/gcc/crtstuff.c:68:
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:145,
                 from /sources/gcc-build/./gcc/include/limits.h:122,
                 from /sources/gcc-build/./gcc/include/syslimits.h:7,
                 from /sources/gcc-build/./gcc/include/limits.h:11,
                 from ../../gcc-4.1.2/gcc/tsystem.h:108,
                 from ../../gcc-4.1.2/gcc/crtstuff.c:68:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2
 楼主| 发表于 2007-12-23 18:16:09 | 显示全部楼层
自我分析:
我估计make出错是因为第5章和之前我都是在办公室编译的,第六章我是用的笔记本的虚拟机编译的,前面的CPU是intel 双核的,而我笔记本是AMD的单核64位的,前面
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \


是不是说明了这个问题呢?望高手帮忙分析下,谢谢!
回复 支持 反对

使用道具 举报

发表于 2007-12-25 18:37:19 | 显示全部楼层
不解,樓主是怎樣在不同的電腦下進行編譯?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-26 23:55:24 | 显示全部楼层
虚拟机,把虚拟的系统放在移动硬盘,,,,,从办公室拿到家,在家的笔记本继续编译,CPU目标出错~
回复 支持 反对

使用道具 举报

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

本版积分规则

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