Bug 43749 - installed gnat cannot find installed libraries when exec-prefix != prefix
Summary: installed gnat cannot find installed libraries when exec-prefix != prefix
Status: RESOLVED DUPLICATE of bug 38493
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-13 20:19 UTC by Doug Semler
Modified: 2010-04-15 12:53 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Semler 2010-04-13 20:19:06 UTC
When building a compiler with --prefix=/some/dir and --exec-prefix=/some/dir/subdir, the installed gnat cannot find the installed libraries in /some/dir/subdir/lib/gcc/...

I believe that sdefault.adb should be generated with 

S0 : constant String := \"$(exec_prefix)/\";"
not
S0 : constant String := \"$(prefix)/\";"

in gcc/ada/Make-generated.in - when I modify as above, the installed gnat is able to find the installed adainclude and adalib correctly.  (And the problem doesn't occur in the build tree, so the issue isn't apparent until the installed toolset is used).
Comment 1 Chris Proctor 2010-04-15 06:16:41 UTC
This is a duplicate of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38493
Comment 2 Markus Schöpflin 2010-04-15 07:21:57 UTC
Looks like both are duplicates of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15819. Back then it has been noted that it's just not supported.
Comment 3 Doug Semler 2010-04-15 12:53:53 UTC
You're right.  When I searched for it, it reported no bugs found (sigh).

And I see my solution is exactly the same as 38493.

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