When guile-2 (currently from lisp overlay) is installed, gdb sub-configure finds it and tries to find guild which is suffixed hence not detected. Using cached var override makes it detected but some other check fails. Since there is no-one that I know actively working on guile at this time, please just append "--without-guile" to $myconf to kill the automagic.
http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a79de33ce600f92b0c1affc000eb0fd5b65e65f
Thanks.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26f2cf3987cf7734164f97b7abb50fc91bc8052b commit 26f2cf3987cf7734164f97b7abb50fc91bc8052b Author: David Martí Huescar <Phireh@fukurokuju.dev> AuthorDate: 2021-08-26 15:06:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-08-26 22:55:17 +0000 sys-devel/gdb: add guile USE flag Add a new guile optional USE flag for GDB's scripting support. Also adds the >=guile-2.0 optional dependency if such flag is active. GDB has been compiling with '--without-guile' since #562902 and the option seems to have been forgotten. Since GDB works with guile 2.0 to 3.0 it seems about time to bring it back. Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: David Martí Huescar <Phireh@fukurokuju.dev> Bug: https://bugs.gentoo.org/562902 Closes: https://github.com/gentoo/gentoo/pull/22115 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gdb/gdb-10.1.ebuild | 6 +++--- sys-devel/gdb/gdb-10.2-r1.ebuild | 6 +++--- sys-devel/gdb/gdb-10.2.ebuild | 6 +++--- sys-devel/gdb/gdb-9999.ebuild | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-)