|
|

楼主 |
发表于 2004-11-17 20:56:59
|
显示全部楼层
偶回去后,开机:
[root @localhost root]# chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
root:/# cd /usr/src/linux-2.6.8.1
root:/usr/src/linux-2.6.8.1# make mrproper
root:/usr/src/linux-2.6.8.1# make menuconfig
HOSTCC spripts/basic/fixdep
gcc: installation problem,cannot exec 'as':No such file or directory
make [1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
root:/usr/src/linux-2.6.8.1#
以为是gcc-3.4.2滴问题,装个gcc-2.95.3试试看。
解压,打好补订(use lfsbook-5.1.1)
root:/tmp/gcc-build# ../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
>--enable-shared --enable-languages=c \
>--enable-threads=posix
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /tmp/gcc-build using "mh-frag" and "mt-frag"
gcc:installation problem,cannot exec 'as':No Such file or directory
*** the command 'gcc -o conflest -O2 conflest.c failed
*** You must set the environ ment variable CC to a working compiler
root:/tmp/gcc-build#
root:/# CC=$(CROSS_COMPILE)gcc
bash:CROSS_COMPILE:command not found.
trying test
root:/# echo 'main(){}' > dummy.c
root:/# cc dummy.c
cc:installation problem,cannot exec 'as':No Such file or directory
root:/#
use
# chroot $LFS /tools/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/tools/bin/bash --login
进入还是一样!
在发生此事之前,也就是还没
# /tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
-exec /tools/bin/strip --strip-debug '{}' ';'
以前,都是使用正常的!会不会是Stripping again 时把它给废了?
PS:安装GCC-3.4.3 - Pass 1 ------> 用GCC-3.3.3取代。(当时实在是译不过去)Adjusting the toolchain 能通过。 |
|