|
|
本来还能正常用的:
搞定了binutils
过程和手册(5.1.1)一样:
mkdir ../binutils-build
cd ../binutils-build
../binutils-2.14/configure --prefix=/tools --disable-nls
make configure-host
make LDFLAGS="-all-static"
make install
make -C ld clean
make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib
一切顺利
但是 我在编译gcc时就发现 ./configure ...... 时:
you must set the environment variable cc to a working compiler
退出lfs用户 发现别的用户能够正常编译 所以怀疑是bash配置的问题
我是按手册(5.1.1)配置的环境:
cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
cat > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF
source ~/.bash_profile
搞的实在是很郁闷 很打击信心啊
哪个高手能指点一下 3x |
|