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).
This is a duplicate of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38493
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.
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 ***