Hard wiring? was Re: [gtkada] GtkAda 2.0 on Linux: build problem

chris.danx chris.danx at ntlworld.com
Wed Sep 11 00:52:49 CEST 2002


Arnaud Charlet wrote:
>>Is the location it expects gnatmake hardwired into the configure script? 
>>  If so what can I do to tell it where it really is?
> 
> It's not hardwired: it can be anywhere, and there's no /usr/bin knowledge at
> all.

ok.

> The configure script is simply checking whether 'gnatmake' (wherever it is on
> the PATH) works properly.
> 
> Now, if gnatmake is not on your path, or doesn't work properly, then configure
> is simply doing it's job by not allowing you to try getting further.

Fair does!  The system is setup like this

gnat 3.13p is in /usr/bin
gcc 3.3 snapshot is in /usr/local/experimental/gcc/bin

with this in mind I did

export PATH="/usr/local/experimental/gcc/bin:$PATH"

followed by "echo $PATH"

bash: 
/usr/local/experimental/gcc/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/lib/java/bin:/opt/gnome/bin


Then "gnatmake -v" gave

GNATMAKE 3.3 20020910 (experimental) Copyright 1995-2002 Free Software 
Foundation, Inc.

[rest skipped as it's very very long]

Next I ran ./configure and got the following output

loading 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 merge... (cached) /usr/bin/merge
checking whether merge works correctly...... yes
checking for diff... (cached) /usr/bin/diff
checking for the correct diff option... -u
checking for patch... (cached) /usr/bin/patch
checking for the correct patch option... -f
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatmake... (cached) /usr/bin/gnatmake
checking that your gnat compiler works with a simple example... no
configure: error: /usr/bin/gnatmake test failed at compile time! Check 
your configuration.


Cleaned the directory to be safe (make clean), then called ./configure 
and got the above output again!

What's wrong?


Chris





More information about the gtkada mailing list