Sergei Trofimovich has commited the following change to toolchain.eclass: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a06e1246568c3c6043de3ae6a5042e5470be1fa8 But after that users won't be able to create musl toolchain. Reproducible: Always Steps to Reproduce: 1. crossdev -t x86_64-gentoo-linux-musl --stable Actual Results: checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [Makefile:11760: configure-target-libquadmath] Error 1 Please read the following links: https://gcc.gnu.org/legacy-ml/gcc/2010-12/msg00438.html https://gcc.gnu.org/legacy-ml/gcc-patches/2010-12/msg01447.html It looks like this issue is related to configure.ac. https://gcc.gnu.org/git/?p=gcc.git;a=history;f=libquadmath;hb=HEAD Libquadmath project looks like abandoned, it received less than 100 commits for the last 10 years. I want to recommend disabling it by default.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=590daa6d79ad4ae1c082762b356f6f07b4375ee3 commit 590daa6d79ad4ae1c082762b356f6f07b4375ee3 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-07-30 21:17:40 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-07-30 21:22:52 +0000 toolchain.eclass: avoid libquadmath in stage1-gcc libquadmath relies on libc presence (sqrt symbols). When initial toolchain is bootstrapped libc is not available yet. The change disables libquadmath for bootstrap cases when libc is not installed yet. gcc-stage2 still uses platform defaults for libquadmath. Reported-by: Andrew Aladjev Closes: https://bugs.gentoo.org/734820 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> eclass/toolchain.eclass | 3 +++ 1 file changed, 3 insertions(+)