LFS6.3_x86 第六章gcc4.1.2出错!
时间:2007-12-23
来源:互联网
环境是虚拟机+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
../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
作者: zhangzhu1984 发布时间: 2007-12-23
自我分析:
我估计make出错是因为第5章和之前我都是在办公室编译的,第六章我是用的笔记本的虚拟机编译的,前面的CPU是intel 双核的,而我笔记本是AMD的单核64位的,前面
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
是不是说明了这个问题呢?望高手帮忙分析下,谢谢!
我估计make出错是因为第5章和之前我都是在办公室编译的,第六章我是用的笔记本的虚拟机编译的,前面的CPU是intel 双核的,而我笔记本是AMD的单核64位的,前面
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
是不是说明了这个问题呢?望高手帮忙分析下,谢谢!
作者: zhangzhu1984 发布时间: 2007-12-23
不解,樓主是怎樣在不同的電腦下進行編譯?
作者: d00m3d 发布时间: 2007-12-25
虚拟机,把虚拟的系统放在移动硬盘,,,,,从办公室拿到家,在家的笔记本继续编译,CPU目标出错~
作者: zhangzhu1984 发布时间: 2007-12-27
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28