Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830203

Summary: Impossible to build cross toolchain for ppc musl
Product: Gentoo Linux Reporter: 2b57
Component: Current packagesAssignee: Cross compilation support <cross>
Status: UNCONFIRMED ---    
Severity: major CC: musl, toolchain
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 3rd step GCC build.log
cross emerge --info
host's emerge --info

Description 2b57 2021-12-29 04:49:54 UTC
I'm trying to build stable crosstoolchain for powerpc-gentoo-linux-musl, using latest unstable crossdev (20211121). As per conversation on IRC #gentoo-releng, few workarounds have been applied but no luck so far. 

Since even basic crossdev -S fails with libatomics and ssp errors, it's emerged like so:

USE="-fortran -ssp" EXTRA_ECONF="--disable-libatomic --disable-decimal-float gcc_cv_target_ldbl128=no" crossdev --stable --target powerpc-gentoo-linux-musl

However, it needs to be rebuilt twice, and these further rebuilds are impossible.

Reproducible: Always

Steps to Reproduce:
1. USE="-fortran -ssp" EXTRA_ECONF="--disable-libatomic --disable-decimal-float gcc_cv_target_ldbl128=no" crossdev --stable --target powerpc-gentoo-linux-musl
2. EXTRA_ECONF="--disable-decimal-float --without-long-double-128  libgcc_cv_dfp=no" emerge -v1 cross-powerpc-gentoo-linux-musl/gcc 
3. EXTRA_ECONF="--without-long-double-128 --disable-decimal-float gcc_cv_target_ldbl128=no  libgcc_cv_dfp=no" powerpc-gentoo-linux-musl-emerge gcc -v1
Actual Results:  
Logs are attached
Comment 1 2b57 2021-12-29 04:51:22 UTC
Created attachment 760697 [details]
3rd step GCC build.log
Comment 2 2b57 2021-12-29 04:53:12 UTC
Created attachment 760698 [details]
cross emerge --info
Comment 3 2b57 2021-12-29 04:56:07 UTC
Created attachment 760699 [details]
host's emerge --info