LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2008, 10:51 PM   #1
robineecc1
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Wink i have an error Building GCC: requires GMP 4.1+ and MPFR 2.3.0+.


Actually i'm working in the chapter 5 of version 6.4.
I want to install the GCC-4.3.2, but i get an error:

error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.

I have trying install gcc with gmp 4.1 and mpfr 2.3.o and some others version, but i can install it.

please, help me, i would like make a LFS
 
Old 12-14-2008, 01:47 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Try the --with-gmp and --with-mpfr options to specify their locations.
 
Old 12-31-2008, 09:03 AM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 119

Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge View Post
Try the --with-gmp and --with-mpfr options to specify their locations.
I have the same problem.
I installed the latest version of GMP (4.2.4) and the latest version of MPFR (2.3.2).
After launching the configuration tool in the gcc dir:
./configure --target=powerpc-405-linux --with-gmp=.... --with-mpfr=...

I got the message:
...
checking the correct version of gmp.h.. no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+

Thanks.
 
Old 01-01-2009, 07:55 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
./configure --target=powerpc-405-linux --with-gmp=.... --with-mpfr=...
Is that really what you put? Shouldn't there be some locations in those ellipsis?


Could be related to:
http://gcc.gnu.org/ml/gcc-bugs/2007-02/msg01089.html
 
Old 01-02-2009, 09:42 AM   #5
zvivered
Member
 
Registered: Sep 2007
Posts: 119

Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge View Post
Is that really what you put? Shouldn't there be some locations in those ellipsis?


Could be related to:
http://gcc.gnu.org/ml/gcc-bugs/2007-02/msg01089.html
You are right. After putting the right path to gmp,mpfr the .confiure works fine.

Then I ran "make". After a while I got the following error:
/HMeyzam08/a99059/GNU/gcc/gcc-4.3.2/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


I searched the error on the internet. It seems I had to update LD_LIBRARY_PATH because gmp,mpfr are not on located on the default place (/usr/lib).
What is the way to change LD_LIBRARY_PATH ? I did:
setenv LD_LIBRARY_PATH gmp_path,mpfr_path.

But the problem remains. What am I doing wronge ?
Thanks.
 
Old 01-04-2009, 08:51 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
check it with:

echo $LD_LIBRARY_PATH

IIRC:

LD_LIBRARY_PATH=path/to/shared/lib
export LD_LIBRARY_PATH
 
Old 01-18-2009, 11:18 AM   #7
ekawahyu
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
I had the same problem, but now it is fixed. There is nothing wrong with the gmp and mpfr if you read the instruction carefully.

Make sure you have both gmp and mpfr in gcc-4.3.2 and not in gcc-build.

I was not keen enough to read it, but now I found where the problem was.
 
Old 04-04-2009, 11:21 PM   #8
1PoochHoward
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
Angry I am still having this issue

So I have tried as all of you have said, and I am still getting that dumb error, that it can't find gmp.h. First of all, no matter where I put it, there isn't a gmp.h file anywhere. I see one that is gmpxx.h. The only way that I get anywhere further is putting all of these files, not directories, in the directory where I decompressed the gcc files. Please help me understand and why Linux from Scratch leaves this out. Thanks in advance!
 
Old 04-05-2009, 06:47 PM   #9
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by 1PoochHoward View Post
So I have tried as all of you have said, and I am still getting that dumb error, that it can't find gmp.h. First of all, no matter where I put it, there isn't a gmp.h file anywhere. I see one that is gmpxx.h. The only way that I get anywhere further is putting all of these files, not directories, in the directory where I decompressed the gcc files. Please help me understand and why Linux from Scratch leaves this out. Thanks in advance!
make sure you changed the dir names to gmp, mpfr. I also needed to export LD_LIBRARY_PATH for some of the builds.

Last edited by jpeters; 04-05-2009 at 06:49 PM.
 
Old 04-06-2009, 12:24 AM   #10
1PoochHoward
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
Talking Figure this one out!

I figured this one out. I was working on Ubuntu, and come to find out I didn't have one of the tools that was mentioned at first in LFS or linuxfromscratch.com. So just verify that you have ALL OF THE TOOLS. Thanks for your comment
 
Old 04-09-2009, 07:03 PM   #11
yaplej
Member
 
Registered: Apr 2009
Distribution: CentOS, Ubuntu, openSuSE
Posts: 150
Blog Entries: 1

Rep: Reputation: 22
I just started my LFS build today and had the same problem using LFS 6.4. The directions have you extract mpfr-2.3.2, and gmp-4.2.4 then move them. It was not very clear on where to move them, but I found this to work.
1. extract gcc-4.3.2
2. extract mpfr-2.3.2
3. extract gmp-4.2.4
4. move mpfr-2.3.2 to gcc-4.3.2/mpfr
5. move gmp-4.2.4 to gcc-4.3.2/gmp

after putting those in the gcc-4.3.2 source directory everything compiled fine.

Code:
tar -jxf gcc-4.3.2.tar.bz2
tar -jxf mpfr-2.3.2.tar.bz2
mv mpfr-2.3.2 gcc-4.3.2/mpfr
tar -jxf gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gcc-4.3.2/gmp
 
Old 12-17-2009, 03:41 PM   #12
prokash
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
On Mac X I still the problem

On 10.6 I was able to build, but with the same level of gmp, mpfr, and gcc, I'm still getting this on 10.5.

if i pass down configuration arguments, it does not seem to take it, still barfing.

Could someone please give the exact command line to give to configure, just to be sure ?

I also tried to pass no to optional package, basically I was looking and searching the gcc4.4.2 and gcc4.4.1 configure file. By default both gmp and mpfr gets installed in /usr/local in this case....

thanks
-p
 
Old 12-17-2009, 03:52 PM   #13
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
@prokash: You opened a 8 month old thread that is possibly related to your problem. I would suggest opening a new thread for this to give it the attention it needs/deserves.

Do give us a bit more info. Which LFS version and chapter are you stuck in, did all the steps before work, is your host up to specs for a LFS build (OS-X??). Stuff like that.

Hope this helps.
 
Old 01-02-2010, 12:43 AM   #14
tthtlc
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Rep: Reputation: 2
Just want to contribute my 2cts here (in case someone has googled here):

I downloaded the latest package:

gcc-4.4.2.tar.bz2
gmp-4.3.1.tar.bz2
mpfr-2.4.2.tar.bz2

and then untar all of them.

then execute this:

mv gmp-4.3.1 gcc-4.4.2/gmp
mv mpfr-2.4.2 gcc-4.4.2/mpfr
and the
cd gcc-4.4.2
./configure

OS:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

done, it configure and compile without problem.
 
Old 10-03-2011, 10:41 PM   #15
ravidborse
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Rep: Reputation: 0
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.

Above in the forum suggested to download gmp-5.0.2.tar.bz2 and mpfr-3.1.0.tar.bz2 and extract them.
Then Copy both folder in your gcc downloaded directory
Here is my configuration

- Download gcc-core-4.5.1.tar.bz2
- Download gmp-5.0.2.tar.bz2
- Download mpfr-3.1.0.tar.bz2
- Extract gcc-core-4.5.1.tar.bz2 (This will extract to folder name gcc-4.5.1)
- Extract gmp-5.0.2.tar.bz2 and mv this folder in gcc-4.5.1 and rename it to gmp only
- Extract mpfr-3.1.0.tar.bz2 and mv this folder in gcc-4.5.1 and rename it to mpfr only

Problem will solved
Thanks & Regards
 
  


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
Finding path of GMP and MPFR for gcc upgrade drosselmeyer Linux - Newbie 2 08-03-2011 08:15 AM
Can't Compile GMP with gcc mac 10.4.11 phy1729 Programming 1 04-16-2008 04:06 AM
one more error building GCC - related with the newer version of Glibc?? lfs63 Linux From Scratch 1 02-17-2008 10:20 AM
error in Building gcc-4.0.2 newcomer4 Linux - Software 2 01-31-2006 03:44 AM
Error building GCC Lunar_Lamp Linux From Scratch 1 01-18-2006 06:30 AM


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