LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.0 GCC pass 2 fail (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-0-gcc-pass-2-fail-920322/)

liltux 12-24-2011 04:43 AM

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

spiky0011 12-24-2011 05:13 AM

Hi

I take it you are herechapter 5.10
Did you untar MPFR, GMP and MPC into the source dir

liltux 12-24-2011 09:52 AM

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?

druuna 12-24-2011 10:18 AM

Hi,
Quote:

Originally Posted by liltux (Post 4557594)
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.

liltux 12-24-2011 11:02 AM

That is what i am thinking and planning on giving a try today if i get time. Thanks.

liltux 12-26-2011 10:10 PM

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.

druuna 12-27-2011 03:34 AM

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.


All times are GMT -5. The time now is 09:27 AM.