LinuxSir.cn,穿越时空的Linuxsir!

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

[solved]gcc-4.4.3 pass2 出错

[复制链接]
发表于 2010-8-15 14:52:01 | 显示全部楼层 |阅读模式
宿主系统是livecd, 版本是lfslivecd-x86-6.3-r2160-min
编译gcc第二遍的时候报错:

make[2]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc -I../../../gcc-4.4.3/libgcc -I../../../gcc-4.4.3/libgcc/. -I../../../gcc-4.4.3/libgcc/../gcc -I../../../gcc-4.4.3/libgcc/../include -I../../../gcc-4.4.3/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../gcc-4.4.3/libgcc/../gcc/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
In file included from ../../../gcc-4.4.3/libgcc/../gcc/tsystem.h:100,
                 from ../../../gcc-4.4.3/libgcc/../gcc/libgcc2.c:29:
/tools/include/string.h:546: error: expected declaration specifiers or '...' before '__locale_t'
/tools/include/string.h:547: error: nonnull argument with out-of-range operand number (argument 1, operand 3)
/tools/include/string.h:550: error: expected declaration specifiers or '...' before '__locale_t'
/tools/include/string.h:551: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
make[2]: *** [_muldi3.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

google的结果是可能需要更换宿主系统,不过有没有人出现过这个问题?
 楼主| 发表于 2010-8-15 15:41:45 | 显示全部楼层
我的操作步骤有误。。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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