LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-01-2012, 01:01 PM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259

Just a note when ever rebuilding software always remove untared dir and any other build dirs
 
Old 07-01-2012, 01:07 PM   #17
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
did it !!!! ...... any other method .....???
 
Old 07-01-2012, 01:17 PM   #18
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
There should be a config log in the gcc dir can you pastebin it
 
Old 07-01-2012, 01:32 PM   #19
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
http://pastebin.com/J4G1B1ef
 
Old 07-01-2012, 01:52 PM   #20
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Hi

Ok I think your gcc on the host is to new
Quote:
Gcc-4.1.2 (Versions greater than 4.6.2 are not recommended as they have not been tested)
you have 4.6.3
Try a rebuild using this book here
I have just built this 1 yesterday using ubuntu 12.10

Just run the version-check from that book

Last edited by spiky0011; 07-01-2012 at 01:54 PM.
 
Old 07-02-2012, 09:32 AM   #21
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
Okay i started from the first .... right from the start did whatever was in the book and i end up with this error

configure: error: libmpfr not found or uses a different ABI.

was compiling the gcc-4.7.1 ...

in making the make file ..... help please
 
Old 07-02-2012, 10:08 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380
I'm assuming this is your first LFS build, with that in mind I do have 2 tips for you:

1) Build the stable LFS version and not the Development version. Although the Development version might work, you can run into problems and at that point it will be hard to find out if you did something wrong or that the book was wrong.

2) Do not deviate from the LFS=/mnt/lfs convention. I see you use /home/LFS/LFS/ (in this thread) and/or /home/lfs/LFS/ (in your other thread). Both are suspicious.

There is no need to deviate in any way from the book, doing so will probably complicate things (best case). Especially on a first build you should focus on how things are done and not on how to change things to your liking.
 
Old 07-02-2012, 10:13 AM   #23
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
thanks for the reply .... the version 7.1 was giving the error i started the thread with ....... so following it up i cleaned everything and started a fresh so the difference in paths ..... now i was doing what was there in the book exactly (to the best of my knowledge) but this error is creeping up (i have checked for the paths and re verified ) so i would request to suggest a way out for this .....
 
Old 07-02-2012, 01:34 PM   #24
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Hi Druuna

The reason for pointing out the svn version was because of the host gcc, I was wondering if that was causing an issue.
 
Old 07-03-2012, 08:35 AM   #25
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
In file included from /usr/include/stdio.h:28:0,
from ../../../sources/gcc-4.6.2/libgcc/../gcc/tsystem.h:87,
from ../../../sources/gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory `/mnt/lfs/gcc-build/i686-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/mnt/lfs/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/gcc-build'
make: *** [all] Error 2


any help please .......... as always sticked to the basics .....
 
Old 07-03-2012, 04:35 PM   #26
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Hi

Spent the last few hours on this (using 12.04) managed to get the same problem. Have you installed patch on the host system it,s in the repos,
when you
Code:
su - lfs
then
Code:
echo $LFS
did you get /mnt/lfs reply? If not run
Code:
export LFS=/mnt/lfs
Chapter 4.4 did you create the 2 files for user lfs?
then run command
Code:
source ~/.bash_profile
right at the bottom?
I would start again.
Make sure you apply the patch in binutils
I think I covered it all.

I think the problem is with either the .bash_profile or LFS path

Last edited by spiky0011; 07-03-2012 at 04:47 PM.
 
Old 07-04-2012, 12:24 AM   #27
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
Perfectly working on Ubuntu 12.04 ........ thanks for all the help @spiky0011 @druuna
 
Old 07-04-2012, 02:36 AM   #28
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
hi what was the problem
 
Old 07-04-2012, 05:10 AM   #29
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
to get the error gcc-executables i installed gfortran .... then it worked f9
 
Old 07-04-2012, 07:00 AM   #30
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,880
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
I take it you put that on the host system?
 
  


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
LFS gcc library esornep Linux - Newbie 1 07-01-2012 08:37 AM
LFS gcc library esornep Linux - Software 2 07-01-2012 08:29 AM
lfs 6.5 gcc problem aahiqmir Linux From Scratch 1 10-25-2009 09:31 AM
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


All times are GMT -5. The time now is 05:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration