Created attachment 796624 [details] emerge --info sys-devel/crossdev-20220205 fails building this target too. After some fiddling around I found out it builds ok if you pass USE='-ssp' to cross-powerpc-gentoo-linux-musl/gcc. But this USE-flag is selected as default on my amd64 box. # crossdev -S -t powerpc-gentoo-linux-musl -------------------------------------------------------------------------------------------------------------- * crossdev version: 20220709 * Host Portage ARCH: amd64 * Host Portage System: x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu) * Target Portage ARCH: ppc * Target System: powerpc-gentoo-linux-musl * Stage: 4 (C/C++ compiler) * USE=multilib: no * Target ABIs: default * binutils: binutils-[stable] * gcc: gcc-[stable] * headers: linux-headers-[stable] * libc: musl-[stable] * CROSSDEV_OVERLAY: /var/db/repos/localrepo * PORT_LOGDIR: /var/log/portage * PORTAGE_CONFIGROOT: / * Portage flags: _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - * leaving metadata/layout.conf alone in /var/db/repos/localrepo _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - * Log: /var/log/portage/cross-powerpc-gentoo-linux-musl-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-powerpc-gentoo-linux-musl-gcc-stage1.log * Emerging cross-gcc-stage1 ... [ ok ] * Log: /var/log/portage/cross-powerpc-gentoo-linux-musl-linux-headers.log * Emerging cross-linux-headers ... [ ok ] * Log: /var/log/portage/cross-powerpc-gentoo-linux-musl-musl.log * Emerging cross-musl ... [ ok ] * Log: /var/log/portage/cross-powerpc-gentoo-linux-musl-gcc-stage2.log * Emerging cross-gcc-stage2 ... * error: gcc failed :( * * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-powerpc-gentoo-linux-musl-info.log * /var/log/portage/cross-powerpc-gentoo-linux-musl-gcc-stage2.log.xz * /var/tmp/portage/cross-powerpc-gentoo-linux-musl/gcc*/temp/gcc-config.logs.tar.xz
Created attachment 796627 [details] cross-powerpc-gentoo-linux-musl-info.log
Created attachment 796630 [details] cross-powerpc-gentoo-linux-musl-gcc-stage2.log.xz
Created attachment 796633 [details] gcc-config.logs.tar.xz
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=813a826d5f8e0a70a2260e1e8c0d90051f4c68ba commit 813a826d5f8e0a70a2260e1e8c0d90051f4c68ba Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:41:48 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:45:31 +0000 sys-devel/gcc: update musl patchset for 12.x Fixes cross-compilation on ppc/x86 and other special arches wrt ssp for musl. Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-12.2.1_p20230128.ebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f1abe7d5dbaf6c9a34e34683b18bb1dd9b2a88a commit 5f1abe7d5dbaf6c9a34e34683b18bb1dd9b2a88a Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:45:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:45:31 +0000 sys-devel/gcc: update musl patchset for 11.x Fixes cross-compilation on ppc/x86 and other special arches wrt ssp for musl. Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-11.3.1_p20230127.ebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec05593c803806726bf17fe2ef956680def9467f commit ec05593c803806726bf17fe2ef956680def9467f Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:41:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:42:13 +0000 sys-libs/musl: always install libssp_nonshared.a Needed to avoid SSP hacks for cross (if we don't install it, we have to deal with conditionally patching GCC). Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/musl/musl-1.2.3-r6.ebuild | 200 +++++++++++++++++++++++++++++++++++++ sys-libs/musl/musl-9999.ebuild | 8 +- 2 files changed, 207 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d99f21cee7972b01613d1155a16506297bfb3ac1 commit d99f21cee7972b01613d1155a16506297bfb3ac1 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:48:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:50:26 +0000 13.1.0: shift libssp patch out of nocross Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> 13.1.0/musl/{nocross => }/50_all_libssp_unconditionally.patch | 0 1 file changed, 0 insertions(+), 0 deletions(-) https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6cbc18ad615fd39e765d114db4ed13d801e79f14 commit 6cbc18ad615fd39e765d114db4ed13d801e79f14 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:22:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:50:26 +0000 12.2.0: shift libssp patch out of nocross Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> 12.2.0/musl/50_all_libssp_unconditionally.patch | 24 ++++++++++++++++++++++++ 12.2.0/musl/README.history | 3 +++ 2 files changed, 27 insertions(+) https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=718e1cf42e569af6ce3106f51bf17bbc558a949d commit 718e1cf42e569af6ce3106f51bf17bbc558a949d Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:47:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:50:26 +0000 11.4.0: shift libssp patch out of nocross Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> 11.4.0/musl/{nocross => }/50_all_libssp_unconditionally.patch | 0 1 file changed, 0 insertions(+), 0 deletions(-) https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f2c837d323196e2f9f05a8d225f4ed8543e02010 commit f2c837d323196e2f9f05a8d225f4ed8543e02010 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:47:51 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:50:26 +0000 10.5.0: shift libssp patch out of nocross Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> 10.5.0/musl/{nocross => }/50_all_libssp_unconditionally.patch | 0 1 file changed, 0 insertions(+), 0 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d39384a1e63934c262edf027422121f7fa3e9e69 commit d39384a1e63934c262edf027422121f7fa3e9e69 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 08:49:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 08:50:30 +0000 sys-devel/gcc: update musl patchset for 10.x Fixes cross-compilation on ppc/x86 and other special arches wrt ssp for musl. Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-10.4.1_p20230119-r1.ebuild | 2 +- sys-devel/gcc/gcc-10.4.1_p20230126.ebuild | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-)
It'll need a fresh bootstrap (crossdev -C the ppc tuples first that failed to build) but it should work now, thanks!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b722939b4023e6de68bc03ddc36c20d0d8d8e39f commit b722939b4023e6de68bc03ddc36c20d0d8d8e39f Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 10:43:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 10:44:53 +0000 sys-devel/gcc: update musl patchset for others too (not just latest of each) Easier if we do it for all, given not all kw'd. Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 4 ---- sys-devel/gcc/gcc-10.4.1_p20221208.ebuild | 2 +- sys-devel/gcc/gcc-11.3.1_p20221209.ebuild | 2 +- sys-devel/gcc/gcc-11.3.1_p20230120-r1.ebuild | 2 +- sys-devel/gcc/gcc-12.2.0.ebuild | 4 ++-- sys-devel/gcc/gcc-12.2.1_p20221126.ebuild | 2 +- sys-devel/gcc/gcc-12.2.1_p20230121-r1.ebuild | 2 +- 7 files changed, 7 insertions(+), 11 deletions(-)