LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   when compiling gcc 1st time on LFS get error (https://www.linuxquestions.org/questions/linux-newbie-8/when-compiling-gcc-1st-time-on-lfs-get-error-722785/)

onage 04-30-2009 02:43 PM

when compiling gcc 1st time on LFS get error
 
I imputed the commands verbatim and I did not have a new-ld after compiling binutils. The commands say to clean up the make enviroment and then copy the new -ld file.
make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin

So I looked for an explaination and finding none decided to skip that part and move on to compiling gcc. I then came to these commands and put them in
CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp \
--enable-languages=c

make

It ran for 10 minutes or so then exited with an error 2 I'm on a different computer so I don't have the trace with me but I can get it if needed.
I was wondering if I did something wrong and If I can just delete the directory's and rebuild binutils?

Tinkster 04-30-2009 03:06 PM

Hi, welcome to LQ!

We'll at least need to see the error message, preferably including
the last 5-6 lines before the first error as well.


Cheers,
Tink

onage 04-30-2009 03:25 PM

error 1
 
make[1]: leaving directory
'/mnt/lfs/tools/bin-build/binutils-2.17/build_i686-pc-linux-gnu/fixincludes'
configuring in ./intl
/mnt/lfs/gccbuild/gcc/intl/conf;
line 975: config.Log: Permission Denied
make[1]: *** [configure intel] error: 1

this is about the last 5 lines

Tinkster 04-30-2009 03:44 PM

Quote:

Originally Posted by onage (Post 3526137)
make[1]: leaving directory
'/mnt/lfs/tools/bin-build/binutils-2.17/build_i686-pc-linux-gnu/fixincludes'
configuring in ./intl
/mnt/lfs/gccbuild/gcc/intl/conf;
line 975: config.Log: Permission Denied
make[1]: *** [configure intel] error: 1

this is about the last 5 lines

And what *are* the permissions/ownerships on that file/file-system?


Cheers,
Tink

knudfl 05-01-2009 03:04 PM

Quote:

..I looked for an explanation and finding none decided to skip that part..
A lot of generally known stuff is not 'reasoned' in LFS.
Some ( 2000 hours ? ) experience in *nix software building
was expected by the author.

Skipping things will cause errors and possibly make an OS being a mix
of the host system and the new files.
.....

onage 05-04-2009 04:41 PM

I tried to follow the book word for word, Do you know of any books that might be useful?


All times are GMT -5. The time now is 11:03 AM.