Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Building gcc (6.4.1 release) - missing gmp.h ?: (6 Items)
   
Building gcc (6.4.1 release) - missing gmp.h ?  
Trying to build the 6.4.1 release on a self-hosted 6.4.1 NTO machine.

Ultimate goal is to create a self-hosted PPC gcc (all other tools components built OK with minimal tweaking). For now, 
just trying to build the nto-x86 version on NTO, so using the nto-x86-o-ntox86 directory 

The instructions say 'type make', which I do, and it starts to configure, before complaining about requiring GMP 4.1+ 
and MPFR 2.3.0,  a need for missing gmp.h, and suggesting various flag options. Then it stops.

What should I be using, or am I missing something ?

Thanks !

Dave
Re: Building gcc (6.4.1 release) - missing gmp.h ?  
Dave Bott wrote:
> Trying to build the 6.4.1 release on a self-hosted 6.4.1 NTO machine.
> 
> Ultimate goal is to create a self-hosted PPC gcc (all other tools components built OK with minimal tweaking). For now,
 just trying to build the nto-x86 version on NTO, so using the nto-x86-o-ntox86 directory 
> 
> The instructions say 'type make', which I do, and it starts to configure, before complaining about requiring GMP 4.1+ 
and MPFR 2.3.0,  a need for missing gmp.h, and suggesting various flag options. Then it stops.
> 
> What should I be using, or am I missing something ?

The instructions are slightly out of date. Starting with gcc 4.3 libgmp 
and limpfr are required as host libraries (for cc1/cc1plus). They need 
to be configured and installed for gcc to build.

http://www.mpfr.org/
http://gmplib.org/

Regards,

Ryan Mansfield

RE: Building gcc (6.4.1 release) - missing gmp.h ?  
Ah, that makes sense, thanks Ryan.
 
Would it make sense to check in the tested library code into svn ?
 
Thanks
 
Dave

________________________________

From: Ryan Mansfield [mailto:community-noreply@qnx.com]
Sent: Mon 19/10/2009 5:31 PM
To: general-toolchain
Subject: Re: Building gcc (6.4.1 release) - missing gmp.h ?



Dave Bott wrote:
> Trying to build the 6.4.1 release on a self-hosted 6.4.1 NTO machine.
>
> Ultimate goal is to create a self-hosted PPC gcc (all other tools components built OK with minimal tweaking). For now,
 just trying to build the nto-x86 version on NTO, so using the nto-x86-o-ntox86 directory
>
> The instructions say 'type make', which I do, and it starts to configure, before complaining about requiring GMP 4.1+ 
and MPFR 2.3.0,  a need for missing gmp.h, and suggesting various flag options. Then it stops.
>
> What should I be using, or am I missing something ?

The instructions are slightly out of date. Starting with gcc 4.3 libgmp
and limpfr are required as host libraries (for cc1/cc1plus). They need
to be configured and installed for gcc to build.

http://www.mpfr.org/
http://gmplib.org/

Regards,

Ryan Mansfield





_______________________________________________

General
http://community.qnx.com/sf/go/post40293



Attachment: Text winmail.dat 4.34 KB
Re: Building gcc (6.4.1 release) - missing gmp.h ?  
Dave Bott wrote:
> Ah, that makes sense, thanks Ryan.
> 
> Would it make sense to check in the tested library code into svn ?

Yes we could check the prereqs into the external core-dev-tools repo to 
make it easier for people to build gcc. I'll create a PR and put this on 
my TODO list. We also need to update the build instructions to include 
these instructions. The required versions of gmp/mpfr change with each 
gcc release but unless the right version is installed the config test 
will fail.

I'm not sure if there has any been customer demand for us to package 
GMP/MPFR libraries with the release. If anyone has a need for it 
(besides for gcc) please let us know.

Regards,

Ryan Mansfield

> ________________________________
> 
> From: Ryan Mansfield [mailto:community-noreply@qnx.com]
> Sent: Mon 19/10/2009 5:31 PM
> To: general-toolchain
> Subject: Re: Building gcc (6.4.1 release) - missing gmp.h ?
> 
> 
> 
> Dave Bott wrote:
>  > Trying to build the 6.4.1 release on a self-hosted 6.4.1 NTO machine.
>  >
>  > Ultimate goal is to create a self-hosted PPC gcc (all other tools 
> components built OK with minimal tweaking). For now, just trying to 
> build the nto-x86 version on NTO, so using the nto-x86-o-ntox86 directory
>  >
>  > The instructions say 'type make', which I do, and it starts to 
> configure, before complaining about requiring GMP 4.1+ and MPFR 2.3.0,  
> a need for missing gmp.h, and suggesting various flag options. Then it 
> stops.
>  >
>  > What should I be using, or am I missing something ?
> 
> The instructions are slightly out of date. Starting with gcc 4.3 libgmp
> and limpfr are required as host libraries (for cc1/cc1plus). They need
> to be configured and installed for gcc to build.
> 
> http://www.mpfr.org/
> http://gmplib.org/
> 
> Regards,
> 
> Ryan Mansfield
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post40293
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post40294
> 
Re: Building gcc (6.4.1 release) - missing gmp.h ?  
Thanks Ryan.

I downloaded those libraries (not sure if I got the right versions). GMP required m4 too, so I grabbed that as well.

M4 built (one minor change), GMP built, but mpfr is not playing nicely - can't find libgmp even when I copy all variants
  from /usr/local/lib to /lib. Also had to copy gmp.h into the mpfr directory to get that going.

No idea how to easily cross-compile them...

So, a pre-tweaked set of these libs would be splendid... In one of those oh-so-rare spare moments... :-)

Thanks !

Dave
Re: Building gcc (6.4.1 release) - missing gmp.h ?  
Dave Bott wrote:
> Thanks Ryan.
> 
> I downloaded those libraries (not sure if I got the right versions). GMP required m4 too, so I grabbed that as well.
> 
> M4 built (one minor change), GMP built, but mpfr is not playing nicely - can't find libgmp even when I copy all 
variants  from /usr/local/lib to /lib. Also had to copy gmp.h into the mpfr directory to get that going.
> 
> No idea how to easily cross-compile them...

They are both straight forward to cross-compile. You need to use the 
--host configure option. e.g --host=powerpc-unknown-nto-qnx6.4.0.

Regards,

Ryan Mansfield