LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-24-2012, 03:04 PM   #1
Prabhu.Are
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Rep: Reputation: Disabled
LFS:- Error while compiling GCC (configure-target-libgcc)


HI

I'm working on LFS(7.2), I got struck up while compiling GCC. Let me brief you this. I started with the basic of creating partitions, users and other things. I successfully configured binutilities and It got compile without error. In the case of GCC I untared all the three files (mpfr,gmp,mpc) and I configured as specified in the book, without any error. While compiling GCC it got compiled for 30 mins and then it throw me an error as.



checking for i686-lfs-linux-gnu-strip... i686-lfs-linux-gnu-strip
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2


I need to resolve this please guide me.



My version check
http://pastebin.com/LrBgkxgE

My configlog content
http://pastebin.com/kCy4sBTL
 
Old 11-26-2012, 02:13 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I can only give you a general answer when it comes to this error (configure: error: cannot compute suffix of object files: cannot compile): Remove all you've done in chapter 5 and start again.

I've seen this error a few times in other threads and none of those have a specific solution. Those people that did start again reported success afterwards, which would point to a typo or misunderstanding of the commands in the first run.
 
Old 11-26-2012, 02:53 AM   #3
Prabhu.Are
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
I can only give you a general answer when it comes to this error (configure: error: cannot compute suffix of object files: cannot compile): Remove all you've done in chapter 5 and start again.

I've seen this error a few times in other threads and none of those have a specific solution. Those people that did start again reported success afterwards, which would point to a typo or misunderstanding of the commands in the first run.


Drunna Thank you for your valuable comment.
Drunna it was resolved after examining the conflog file the actual issue is the absents of some packages in primary OS, the packages like g++,CC++,lex and some other's too. I came to know these package's are "not found" state in the conflog file, I just installed all those packages in my primary OS after that I did "make clean" and "make" It was done successively. I'm not sure this is the perfect way to resolve this or not, But this was working for me.
 
Old 11-26-2012, 03:05 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Prabhu.Are View Post
Drunna it was resolved after examining the conflog file the actual issue is the absents of some packages in primary OS, the packages like g++,CC++,lex and some other's too. I came to know these package's are "not found" state in the conflog file, I just installed all those packages in my primary OS after that I did "make clean" and "make" It was done successively. I'm not sure this is the perfect way to resolve this or not, But this was working for me.
You shouldn't have to deviate from the book. If you do have to install extra's or edit contents to get things working then there is a fairly big chance something is wrong. You'll find out if that is true in the upcoming chapters.

BTW: The version check output looks almost correct, one entry might give problems: gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
From the book:
Quote:
Gcc-4.1.2 (Versions greater than 4.7.1 are not recommended as they have not been tested)
I haven't tried building LFS on top of the newest Ubuntu, so I do not have any personal experience yet with this.

If you think this is solved, please put up the [SOLVED] tag.
- above the first post -> Please Mark this thread as solved if you feel a solution has been provided.
- -or- -
- first post -> Thread Tools -> Mark this thread as solved
 
  


Reply

Tags
compile, error message, gcc, lfs



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
libgcc Compile errors during LFS 6.8 chapter 5.5 (GCC pass 1) 1nKoGn17o Linux From Scratch 7 08-03-2011 03:07 AM
[SOLVED] Problem creating symlink with gcc to libgcc.a in LFS v6.7 linuxpicaxe Linux - Software 4 03-06-2011 12:24 PM
Problem creating symlink with gcc to libgcc.a in LFS v6.7 nuainkyeuh Linux From Scratch 4 02-28-2011 12:26 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:30 AM.

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
Open Source Consulting | Domain Registration