public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Failing to build gcc 4.7.1
@ 2012-07-26 19:43 Philip Boulton
  2012-07-26 20:02 ` Tim Prince
  2012-07-27  7:12 ` Georg-Johann Lay
  0 siblings, 2 replies; 5+ messages in thread
From: Philip Boulton @ 2012-07-26 19:43 UTC (permalink / raw)
  To: gcc-help

Working on FreeBSD8.1, in a jailed environment.  I have an ancient
(gcc3.4.6) version of gcc that works as my C compiler.  gmake version 3.8.1

I do the following, as root:
> tar zxf gcc-4.7.1.tar.gz 
> cd gcc-4.7.1
> ls -atlG contrib/downl*
> ./contrib/download_prerequisites    <-- seems to work
> ./contrib/download_ecj              <-- seems to work
>  cd ..
>  mkdir obj_gcc471
>  cd obj_gcc471
>  ../gcc-4.7.1/configure     <-- runs successfully.
>  gmake

During the make process, I get the following error:

checking for math/rint... yes
checking for long double... yes
checking format of `long double' floating point... IEEE extended, little
endian
checking for gmp.h... no
configure: error: gmp.h can't be found, or is unusable.
gmake[2]: *** [configure-stage1-mpfr] Error 1
gmake[2]: Leaving directory `/usr/src/local/obj_gcc471'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/src/local/obj_gcc471'

N.B., gmp.h is *not* present anywhere in gcc-4.7.1 after the
download_prerequisites.  Should it be?

Any help is appreciated,

Thanks.

PB

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Failing to build gcc 4.7.1
  2012-07-26 19:43 Failing to build gcc 4.7.1 Philip Boulton
@ 2012-07-26 20:02 ` Tim Prince
  2012-07-27  7:12 ` Georg-Johann Lay
  1 sibling, 0 replies; 5+ messages in thread
From: Tim Prince @ 2012-07-26 20:02 UTC (permalink / raw)
  To: gcc-help

On 07/26/2012 03:43 PM, Philip Boulton wrote:
> Working on FreeBSD8.1, in a jailed environment.  I have an ancient
> (gcc3.4.6) version of gcc that works as my C compiler.  gmake version 3.8.1
>
> I do the following, as root:
>> tar zxf gcc-4.7.1.tar.gz
>> cd gcc-4.7.1
>> ls -atlG contrib/downl*
>> ./contrib/download_prerequisites<-- seems to work
>> ./contrib/download_ecj<-- seems to work
>>   cd ..
>>   mkdir obj_gcc471
>>   cd obj_gcc471
>>   ../gcc-4.7.1/configure<-- runs successfully.
>>   gmake
> During the make process, I get the following error:
>
> checking for math/rint... yes
> checking for long double... yes
> checking format of `long double' floating point... IEEE extended, little
> endian
> checking for gmp.h... no
> configure: error: gmp.h can't be found, or is unusable.
> gmake[2]: *** [configure-stage1-mpfr] Error 1
> gmake[2]: Leaving directory `/usr/src/local/obj_gcc471'
> gmake[1]: *** [stage1-bubble] Error 2
> gmake[1]: Leaving directory `/usr/src/local/obj_gcc471'
>
> N.B., gmp.h is *not* present anywhere in gcc-4.7.1 after the
> download_prerequisites.  Should it be?
>
> Any help is appreciated,
>
> Thanks.
>
> PB
>
You could attempt to configure and build those prerequisites separately 
in place where download_prerequisites put them (making a clean build 
directory for each), to get an idea more easily what the issues might 
be.  Inability to complete these individual builds would block the gcc 
build.

-- 
Tim Prince

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Failing to build gcc 4.7.1
  2012-07-26 19:43 Failing to build gcc 4.7.1 Philip Boulton
  2012-07-26 20:02 ` Tim Prince
@ 2012-07-27  7:12 ` Georg-Johann Lay
  2012-07-31 22:14   ` Philip Boulton
  1 sibling, 1 reply; 5+ messages in thread
From: Georg-Johann Lay @ 2012-07-27  7:12 UTC (permalink / raw)
  To: Philip Boulton; +Cc: gcc-help

Philip Boulton schrieb:
> Working on FreeBSD8.1, in a jailed environment.  I have an ancient
> (gcc3.4.6) version of gcc that works as my C compiler.  gmake version 3.8.1

One I hit a problem with that make version and I had to upgrade to
3.8.2.  Dunno remember the exact problem.

> I do the following, as root:
>> tar zxf gcc-4.7.1.tar.gz 
>> cd gcc-4.7.1
>> ls -atlG contrib/downl*
>> ./contrib/download_prerequisites    <-- seems to work

This should generate soft links gmp, mpc, mpfr to the respective,
just downloaded source packages.

>> ./contrib/download_ecj              <-- seems to work
>>  cd ..
>>  mkdir obj_gcc471
>>  cd obj_gcc471
>>  ../gcc-4.7.1/configure     <-- runs successfully.

Read what gmp, mpfr, mpc is uses in its output or config.log.

>>  gmake
> 
> During the make process, I get the following error:
> 
> checking for math/rint... yes
> checking for long double... yes
> checking format of `long double' floating point... IEEE extended, little
> endian
> checking for gmp.h... no
> configure: error: gmp.h can't be found, or is unusable.
> gmake[2]: *** [configure-stage1-mpfr] Error 1
> gmake[2]: Leaving directory `/usr/src/local/obj_gcc471'
> gmake[1]: *** [stage1-bubble] Error 2
> gmake[1]: Leaving directory `/usr/src/local/obj_gcc471'
> 
> N.B., gmp.h is *not* present anywhere in gcc-4.7.1 after the
> download_prerequisites.  Should it be?

Yes, follow the gmp soft link in GCC's top level sources as
mentioned above.

Johann

> Any help is appreciated,
> 
> Thanks.
> 
> PB

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Failing to build gcc 4.7.1
  2012-07-27  7:12 ` Georg-Johann Lay
@ 2012-07-31 22:14   ` Philip Boulton
  0 siblings, 0 replies; 5+ messages in thread
From: Philip Boulton @ 2012-07-31 22:14 UTC (permalink / raw)
  To: 'Georg-Johann Lay'; +Cc: gcc-help, n8tm

Further to this -- I suspect that this may be the same problem as described
here:

http://gcc.gnu.org/ml/gcc-bugs/2011-05/msg02172.html

Does this make sense?  Is there a usable workaround?

PB

-----Original Message-----
From: Georg-Johann Lay [mailto:gjl@gcc.gnu.org] 
Sent: July 27, 2012 01:11
To: Philip Boulton
Cc: gcc-help@gcc.gnu.org
Subject: Re: Failing to build gcc 4.7.1

Philip Boulton schrieb:
> Working on FreeBSD8.1, in a jailed environment.  I have an ancient
> (gcc3.4.6) version of gcc that works as my C compiler.  gmake version
3.8.1

One I hit a problem with that make version and I had to upgrade to
3.8.2.  Dunno remember the exact problem.

> I do the following, as root:
>> tar zxf gcc-4.7.1.tar.gz 
>> cd gcc-4.7.1
>> ls -atlG contrib/downl*
>> ./contrib/download_prerequisites    <-- seems to work

This should generate soft links gmp, mpc, mpfr to the respective,
just downloaded source packages.

>> ./contrib/download_ecj              <-- seems to work
>>  cd ..
>>  mkdir obj_gcc471
>>  cd obj_gcc471
>>  ../gcc-4.7.1/configure     <-- runs successfully.

Read what gmp, mpfr, mpc is uses in its output or config.log.

>>  gmake
> 
> During the make process, I get the following error:
> 
> checking for math/rint... yes
> checking for long double... yes
> checking format of `long double' floating point... IEEE extended, little
> endian
> checking for gmp.h... no
> configure: error: gmp.h can't be found, or is unusable.
> gmake[2]: *** [configure-stage1-mpfr] Error 1
> gmake[2]: Leaving directory `/usr/src/local/obj_gcc471'
> gmake[1]: *** [stage1-bubble] Error 2
> gmake[1]: Leaving directory `/usr/src/local/obj_gcc471'
> 
> N.B., gmp.h is *not* present anywhere in gcc-4.7.1 after the
> download_prerequisites.  Should it be?

Yes, follow the gmp soft link in GCC's top level sources as
mentioned above.

Johann

> Any help is appreciated,
> 
> Thanks.
> 
> PB

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Failing to build gcc 4.7.1
@ 2012-07-31 21:02 Philip Boulton
  0 siblings, 0 replies; 5+ messages in thread
From: Philip Boulton @ 2012-07-31 21:02 UTC (permalink / raw)
  To: gcc-help


Thanks very much for your help. 

What I don't understand, about the absence of gmp.h is:  where *should* it
be, and why is it absent.

Here's what I have done:

Downloaded built and installed the never version of gmake (3.8.2) rather
than 3.8.1.  This seems fine.

If I do this step:
./contrib/download_prerequisites, it does indeed create a subdirectory
called gmp-4.3.2, and a symbolic link of gmp to that subdirectory.  However,
searching inside the directory, there is no file called gmp.h.  And this of
course is the error message I get when I attempt to gmake 4.7.1.

Is there something else I need to do?  Note, I had earlier (a few weeks ago)
installed gmp, mpc and mpfr libraries, but if I understand correctly, the
build should ignore those and use the ones I download via
download_prerequisites.  Is that right?

Any help is, once again, appreciated.

PB




-----Original Message-----
From: Georg-Johann Lay [mailto:gjl@gcc.gnu.org] 
Sent: July 27, 2012 01:11
To: Philip Boulton
Cc: gcc-help@gcc.gnu.org
Subject: Re: Failing to build gcc 4.7.1

Philip Boulton schrieb:
> Working on FreeBSD8.1, in a jailed environment.  I have an ancient
> (gcc3.4.6) version of gcc that works as my C compiler.  gmake version
3.8.1

One I hit a problem with that make version and I had to upgrade to
3.8.2.  Dunno remember the exact problem.

> I do the following, as root:
>> tar zxf gcc-4.7.1.tar.gz 
>> cd gcc-4.7.1
>> ls -atlG contrib/downl*
>> ./contrib/download_prerequisites    <-- seems to work

This should generate soft links gmp, mpc, mpfr to the respective,
just downloaded source packages.

>> ./contrib/download_ecj              <-- seems to work
>>  cd ..
>>  mkdir obj_gcc471
>>  cd obj_gcc471
>>  ../gcc-4.7.1/configure     <-- runs successfully.

Read what gmp, mpfr, mpc is uses in its output or config.log.

>>  gmake
> 
> During the make process, I get the following error:
> 
> checking for math/rint... yes
> checking for long double... yes
> checking format of `long double' floating point... IEEE extended, little
> endian
> checking for gmp.h... no
> configure: error: gmp.h can't be found, or is unusable.
> gmake[2]: *** [configure-stage1-mpfr] Error 1
> gmake[2]: Leaving directory `/usr/src/local/obj_gcc471'
> gmake[1]: *** [stage1-bubble] Error 2
> gmake[1]: Leaving directory `/usr/src/local/obj_gcc471'
> 
> N.B., gmp.h is *not* present anywhere in gcc-4.7.1 after the
> download_prerequisites.  Should it be?

Yes, follow the gmp soft link in GCC's top level sources as
mentioned above.

Johann

> Any help is appreciated,
> 
> Thanks.
> 
> PB

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-31 22:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-26 19:43 Failing to build gcc 4.7.1 Philip Boulton
2012-07-26 20:02 ` Tim Prince
2012-07-27  7:12 ` Georg-Johann Lay
2012-07-31 22:14   ` Philip Boulton
2012-07-31 21:02 Philip Boulton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).