-   Linux From Scratch (
-   -   7.3 gcc pass1 error (

Axium1998 10-12-2013 02:52 PM

7.3 gcc pass1 error
When I was compiling gcc the first time, I got an error and don't know what caused it. The terminal gave error:

In file included from ../../gcc-4.7.2/gcc/builtins.c:29:0:
../../gcc-4.7.2/gcc/realmpfr.h:27:17: fatal error: mpc.h: no such file or directory
compilaion teminated.

Can someone plz help me?

druuna 10-12-2013 03:26 PM

Did you do the following part from inside the gcc-4.7.2 directory (you should):

tar -Jxf ../mpfr-3.1.1.tar.xz
mv -v mpfr-3.1.1 mpfr
tar -Jxf ../gmp-5.1.1.tar.xz
mv -v gmp-5.1.1 gmp
tar -zxf ../mpc-1.0.1.tar.gz
mv -v mpc-1.0.1 mpc

Axium1998 10-12-2013 03:46 PM

Yes, I followed the instruction to the dot. I'm running ubuntu 13.04 on virtualbox in windows. Could that be the problem?

spiky0011 10-12-2013 03:56 PM

Hi post the output of version-check

Axium1998 10-12-2013 05:38 PM

How do I get the version-check?

spiky0011 10-13-2013 01:24 AM


Did you read this page
Can you post the output of the back here to make sure you Host is compliant

Axium1998 10-13-2013 04:48 PM

Will do. Now I'm trying to compile on i386 instead of AMD64, and with ubuntu, lfs host, as only OS

spiky0011 10-14-2013 02:41 AM

post version script

druuna 10-14-2013 04:11 AM


Originally Posted by Axium1998 (Post 5045070)
Will do. Now I'm trying to compile on i386 instead of AMD64, and with ubuntu, lfs host, as only OS

There's no point in switching if your host doesn't comply to the host system requirements. These requirements are the base your LFS is build upon.

As already requested by spiky0011: Please post the output of the script.

ReaperX7 10-14-2013 09:40 PM

If you want a compliant out of the box system to build LFS, Slackware and Salix both will work without needing to download extra packages.

Axium1998 10-14-2013 09:47 PM

Ran the version-check, found I was missing a few packages, will install when I get the chance. Thx guys for helping me (I never knew there was a 'version-check')

ReaperX7 10-14-2013 10:42 PM

Yes, you have to run the script mentioned in each book to test if you have all the required developer packages to build LFS.

To date, the only distribution that is out-of-the-box compliant against LFS's built standards in Slackware and it's spin-offs like SalixOS.

spiky0011 10-15-2013 01:39 AM

Do make sure /bin/sh links to bash not dash

Axium1998 10-15-2013 07:25 AM

I also noticed I had not followed everything to the dot, which had helped cause the problem, so thx guys!

All times are GMT -5. The time now is 09:13 PM.