This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems bootstrapping GCC 4.0 with Ada enabled


Hi,
I've tryed to bootstrap GCC with Ada enabled and I failed.
When I try to bootstrap using system compiler that doesn't understand Ada the
then configure chokes:

wilx@amber2:::~/gcc-head/objdir> ../srcdir/configure --disable-nls
--enable-version-specific-runtime-libs--enable-dwarf2--with-cpu=athlon-tbird
--with-arch=athlon-tbird --with-system-zlib --enable-languages=c,c++,objc,ada
--disable-sjlj-exceptions --enable-shared=libstdc++ --program-suffix=-4.0
--enable-__cxa_atexit --enable-libmudflap
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for correct version of gmp.h... yes
checking for MPFR... yes
configure: error:
The following requested languages were not found: ada
The available languages are: c,ada,c++,f95,java,objc,treelang



And when I try to configure with CC=gnatgcc (I have Gnat installed from
Gentoo Portage.)  then it dies with this:

wilx@amber2:::~/gcc-head/objdir> CC=gnatgcc ../srcdir/configure --disable-nls
--enable-version-specific-runtime-libs --enable-dwarf2--with-cpu=athlon-tbird
--with-arch=athlon-tbird --with-system-zlib --enable-languages=c,c++,objc,ada
--disable-sjlj-exceptions --enable-shared=libstdc++ --program-suffix=-4.0
--enable-__cxa_atexit --enable-libmudflap
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gnatgcc
checking whether the C compiler (gnatgcc  ) works... yes
checking whether the C compiler (gnatgcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gnatgcc accepts -g... yes
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for correct version of gmp.h... no
The following languages will be built: c,ada,c++,objc
*** This configuration is not supported in the following subdirectories:
     target-libgfortran target-libffi target-boehm-gc target-zlib
target-libjava zlib fastjar
    (Any other directories should still work fine.)
checking for bison... bison
checking for bison... bison -y
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... /usr/i686-pc-linux-gnu/bin/ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile

wilx@amber2:::~/gcc-head/objdir> make bootstrap
[...]
checking for working strncmp... no
updating cache ../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[1]: Entering directory
`/home/wilx/gcc-head/objdir/build-i686-pc-linux-gnu/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
  gnatgcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../../srcdir/libiberty/../include
-W -Wall -Wtraditional -pedantic  ../../../srcdir/libiberty/regex.c -o
pic/regex.o; \
else true; fi
gnatgcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../../srcdir/libiberty/../include
-W -Wall -Wtraditional -pedantic ../../../srcdir/libiberty/regex.c -o regex.o
In file included from /usr/include/sys/types.h:31,
                 from ../../../srcdir/libiberty/regex.c:55:
/usr/include/bits/types.h:31: stddef.h: No such file or directory
In file included from ../../../srcdir/libiberty/regex.c:55:
/usr/include/sys/types.h:147: stddef.h: No such file or directory
In file included from ../../../srcdir/libiberty/regex.c:153:
/usr/include/string.h:33: stddef.h: No such file or directory
In file included from /usr/include/bits/string2.h:1211,
                 from /usr/include/string.h:396,
                 from ../../../srcdir/libiberty/regex.c:153:
/usr/include/stdlib.h:33: stddef.h: No such file or directory
In file included from /usr/include/limits.h:124,
                 from ../../../srcdir/libiberty/regex.c:189:
/usr/include/limits.h:124: No include path in which to find limits.h
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory
`/home/wilx/gcc-head/objdir/build-i686-pc-linux-gnu/libiberty'
make: *** [all-build-libiberty] Error 2
wilx@amber2:::~/gcc-head/objdir> ../srcdir/configure --help


Now, I'd like to know what should I do to be able to bootstrap it.

Vaclav Haisman

PS: CC me please as am I not subscribed to this list.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]