|
宿主系统是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的结果是可能需要更换宿主系统,不过有没有人出现过这个问题? |
|