Re: trying to compile gnat



Schüle Daniel wrote:
Ok, this is where I am now

I have those dirs and files

build
gcc-4.1.1
gcc-ada-4.1.1.tar.bz2
gcc-core-4.1.1.tar.bz2
gcc-g++-4.1.1.tar.bz2
gcc-testsuite-4.1.1.tar.bz2

cd build

../gcc-4.1.1/configure --prefix=/pool/inst --enable-bootstrap --enable-languages=c,c++,ada
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... /usr/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 could not be built: ada
Recognised languages are: c,ada,c++,obj-c++,treelang

ok, configure say no Ada installed
but the following works

root@mond---[21:01:48]---/pool/software2/gcc/new/build # gnatmake /pool/PROG/ada/1/main.adb
gnatgcc -c -I/pool/PROG/ada/1/ -I- /pool/PROG/ada/1/main.adb
gnatbind -x main.ali
gnatlink main.ali

Looks like you are running one of those GNAT distributions where the compiler driver for gnat is gnatgcc instead of just plain old gcc. This has caused more problems with builds like this. perhaps you can do something with export CC=gnatgcc before the configure. The basic problem is that (I think) configure does not know how to find gnatgcc, it is looking for a gcc that knows Ada.

What host OS is this?
.



Relevant Pages

  • Re: The GNU Ada compiler
    ... >>> make GNAT work pleasantly on OpenVMS. ... So just compiling a standart GCC on ... >>> OpenVMS might not be enough to have an well working Ada on OpenVMS. ... universe and a GPL only compiler is not going to help get Ada into ...
    (comp.lang.ada)
  • Re: GNAT GPL 2005 Edition is now available
    ... AdaCore only work on the main line of development in GCC. ... this means that very few updates are being made to the Ada part of GCC ... "Debian Ada compiler", whichever that is. ...
    (comp.lang.ada)
  • Re: try to bluid gvd
    ... gcc: g-expect.adb: Ada compiler not installed on this system ... hmm it say i havn't a ADa compiler on my systeme... ... the standalone GVD is no longer updated since the debugging capability was rolled into GPS. ...
    (comp.lang.ada)
  • Re: A bug in gnat/gcc 3.3.3?
    ... The quality of GCC 3.4 is similar to, ... I still think that GNAT 3.15p is the best ... development in Ada and C++. ... The packages conflict with each other (i.e. you can install ...
    (comp.lang.ada)
  • Re: The GNU Ada compiler
    ... > gcc 3.3.x. ... And we know that Ada in gcc only became usable *again* ... 3.3's Ada support at all, ... >> more than influence Ada in Debian:) ...
    (comp.lang.ada)