LinuxQuestions.org
Visit Jeremy's Blog.
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 10-12-2013, 02:52 PM   #1
Axium1998
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Rep: Reputation: Disabled
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?
 
Old 10-12-2013, 03:26 PM   #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
Did you do the following part from inside the gcc-4.7.2 directory (you should):
Code:
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
 
1 members found this post helpful.
Old 10-12-2013, 03:46 PM   #3
Axium1998
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yes, I followed the instruction to the dot. I'm running ubuntu 13.04 on virtualbox in windows. Could that be the problem?
 
Old 10-12-2013, 03:56 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi post the output of version-check
 
Old 10-12-2013, 05:38 PM   #5
Axium1998
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
How do I get the version-check?
 
Old 10-13-2013, 01:24 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Did you read this page http://www.linuxfromscratch.org/lfs/.../hostreqs.html
Can you post the output of the version-check.sh back here to make sure you Host is compliant
 
1 members found this post helpful.
Old 10-13-2013, 04:48 PM   #7
Axium1998
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Will do. Now I'm trying to compile on i386 instead of AMD64, and with ubuntu, lfs host, as only OS
 
Old 10-14-2013, 02:41 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
post version script
 
Old 10-14-2013, 04:11 AM   #9
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 Axium1998 View Post
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 version-check.sh script.
 
Old 10-14-2013, 09:40 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 10-14-2013, 09:47 PM   #11
Axium1998
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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')

Last edited by Axium1998; 10-14-2013 at 09:48 PM.
 
Old 10-14-2013, 10:42 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yes, you have to run the version-check.sh 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.
 
Old 10-15-2013, 01:39 AM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Do make sure /bin/sh links to bash not dash
 
1 members found this post helpful.
Old 10-15-2013, 07:25 AM   #14
Axium1998
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
I also noticed I had not followed everything to the dot, which had helped cause the problem, so thx guys!
 
  


Reply



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
GCC Pass1 - undefined reference to `GNU_USER_TARGET_OS_CPP_BUILTINS' richard620 Linux From Scratch 26 05-29-2013 10:55 AM
glibc pass1--configure error keyur Linux From Scratch 5 01-30-2009 05:05 AM
error while configuring gcc-3.3.3 (pass1) alext_29 Linux From Scratch 4 09-28-2004 11:48 PM
Compiling GCC (pass1):ld cannot find -lc Dargason Linux From Scratch 2 07-15-2004 02:48 AM
gcc pass1 in chap5 doesn't get very far! davemar Linux From Scratch 3 03-31-2004 03:51 PM

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

All times are GMT -5. The time now is 11:22 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
Open Source Consulting | Domain Registration