public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* error: gmp.h: No such file or directory
@ 2008-06-19 10:54 Martin Krischik
  2008-06-19 11:46 ` Andrew Haley
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Krischik @ 2008-06-19 10:54 UTC (permalink / raw)
  To: gcc-help

Hello,

When compiling gcc 4.3.1 on sun Solaris I get the following error:

---------------------------------------
build/gencondmd > tmp-cond.md
/bin/bash ../../gcc-4.3.1/gcc/../move-if-change tmp-cond.md insn-conditions.md
echo timestamp > s-condmd
build/genflags ../../gcc-4.3.1/gcc/config/sparc/sparc.md \
           insn-conditions.md > tmp-flags.h
/bin/bash ../../gcc-4.3.1/gcc/../move-if-change tmp-flags.h insn-flags.h
echo timestamp > s-flags
/work/BUILD/GCC/ultrasparc-sun-solaris2.10/./prev-gcc/xgcc  
-B/work/BUILD/GCC/ultrasparc-sun-solaris2.10/./prev-gcc/  
-B/opt/gnat/gcc/sparc-sun-solaris2.10/bin/ -c   -g -O2 -DIN_GCC   -W  
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes  
-Wold-style-definition -Wmissing-format-attribute -pedantic  
-Wno-long-long -Wno-variadic-macros                                 
-Wno-overlength-strings    -DHAVE_CONFIG_H -I. -I.  
-I../../gcc-4.3.1/gcc -I../../gcc-4.3.1/gcc/.  
-I../../gcc-4.3.1/gcc/../include -I./../intl  
-I../../gcc-4.3.1/gcc/../libcpp/include -Ino/include -Ino/include  
-I../../gcc-4.3.1/gcc/../libdecnumber  
-I../../gcc-4.3.1/gcc/../libdecnumber/dpd -I../libdecnumber     
../../gcc-4.3.1/gcc/c-lang.c -o c-lang.o
In file included from ../../gcc-4.3.1/gcc/tree.h:30,
                  from ../../gcc-4.3.1/gcc/c-lang.c:26:
../../gcc-4.3.1/gcc/double-int.h:24:17: error: gmp.h: No such file or  
directory
In file included from ../../gcc-4.3.1/gcc/tree.h:30,
                  from ../../gcc-4.3.1/gcc/c-lang.c:26:
../../gcc-4.3.1/gcc/double-int.h:184: error: expected ')' before 'double_int'
../../gcc-4.3.1/gcc/double-int.h:185: error: expected declaration  
specifiers or '...' before 'mpz_t'
In file included from ../../gcc-4.3.1/gcc/c-lang.c:26:
../../gcc-4.3.1/gcc/tree.h:4895: error: expected declaration  
specifiers or '...' before 'mpz_t'
../../gcc-4.3.1/gcc/tree.h:4895: error: expected declaration  
specifiers or '...' before 'mpz_t'
make[3]: *** [c-lang.o] Error 1
make[3]: Leaving directory `/work/BUILD/GCC/ultrasparc-sun-solaris2.10/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/work/BUILD/GCC/ultrasparc-sun-solaris2.10'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/work/BUILD/GCC/ultrasparc-sun-solaris2.10'
make: *** [all] Error 2
---------------------------------------

Of course gmp.h is there - the blimey "xgcc" compiler does not look at  
the right place:

---------------------------------------
> la /opt/gnat/gcc/include/gmp.h
-rw-r--r-- 1 xxxx xxx 81K 2008-06-18 10:39 /opt/gnat/gcc/include/gmp.h
---------------------------------------

And ignores any helpful hints:

---------------------------------------
> grep CFLAGS /work/BUILD/GCC/ultrasparc-sun-solaris2.10/config.log
ac_cv_env_CFLAGS_set='set'
ac_cv_env_CFLAGS_value='-B /opt/gnat/gcc/include'
CFLAGS='-B /opt/gnat/gcc/include'
CFLAGS_FOR_BUILD='-B /opt/gnat/gcc/include'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
---------------------------------------

Any ideas?

Regards

Martin

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

* Re: error: gmp.h: No such file or directory
  2008-06-19 10:54 error: gmp.h: No such file or directory Martin Krischik
@ 2008-06-19 11:46 ` Andrew Haley
  2008-06-19 13:26   ` Martin Krischik
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Haley @ 2008-06-19 11:46 UTC (permalink / raw)
  To: Martin Krischik; +Cc: gcc-help

Martin Krischik wrote:

> CFLAGS='-B /opt/gnat/gcc/include'

Don't do that.

> Any ideas?

RTFM, in particular the section http://gcc.gnu.org/install/configure.html
See --with-gmp...

Andrew.

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

* Re: error: gmp.h: No such file or directory
  2008-06-19 11:46 ` Andrew Haley
@ 2008-06-19 13:26   ` Martin Krischik
  2008-06-19 13:31     ` Andrew Haley
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Krischik @ 2008-06-19 13:26 UTC (permalink / raw)
  To: gcc-help

Zitat von Andrew Haley <aph@redhat.com>:

> Martin Krischik wrote:
>
>> CFLAGS='-B /opt/gnat/gcc/include'
>
> Don't do that.
>
>> Any ideas?
>
> RTFM, in particular the section http://gcc.gnu.org/install/configure.html

You know, I have "build all script" which was able to create 4.2  
without trouble and now it can't.

> See --with-gmp...

Ohh, I know about "--with-gmp" - it somehow never made a difference no  
matter which "--with-gmp=" I used. I also tried "--with-gmp-include="  
and "--with-gmp-lib=pathname" - which made no difference as well.

I begun to think those options are placebos. But I have another try.  
Maybe it's  working after all - but I doubt that.

Martin

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

* Re: error: gmp.h: No such file or directory
  2008-06-19 13:26   ` Martin Krischik
@ 2008-06-19 13:31     ` Andrew Haley
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Haley @ 2008-06-19 13:31 UTC (permalink / raw)
  To: Martin Krischik; +Cc: gcc-help

Martin Krischik wrote:
> Zitat von Andrew Haley <aph@redhat.com>:
> 
>> Martin Krischik wrote:
>>
>>> CFLAGS='-B /opt/gnat/gcc/include'
>>
>> Don't do that.
>>
>>> Any ideas?
>>
>> RTFM, in particular the section http://gcc.gnu.org/install/configure.html
> 
> You know, I have "build all script" which was able to create 4.2 without
> trouble and now it can't.
> 
>> See --with-gmp...
> 
> Ohh, I know about "--with-gmp" - it somehow never made a difference no
> matter which "--with-gmp=" I used. I also tried "--with-gmp-include="
> and "--with-gmp-lib=pathname" - which made no difference as well.

It might be a good idea to find out why these didn't work for you, since
they are, pretty obviously, intended to solve this specific problem.

> I begun to think those options are placebos. But I have another try.
> Maybe it's  working after all - but I doubt that.

We'll see.

Andrew.

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

end of thread, other threads:[~2008-06-19 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-19 10:54 error: gmp.h: No such file or directory Martin Krischik
2008-06-19 11:46 ` Andrew Haley
2008-06-19 13:26   ` Martin Krischik
2008-06-19 13:31     ` Andrew Haley

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).