|
|
我的debian系统信息:
Linux version 2.4.27-2-386
(gcc version 3.3.5 (Debian 1:3.3.5-3))
装的LFS是5.0 stable的那个版本
安装gcc 3.3.1第一编的时候,输入如下命令:
../gcc-3.3.1/configure --prefix=/tools \
> --with-local-prefix=/tools \
> --disable-nls --enable-shared \
> --enable-languages=c
然后出错信息:
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /mnt/lfs/temp/gcc-build using "mt-frag"
/tools/bin/ld: unrecognized option '--as-needed'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
lfs@gfeng-devel:/mnt/lfs/temp/gcc-build$ ls
Makefile i686-pc-linux-gnu mt-frag
请达人指点一下,到底那里出了问题?? |
|