Bug 38493 - Ada compiler does not work with --exec-prefix configuration
Summary: Ada compiler does not work with --exec-prefix configuration
Status: RESOLVED DUPLICATE of bug 15819
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.4.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 43749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-11 22:18 UTC by Chris Proctor
Modified: 2024-10-26 17:35 UTC (History)
3 users (show)

See Also:
Host:
Target: i686-pc-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-12-05 00:00:00


Attachments
patch to correct problem (291 bytes, patch)
2008-12-11 22:22 UTC, Chris Proctor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Proctor 2008-12-11 22:18:25 UTC
If the Ada compiler is configured with --exec-prefix, it will fail as follows:

[chrisp@lt ~]$ gcc -c -O2 -v hello.adb
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /usr/src/gcc/configure --prefix=/opt/test --exec-prefix=/opt/test/i86 --enable-shared --enable-threads=posix --enable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,ada --enable-libada
Thread model: posix
gcc version 4.4.0 20081030 (experimental) [trunk revision 141459] (GCC)
COLLECT_GCC_OPTIONS='-c' '-O2' '-v' '-mtune=generic'
 /opt/test/i86/libexec/gcc/i686-pc-linux-gnu/4.4.0/gnat1 -quiet -dumpbase hello.adb -O2 -mtune=generic hello.adb -o /tmp/ccNCLjVf.s
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
Comment 1 Chris Proctor 2008-12-11 22:22:13 UTC
Created attachment 16892 [details]
patch to correct problem

Attached is a patch which corrects this problem.
I think this is fairly obvious and trivial, however I do not have write access.

This is a regression, but looking at sources this would be from around the 3.4 time.
Comment 2 Doug Semler 2010-04-15 12:53:53 UTC
*** Bug 43749 has been marked as a duplicate of this bug. ***
Comment 3 Eric Botcazou 2015-12-05 17:28:43 UTC
Still present on mainline.
Comment 4 Eric Botcazou 2024-10-26 17:35:40 UTC
.

*** This bug has been marked as a duplicate of bug 15819 ***