LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Make error with GCC-4.4.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/make-error-with-gcc-4-4-1-a-751242/)

EricTRA 08-30-2009 07:53 AM

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

kbp 08-30-2009 08:08 AM

Hi Eric,

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


thanks

EricTRA 08-30-2009 08:12 AM

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 :scratch:

Kind regards,

Eric

kbp 08-30-2009 08:30 AM

Hey Eric,

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

thnx

EricTRA 08-30-2009 08:52 AM

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

kbp 08-30-2009 08:58 AM

New 'config.log' ?

EricTRA 08-30-2009 09:00 AM

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

Kind regards,

Eric

kbp 08-30-2009 09:49 AM

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

EricTRA 08-30-2009 11:11 AM

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

EricTRA 08-30-2009 11:37 AM

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.

EricTRA 08-30-2009 12:55 PM

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


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