LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2009, 02:43 PM   #1
onage
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
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?
 
Old 04-30-2009, 03:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 04-30-2009, 03:25 PM   #3
onage
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 04-30-2009, 03:44 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by onage View Post
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
 
Old 05-01-2009, 03:04 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,634

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
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.
.....
 
Old 05-04-2009, 04:41 PM   #6
onage
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I tried to follow the book word for word, Do you know of any books that might be useful?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
error using lfs while compiling 6.12 gcc-4.1.2 aditya_gpch Programming 1 04-19-2008 04:38 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 08:57 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration