commit:     579c67b21758fbacff3527a01a12f00ed90f931d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 01:58:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 01:58:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=579c67b2

toolchain.eclass: add explanation for 'sorry' on fallback Ada path

Give a nicer message to users in case they hit the 'sorry' fallback
Ada path.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b563277e90b1..b2ada2190328 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -903,6 +903,9 @@ toolchain_src_configure() {
                # OK, even gnat-gpl didn't work. Give up for now.
                # TODO: Source a newer, or build our own, bootstrap tarball.
                if [[ -z ${ada_bootstrap} ]] ; then
+                       eerror "Couldn't find a suitable GNAT compiler for Ada!"
+                       eerror "Please try installing dev-lang/gnat-gpl."
+                       eerror "For other platforms, you may need to use 
crossdev."
                        die "Fallback ada-bootstrap path not yet implemented!"
 
                        #einfo "Using bootstrap GNAT compiler..."

Reply via email to