Greetings! I am trying to boot from a Knoppix 3.6 CD and install LFS 5.1.1. I am getting the following error when trying to compile gcc:
lfs@ttyp0[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.
I am at a loss as to how to fix this. I'm thinking I need an earlier version of Knoppix that uses the 2.4 kernel, but I just wanted to ask here before I do that and find out it was a waste of time.