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 12-24-2011, 03:43 AM   #1
liltux
Member
 
Registered: Mar 2011
Posts: 45

Rep: Reputation: 2
LFS 7.0 GCC pass 2 fail


To begin I will state this is my first attempt at LFS. I normally run Slackware, but I wanted to try my hand at LFS. I have not spent much time in the forum, but with what little I did spend I did not recognize anyones issue to be the exact same as mine. Below is my error:

Quote:
checking for stdint.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... no
configure: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: limits.h: proceeding with the compiler's result
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for creal in -lm... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
Does this looks familiar to anyone? I am currently running Slackware 13.37 and here is the results of my version-check.sh:

Quote:
bash-4.1# bash version-check.sh
bash, version 4.1.10(2)-release
/bin/sh -> /bin/bash
Binutils: (Linux/GNU Binutils) 2.21.51.0.6.20110118
bison (GNU Bison) 2.4.3
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.11
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /bin/gawk-3.1.8
gcc (GCC) 4.5.2
GNU C Library stable release version 2.13
grep (GNU grep) 2.7
gzip 1.4
Linux version 2.6.37.6-smp (root@midas) (gcc version 4.5.2 (GCC) ) #2 SMP Sat Apr 9 23:39:07 CDT 2011
m4 (GNU M4) 1.4.16
GNU Make 3.82
patch 2.6.1
Perl version='5.12.3';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.0.2
Compilation OK
Is this bad? I did notice a lot of newer versions in my results than the book listed, but did not feel it should be a problem. Any opinions/help is welcome.

Thanks, Jared
 
Old 12-24-2011, 04:13 AM   #2
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

I take it you are herechapter 5.10
Did you untar MPFR, GMP and MPC into the source dir
 
Old 12-24-2011, 08:52 AM   #3
liltux
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 2
Yes and did the renaming too, but it was odd that it was looking for mpfr, in all caps, i wonder if typo in src?
 
Old 12-24-2011, 09:18 AM   #4
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
Hi,
Quote:
Originally Posted by liltux View Post
Yes and did the renaming too, but it was odd that it was looking for mpfr, in all caps, i wonder if typo in src?
Something must have gone wrong on your side. The current sources are correct and work.

Did you remove the source (and build) directories after you've finished with them? (Bottom of page: point 3e). If the source and build directory from pass 1 are still present weird things will happen.

My advise: Remove gcc's source and build directory and start fresh with chapter 5.10. GCC-4.6.1 - Pass 2.

Hope this helps.
 
Old 12-24-2011, 10:02 AM   #5
liltux
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 2
That is what i am thinking and planning on giving a try today if i get time. Thanks.
 
Old 12-26-2011, 09:10 PM   #6
liltux
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 2
Thanks for all responses! I just finished chapter 5. I must have had a typo or something going on, it was 4am where I live while I was working on it.
 
Old 12-27-2011, 02:34 AM   #7
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
Hi,

Nice to see you got it all working!

Before you start with chapter 6: Do make a backup of what you've done this far (Caution box at the bottom.). This way you don't have to start all over if something goes wrong in chapter 6. Just remove everything, restore the backup and you're ready to start with chapter 6 again.

Hope this helps.
 
1 members found this post helpful.
  


Reply

Tags
lfs


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
5.10. GCC-4.5.1 - Pass 2(lfs-6.7-pageno-46) janakiramulu Linux From Scratch 2 04-07-2011 01:01 PM
[SOLVED] LFS 6.7 gcc pass 1 clarification prakashsince92 Linux From Scratch 7 12-30-2010 02:57 AM
gcc second pass does not compile. LFS version 6.4 5.12 arielsegal Linux From Scratch 18 06-15-2009 11:12 AM
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
LFS - 5.4. GCC-3.4.3 - Pass 1 - Failed cruiseoveride Linux From Scratch 7 06-07-2007 10:34 PM

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

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