Subject: pkg/23871: lang/gcc3-ada
To: None <>
From: None <>
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
>Originator:     John R. Shannon
>Release:        NetBSD 1.6ZG
System: NetBSD 1.6ZG NetBSD 1.6ZG (KERNEL) #0: Wed Dec 24 02:31:06 MST 2003 i386
Architecture: i386
Machine: i386
	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.

	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: