comp.lang.ada
 help / color / mirror / Atom feed
From: "Ludovic Brenta" <ludovic.brenta@insalien.org>
Subject: Re: Shared Ada Library to be Used in a Non-Ada Context
Date: 10 Aug 2005 00:53:07 -0700
Date: 2005-08-10T00:53:07-07:00	[thread overview]
Message-ID: <1123660387.140929.305530@o13g2000cwo.googlegroups.com> (raw)
In-Reply-To: fx9Ke.23451$hV3.8385@nntpserver.swip.net

Jeffrey Carter wrote:
> Gnatmake invokes "gcc-3.4". It seems to know about GNAT.
> Gnatbind invokes "gcc". It doesn't seem to know about GNAT.

This appears to be a bug in the gnat-3.4 package.

David Sauvage wrote:
> i'm using Debian GNU/Linux Sarge.
> linux kernel     2.6.8-2-386
> libc6               2.3.2.ds1-22
> gcc                3.3.5-3
> gcc-3.3          3.3.5-13
> gcc-3.4          3.4.3-13
> gnat-3.4          3.4.3-13
> libgnat-3.4      3.4.3-13
> libgnat-3.15p- 3.15p-1

You should use the system C compiler (gcc-3.3) and the system Ada
compiler (gnat). I suggest you remove gnat-3.4 and reinstall gnat.
This will make your toolchain consistent with all other Ada
packages in Sarge.

Your Makefile should use CC=gcc, and gnatmake directly. In Sarge,
gcc is a symlink to gcc-3.3; gnatmake and gnatkink correctly
invoke gnatgcc, the Ada-aware gcc 2.8.1 compiler driver.

Your Makefile should link libservices.so to libgnat explicitly.
See the Debian Ada Policy[1] for detailed instructions on how to
do this.

[1] http://www.ada-france.org/debian/debian-ada-policy.html

-- 
Ludovic Brenta.




  parent reply	other threads:[~2005-08-10  7:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-08 23:35 Shared Ada Library to be Used in a Non-Ada Context David Sauvage
2005-08-09  2:50 ` Jeffrey Carter
2005-08-09 21:51   ` David Sauvage
2005-08-10  0:14     ` Georg Bauhaus
2005-08-10  7:53     ` Ludovic Brenta [this message]
2005-08-10 22:02       ` David Sauvage
2005-08-11  8:08         ` Ludovic Brenta
2005-08-11 10:41           ` Ludovic Brenta
2005-08-11 11:27             ` Georg Bauhaus
2005-08-11 23:26           ` David Sauvage
2005-08-10  7:38 ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox