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). -- Summary: installed gnat cannot find installed libraries when exec-prefix != prefix Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dougsemler at gmail dot com GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43749