LinuxQuestions.org
Register a domain and help support LQ
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 08-30-2009, 07:53 AM   #1
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Make error with GCC-4.4.1


Hello,

Just started today with the LFS book 6.5. It's my first LFS installation and I've got everything prepared, host system has all it needs on board and the installation of the first package (binutils) ran perfectly.

The second however GCC-4.4.1 - Pass 1, compiles without any errors but when I issue the make command I get the following error:
Code:
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've been looking around on the Internet but can't seem to find the solution. Since it's my first LFS I'm a bit in the dark here (A LOT).

I hope someone can help me out on this one. I followed the book to the letter so I assume it's something I'm missing in my host system but cannot find it.

Kind regards,

Eric
 
Old 08-30-2009, 08:08 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Hi Eric,

Could you please post the content of 'config.log' ?


thanks
 
Old 08-30-2009, 08:12 AM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi kbp,

Thanks for the quick reply. Attached you'll find my config.log. Had to rename it to txt file.

I hope that it's a lot clearer than it is to me

Kind regards,

Eric

Last edited by EricTRA; 10-31-2009 at 10:28 AM.
 
Old 08-30-2009, 08:30 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Hey Eric,

Looks like you're missing g++ .. could you please install and retry ?

thnx
 
Old 08-30-2009, 08:52 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi kbp,

Just installed g++, although it was not in the prerequisite list, but get the same result when I run the make command. It gives me exactly the same error. Any idea?

Kind regards,

Eric
 
Old 08-30-2009, 08:58 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
New 'config.log' ?
 
Old 08-30-2009, 09:00 AM   #7
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Of course Just realized that I had forgotten something. Brain is working half-time (Sunday mode). New log is attached.

Kind regards,

Eric

Last edited by EricTRA; 10-31-2009 at 10:28 AM.
 
Old 08-30-2009, 09:49 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Hi Eric,

There only seems to be a couple of problems :

conftest.c:12:19: error: ppl_c.h: No such file or directory
and
conftest.c:12:25: error: cloog/cloog.h: No such file or directory

The prereqs for gcc as per: http://gcc.gnu.org/install/prerequisites.html show:

- Parma Polyhedra Library (PPL)
- CLooG-PPL

I guess these are not present..

kbp
 
Old 08-30-2009, 11:11 AM   #9
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Quote:
Hi,

Have installed the missing things and now make takes up more time but still results in the same error. I'm really stumped, most of all because I haven't got a lot of experience with compiling and hence don't know where to look. I hope you could give it another look. I'm quite sure that it's because of things missing in my host system but I've followed the LFS book and the thing KBP mentioned up till now don't seem to be listed.
Just encountered by luck an error in my PATH that might have caused the problem. Trying it out now. I'll keep you guys up to date.

Kind regards,

Eric

Last edited by EricTRA; 08-30-2009 at 11:27 AM.
 
Old 08-30-2009, 11:37 AM   #10
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
No such luck

Hello,

Just finished make command again and with the same error. I've attached the latest log file. I'd appreciate if someone could indicate me what I'm missing or why make is failing.

Kind regards,

Eric

EDIT: Forgot attachment.

Last edited by EricTRA; 10-31-2009 at 10:28 AM.
 
Old 08-30-2009, 12:55 PM   #11
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Got it fixed!

Hello,

I got my problem fixed. I started the computer from the LFS LiveCD and when compiling and making the package I got the same error which in my opinion shouldn't happen at all. So I consulted my very best friend (Google) again and came across a post in the archives of LFS stating that when recompiling you have to start from scratch. So I completely deleted the 'build' directory and started over; and this time it worked without any problems.

Thank you very much for helping out kbp. You got me started in the right direction.

Kind regards,

Eric
 
  


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
6.12. GCC-4.1.2 make error. rcg1984 Linux From Scratch 5 08-12-2008 01:59 AM
gcc 4.0.3 make error RiSK Linux From Scratch 3 07-30-2007 10:15 PM
gcc make error laasunde Linux - Software 6 02-04-2006 11:34 AM
gcc error (can't make exexutables) TheDude05 Linux - Software 6 09-06-2005 03:51 PM
gcc-3.3.3 make install error Louis_Carole Linux From Scratch 4 07-31-2004 03:14 PM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration