error: gmp.h: No such file or directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux