This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/12950] New: Ada runtime is not relocatable
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Nov 2003 21:41:50 -0000
- Subject: [Bug ada/12950] New: Ada runtime is not relocatable
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12950
Summary: Ada runtime is not relocatable
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at techfak dot uni-bielefeld dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: mips-sgi-irix6.5
GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5
Unlike all other backends, the Ada runtime is not relocatable. E.g., the
Ada version below was built with the default prefix (i.e. /usr/local), but
installed with DESTDIR=/vol/gcc/obj/gnat/3.4/6.5-local. Invoking the
resulting gcc directly fails since the runtime isn't found.
Environment:
System: IRIX lyra 6.5 07141607 IP22
host: mips-sgi-irix6.5
build: mips-sgi-irix6.5
target: mips-sgi-irix6.5
configured with: /vol/gnu/src/gcc/gcc-ada/gcc/configure --disable-nls --disable-multilib
How-To-Repeat:
$ cat > conftest.adb
procedure conftest is begin null; end conftest;
$ /vol/gcc/obj/gnat/3.4/6.5-local/usr/local/bin/gcc -v -c conftest.adb
Reading specs from /amnt/figaro/volumes/obj-gcc/gcc/obj.irix5/gnat/3.4/6.5-local/usr/local/bin/../lib/gcc/mips-sgi-irix6.5/3.4/specs
Configured with: /vol/gnu/src/gcc/gcc-ada/gcc/configure --disable-nls --disable-multilib
Thread model: single
gcc version 3.4 20031105 (experimental)
/amnt/figaro/volumes/obj-gcc/gcc/obj.irix5/gnat/3.4/6.5-local/usr/local/bin/../libexec/gcc/mips-sgi-irix6.5/3.4/gnat1 -quiet -dumpbase conftest.adb conftest.adb -o /var/tmp//ccjYv3hb.s
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-11-07 21:41 -------
Fix:
Although it is possible to work around this using the GNAT_ROOT environment
variable or the .gnat_wrapper shell script distributed with ACT's binay
distributions of GNAT, Ada should behave like all other backends and
support relocation out of the box.