|
|

楼主 |
发表于 2004-11-2 13:28:56
|
显示全部楼层
看了下安装文档!
原来对主系统有要求:
kernel-2.6.2 or later
gcc-3.0 or later
后本人把主系统kernel升级到2.6.8.1
可到GCC-3.4.2 - Pass 1 时还是出现一样的错:
# make BOOT_LDFLAGS="-static" bootstrap
...
...
../gcc-3.4.2/gcc/cppcharset.c:In function 'convert_utf8_utf16';
../gcc-3.4.2/gcc/cppcharset.c:338:Sory,unimplemented:inlining failed in call to 'one_utf8_to_utf16';originally indirect function calls never in lined
../gcc-3.4.2/gcc/cppcharset.c:471:sory,unimplemented:call from here
make [2]:***[cppcharset.o] Error 1
make [2] eaving directory '/mnt/lfs/sources/gcc-build/gcc'
make [1]:***[pstage2-build] Error 2
make [1] eaving directory '/mnt/lfs/sources/gcc-build/gcc'
make ***[bootstrap] Error 2
lfs:/mnt/lfs/sorces/gcc-build#
不知道是不是跟主系统有关,哪位成功安装过滴兄弟能不能说下安装滴主系统环境?
安装文档中:
Prepare GCC for compilation:
CC="gcc -B/usr/bin" ../gcc-3.4.2/configure \
--prefix=/tools --libexecdir=/tools/lib \
--with-local-prefix=/tools --disable-nls \
--enable-shared --enable-languages=c
The meaning of the configure options:
CC="gcc -B/usr/bin"
This parameter fixes a possible problem with building GCC at this stage, first noticed in LFS 5.1.1. If our host uses a new version of Binutils than we compiled, the host compiler may try use features not supported by our new linker, causing compilation errors. By passing the -B flag to gcc, we cause the compiler to temporarily use the host's linker, which solves the problem.
这个 CC="gcc -B/usr/bin"
应是指定CC滴位置吧!哪位老大能帮译一下!谢谢! |
|