Subject: pkg/23871: lang/gcc3-ada
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <john@johnrshannon.com>
List: netbsd-bugs
Date: 12/24/2003 06:21:35
>Number: 23871
>Category: pkg
>Synopsis: Ada runtime is not relocatable (same as gcc Bug ada/12950)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 24 13:22:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: John R. Shannon
>Release: NetBSD 1.6ZG
>Organization:
johnrshannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 1.6ZG NetBSD 1.6ZG (KERNEL) #0: Wed Dec 24 02:31:06 MST 2003 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
Architecture: i386
Machine: i386
>Description:
The normal way to build Ada programs is via gnatmake, like this:
gnatmake ada_src_file
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.
>How-To-Repeat:
>Fix:
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:
https://www.johnrshannon.com/NetBSD/gcc3-ada.tar.gz
>Release-Note:
>Audit-Trail:
>Unformatted: