commit: 18cf313474587d078b1520f03511433ead141de4 Author: A. Wilcox <AWilcox <AT> Wilcox-Tech <DOT> com> AuthorDate: Sun Jul 21 16:06:59 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Jul 31 00:01:47 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18cf3134
toolchain.eclass: ppc64-musl: Disable libquadmath * --disable-libquadmath is needed to avoid GCC PR 116007. * --disable-libquadmath-support is needed for Fortran to build, as GCC upstream requires a weak header when float128 is available. * --with-long-double-128=no explicitly disables all Float128 support. [sam: Fix whitespace.] Bug: https://bugs.gentoo.org/892874 Signed-off-by: A. Wilcox <AWilcox <AT> Wilcox-Tech.com> Closes: https://github.com/gentoo/gentoo/pull/37689 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index c7c366a37ad0..a60024c134c3 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1214,7 +1214,14 @@ toolchain_src_configure() { # - https://git.musl-libc.org/cgit/musl/tree/INSTALL # - bug #704784 # - https://gcc.gnu.org/PR93157 - [[ ${CTARGET} == powerpc64-*-musl ]] && confgcc+=( --with-abi=elfv2 ) + # musl additionally does not support libquadmath. See: + # - https://gcc.gnu.org/PR116007 + [[ ${CTARGET} == powerpc64-*-musl ]] && confgcc+=( + --with-abi=elfv2 + --disable-libquadmath + --disable-libquadmath-support + --with-long-double-128=no + ) if in_iuse ieee-long-double; then # musl requires 64-bit long double, not IBM double-double or IEEE quad.
