|
|
我在Debian Sarge RC2编译LFS 5.1.1,第一次编译gcc3.3.3就出错,
错误提示如下:
lfs@www:/mnt/lfs/sources/gcc-build$ ../gcc-3.3.3/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/sources/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@www:/mnt/lfs/sources/gcc-build$
我的系统的gcc是3.3.4,是不是不能用高版本的gcc来编译LFS? |
|