LinuxQuestions.org
Register a domain and help support LQ
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 11-24-2011, 01:03 AM   #1
davecove
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
A different issue with step 5.10.1 (GCC 2nd pass)


Working my way thru the book (ver 7) with openSUSE 12.1 as my host and things have gone very well up until now. The test at the end of 5.8 worked exactly as written and the Installation of Binutils in 5.9.1 went without errors.

But 5.10.1 (Installation of GCC) is not going well. Everything goes well until I run 'make'. After lots of encouraging-looking grinding, make stops on this:
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
lfs:/mnt/lfs/sources/gcc-build$
As instructed, mpfr-3.1.0 has been unzipped into /mnt/lfs/sources/gcc-4.6.2/mpfr (as has gmp and mpc)

Here is the CC line I am using right before the 'make':
CC="$LFS_TGT-gcc -B/tools/lib/" AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib ../gcc-4.6.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=$(pwd)/../gcc-4.6.2/mpfr/src --with-mpfr-lib=$(pwd)/../gcc-4.6.2/mpfr/src/.libs
It does differ from the book in a few ways; 1) it uses gcc-4.6.2 instead of gcc-4.6.1 in the paths and 2) the --with-mpfr-lib directive uses a different path than in the book because the one in the book points to a non-existent location.

Why does 'make' not find libmpfr?

Thank you for your time,
Dave
 
Old 11-24-2011, 01:27 AM   #2
czarherr
Member
 
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 13
Posts: 288

Rep: Reputation: 32
I had this problem. It turned out that I simply forgot to change the name of the "mpc-0.9" package to just "mpc" after I extracted it in the GCC directory.

Also, have you tried using the path specified in the book anyway?

By the way, I'm having a different problem on this step. Would you mind posting your shell history from the start of Glibc step 2 so I can compare?

Last edited by czarherr; 11-24-2011 at 02:18 AM.
 
Old 11-24-2011, 11:12 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Which book are you following: LFS 7.0 stable or LFS SVN/Development?

gcc 4.6.1 is used in the stable version (and works), gcc 4.6.2 is tested in svn/development. If (!!) you need to build gcc 4.6.2 in the stable version use the chapter from the svn book to do so.

BTW: I don't get this adjustment --with-mpfr-lib=$(pwd)/mpfr/src/.libs to --with-mpfr-lib=$(pwd)/../gcc-4.6.2/mpfr/src/.libs
You have the same command when using gcc 4.6.1 and that works perfectly, even though that location isn't present when issuing the command. I think you should remove the bold part.

Hope this helps.
 
1 members found this post helpful.
Old 11-24-2011, 11:21 AM   #4
davecove
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Well, I am following the stable book, but somehow I got the wget-list file from the development branch I guess.

I went back and used gcc-4.6.1 and got past my issue.

Thank you for pointing that out.

Dave
 
Old 11-24-2011, 11:32 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
You're welcome

BTW: Can you put up the [SOLVED] tag.
first post -> Thread Tools -> Mark this thread as solved
 
Old 07-02-2012, 09:47 AM   #6
esornep
Member
 
Registered: Jun 2012
Posts: 48

Rep: Reputation: Disabled
/home/lfs/LFS/sources/gcc-4.7.1/configure \
--target=$LFS_TGT \
--prefix=/home/lfs/LFS/tools \
--with-newlib \
--without-headers \
--with-local-prefix=/home/lfs/LFS/tools \
--with-native-system-header-dir=/home/lfs/LFS/tools/include \
--disable-nls \
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libmudflap \
--disable-libssp \
--disable-libgomp \
--disable-libquadmath \
--enable-languages=c,c++ \
--with-mpfr-include=/home/lfs/LFS/sources/gcc-4.7.1/mpfr/src \
--with-mpfr-lib=/home/lfs/LFS/sources/gcc-4.7.1/mpfr/src/.libs

this was my configure file and same error and i have checked the paths can u put some light on it.thanks
 
Old 07-02-2012, 10:12 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
@esornep: Please don't re-open a solved thread, start your own next time: Have a look here https://www.linuxquestions.org/quest...8/#post4717193 for an "answer" (in one of your other threads).

Last edited by druuna; 07-02-2012 at 10:20 AM. Reason: fixed sentence
 
  


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
6.7 section 5.10 gcc 2nd pass spiky0011 Linux From Scratch 2 02-11-2011 02:09 PM
LFS version 6.5 I'm on step 5.10 I have a problem with gcc-4.4.1 pass 2 redpill Linux From Scratch 2 01-29-2010 09:23 AM
error 396, on a variable (gcc), learning GCC step by step frenchn00b Programming 2 09-11-2009 01:03 PM
[SOLVED] GCC 4.3.2 2nd pass Out of memory cc1plus yaplej Linux From Scratch 5 04-13-2009 06:51 PM
GCC 2nd pass make error - xgcc cannot find -lc cogitocumimpune Linux From Scratch 1 01-11-2009 07:13 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration