* trying to compile gnat
@ 2006-05-27 14:13 Schüle Daniel
2006-05-27 14:53 ` Ludovic Brenta
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Schüle Daniel @ 2006-05-27 14:13 UTC (permalink / raw)
Hello
I am failing to compile gnat
the compilation goes fine but no gnatmake is generated
I was trying different gcc releases
gcc-3.2.tar.bz2
gcc-3.3.4.tar.bz2
gcc-3.4.0.tar.bz2
gcc-4.1.1.tar.bz2
tar xjf gcc-4.1.1.tar.bz2
cd gcc-4.1.1
./configure --prefix=/myLocation --enable-languages=c,c++,ada
also I tried to compile from parts, eg
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 gcc-4.1.1
./configure --prefix=/myLocation --enable-languages=c,c++,ada
I am somewhat confused, gcc and g++ are genereated and
I can compile with them, so what's wrong with ada?
Regards, Daniel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-27 14:13 trying to compile gnat Schüle Daniel
@ 2006-05-27 14:53 ` Ludovic Brenta
2006-05-27 20:57 ` Schüle Daniel
2006-05-28 2:24 ` Jeffrey Creem
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Ludovic Brenta @ 2006-05-27 14:53 UTC (permalink / raw)
Schüle Daniel <uval@rz.uni-karlsruhe.de> writes:
> Hello
>
> I am failing to compile gnat
> the compilation goes fine but no gnatmake is generated
> I was trying different gcc releases
>
> gcc-3.2.tar.bz2
> gcc-3.3.4.tar.bz2
> gcc-3.4.0.tar.bz2
> gcc-4.1.1.tar.bz2
>
> tar xjf gcc-4.1.1.tar.bz2
> cd gcc-4.1.1
> ./configure --prefix=/myLocation --enable-languages=c,c++,ada
Have you read the documentation? It clearly says you must not build
in the directory containing the sources. You must do:
$ mkdir gcc-4.1.1.o; cd gcc-4.1.1.o
$ ../gcc-4.1.1/configure --prefix=/myLocation --enable-languages=c,c++,ada
$ make bootstrap
> also I tried to compile from parts, eg
>
> 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 gcc-4.1.1
> ./configure --prefix=/myLocation --enable-languages=c,c++,ada
>
> I am somewhat confused, gcc and g++ are genereated and
> I can compile with them, so what's wrong with ada?
>
> Regards, Daniel
Do you have a previous version of GNAT installed? Since GNAT is
written in Ada, you need an Ada compiler to bootstrap it.
What "make" command do you use, after the configure? It should be
"make bootstrap" or "make bootstrap-lean".
The GNAT tools (gnatmake etc) should then normally appear in the gcc
subdirectory.
More details here: http://ada.krischik.com/
HTH
--
Ludovic Brenta.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-27 14:53 ` Ludovic Brenta
@ 2006-05-27 20:57 ` Schüle Daniel
2006-05-28 8:36 ` Martin Krischik
0 siblings, 1 reply; 9+ messages in thread
From: Schüle Daniel @ 2006-05-27 20:57 UTC (permalink / raw)
[...]
>> 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 gcc-4.1.1
>> ./configure --prefix=/myLocation --enable-languages=c,c++,ada
>>
>> I am somewhat confused, gcc and g++ are genereated and
>> I can compile with them, so what's wrong with ada?
>>
>> Regards, Daniel
>
> Do you have a previous version of GNAT installed? Since GNAT is
> written in Ada, you need an Ada compiler to bootstrap it.
no, I don't have GNAT installed, so I guess I am experiencing
egg chicken problem.
Is there no C written version of Ada compiler?
>
> What "make" command do you use, after the configure? It should be
> "make bootstrap" or "make bootstrap-lean".
make bootstrap
>
> The GNAT tools (gnatmake etc) should then normally appear in the gcc
> subdirectory.
no gnatmake on my system
> More details here: http://ada.krischik.com/
thx, I will look for solutions
Regards, Daniel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-27 14:13 trying to compile gnat Schüle Daniel
2006-05-27 14:53 ` Ludovic Brenta
@ 2006-05-28 2:24 ` Jeffrey Creem
2006-05-28 8:29 ` Martin Krischik
2006-05-28 19:10 ` Schüle Daniel
3 siblings, 0 replies; 9+ messages in thread
From: Jeffrey Creem @ 2006-05-28 2:24 UTC (permalink / raw)
Sch�le Daniel wrote:
> Hello
>
> I am failing to compile gnat
> the compilation goes fine but no gnatmake is generated
> I was trying different gcc releases
>
> gcc-3.2.tar.bz2
> gcc-3.3.4.tar.bz2
> gcc-3.4.0.tar.bz2
> gcc-4.1.1.tar.bz2
>
> tar xjf gcc-4.1.1.tar.bz2
> cd gcc-4.1.1
> ./configure --prefix=/myLocation --enable-languages=c,c++,ada
>
>
You also got some other good advice...But here is some more
1) You appear to be configuring within the source directory. This is not
the recommended way of doing the build
2) There may very well be language and/or target specific requirements
you need to follow. Read the notes at gcc.gnu.org
3) Use something prebuilt
What is your host os?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-27 14:13 trying to compile gnat Schüle Daniel
2006-05-27 14:53 ` Ludovic Brenta
2006-05-28 2:24 ` Jeffrey Creem
@ 2006-05-28 8:29 ` Martin Krischik
2006-05-28 19:10 ` Schüle Daniel
3 siblings, 0 replies; 9+ messages in thread
From: Martin Krischik @ 2006-05-28 8:29 UTC (permalink / raw)
Schï¿œle Daniel wrote:
> I am failing to compile gnat
> the compilation goes fine but no gnatmake is generated
> I was trying different gcc releases
Suggested reading:
http://ada.krischik.com/index.php/Articles/CompileGcc
http://ada.krischik.com/index.php/Articles/CompileGNATGPL
http://ada.krischik.com/index.php/Articles/CompileGNATPro
Mind you: The texts are old and with newer gcc's compiling becomes easier
(i.E. a lot of the --enable- options are now default and "make -C gcc
gnatlib-shared gnattools;" is not needed any more.
If you like some newer script files you can download them form The GNU Ada
Project:
http://svn.sourceforge.net/viewcvs.cgi/gnuada/trunk/rpm/SPECS/
http://svn.sourceforge.net/viewcvs.cgi/gnuada/trunk/tar/configure/
Those scripts are up to date for the most current gcc sources. I would also
invite you to join The GNU Ada Project [1]. The project if open for all
operating system.
Martin
[1] http://gnuada.sourceforge.net/
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-27 14:13 trying to compile gnat Schüle Daniel
` (2 preceding siblings ...)
2006-05-28 8:29 ` Martin Krischik
@ 2006-05-28 19:10 ` Schüle Daniel
2006-05-28 21:00 ` Jeffrey Creem
3 siblings, 1 reply; 9+ messages in thread
From: Schüle Daniel @ 2006-05-28 19:10 UTC (permalink / raw)
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
it compiles
root@mond---[21:02:26]---/pool/software2/gcc/new/build #
/pool/PROG/ada/1/main
begin
200
end
and executes
this last step was not working yesterday
I installed gnat binaries and set PATH accordingly
I can call gnatmake and build ELF executables
What am I missing now?
Any help approciated.
Regards, Daniel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-28 19:10 ` Schüle Daniel
@ 2006-05-28 21:00 ` Jeffrey Creem
2006-05-28 22:47 ` Schüle Daniel
0 siblings, 1 reply; 9+ messages in thread
From: Jeffrey Creem @ 2006-05-28 21:00 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: trying to compile gnat
2006-05-28 21:00 ` Jeffrey Creem
@ 2006-05-28 22:47 ` Schüle Daniel
0 siblings, 0 replies; 9+ messages in thread
From: Schüle Daniel @ 2006-05-28 22:47 UTC (permalink / raw)
[...]
> 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.
thank you a lot
it solved the problem
> What host OS is this?
Linux SuSE 9.0
Regards, Daniel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-05-28 22:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-27 14:13 trying to compile gnat Schüle Daniel
2006-05-27 14:53 ` Ludovic Brenta
2006-05-27 20:57 ` Schüle Daniel
2006-05-28 8:36 ` Martin Krischik
2006-05-28 2:24 ` Jeffrey Creem
2006-05-28 8:29 ` Martin Krischik
2006-05-28 19:10 ` Schüle Daniel
2006-05-28 21:00 ` Jeffrey Creem
2006-05-28 22:47 ` Schüle Daniel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox