Quote:
ps:compiled binutils as root cos lfs user couldn't
|
Okely dokely, time to start again from the very beginning. This time read the instructions properly, and follow them to the letter.
Quote:
do with the gcc release being unable to compile in its own source directory. ... what is a source directory in the first place?
|
When you unpacked gcc-4.0.3.tar.bz2 the directory /mnt/lfs/sources/
gcc-4.0.3 was created. This is the source directory. The error you get means you cannot run configure [...], make bootstrap, make install in that directory.
If you
read the instructions (always a good plan), you will see the book instructs you to create ../gcc-build (/mnt/lfs/sources/
gcc-build), this is where you will compile gcc. Do it there and you will not see the error.
You might want to have a go at compiling a few things for the host system, for practice.
Correct me if I'm wrong, but it looks as though you are rushing this. LFS is not the sort of thing you want to rush or it
will all go wrong. Some friendly advice: 1) take your time when typing the commands, one typo can ruin an entire build. 2) Don't do it all at once, spread it out over a few days. 3) Do not expect it to work first time (For me it was 3rd attempt that booted successfully)