Subject: pkg/23871: lang/gcc3-ada
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <email@example.com>
Date: 12/24/2003 06:21:35
>Synopsis: Ada runtime is not relocatable (same as gcc Bug ada/12950)
>Arrival-Date: Wed Dec 24 13:22:00 UTC 2003
>Originator: John R. Shannon
>Release: NetBSD 1.6ZG
System: NetBSD colleen.internal.johnrshannon.com 1.6ZG NetBSD 1.6ZG (KERNEL) #0: Wed Dec 24 02:31:06 MST 2003 firstname.lastname@example.org:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
The normal way to build Ada programs is via gnatmake, like this:
gnatmake calls gcc and other compiler components to compile and link ada_src_file and the files on
which it depends in the correct order. A problem exists in that the PATH is searched for these components
rather than the EXEC_PATH as is the gcc convention. This results in the base system gcc (which does
not understand Ada) being found instead of pkg/gcc3/bin/gcc amoung other things.
gcc Bug ada/12950 reports the problem that the Ada runtime is not relocatable. The fix is
in gcc 3.4. It solves the more general problem of locating compiler components on the EXEC_PATH.
A problem remains in that, contrary to documentation, the directory containing gnat1 (the Ada compiler
front-end) must be in the user's PATH; this will be dealt with via seperate PR.
I have backported the fix in gcc 3.4 to gcc 3.3.2. The modified lang/gcc3-ada may be downloaded
from my https server: