Up through gcc-5.4.0 works fine, crossdev builds a complete armv7a toolchain. Trying crossdev "latest" uses gcc-6.3.0 and fails on the full glibc build with IFUNC error: pt-vfork.c:41:3: error: #error "must write pt-vfork for this machine or get IFUNC support" There is another bug with the same error, however, the other bug applies to aarch64 native toolchain (not crossdev). Binutils-2.28 already contains the "fix" from the patch in the aarch64 bug.
> There is another bug with the same error, however, the other bug applies to aarch64 native toolchain (not crossdev). Binutils-2.28 already contains the "fix" from the patch in the aarch64 bug. It sounds like you have a good handle on this. Please assign this bug to the appropriate maintainer(s), and add the appropriate bug number reference to the See Also field.
This one fails: USE="hardened multitarget lzma multilib -openmp -go -fortran -jit" EXTRA_ECONF="--disable-libsanitizer --with-arch=armv7-a --with-tune=cortex-a9 --with-float-abi=hard --with-fpu=neon" crossdev -v -t armv7a-hardfloat-linux-gnueabi --ex-gdb --ov-output /usr/local/armv7-a -P -v If I add --g 5.4.0 it works as expected.
I've done some initial google-ing and all I know is I don't want to attempt option 1) on my own, and I have no idea what option 2) even means.
This seems identical to bug 622036, which mentions both native compile failures and cross compile failures.
Created attachment 478090 [details] glibc fail log with gcc-6
*** This bug has been marked as a duplicate of bug 622036 ***
Try adding this patch to your cross-binutils. https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=4b48e2f6a50e85e5acc316289c4a6af693ad98f0;hp=7dba9362c172f1073487536eb137feb2da30b0ff mkdir -p /etc/portage/patches/cross-armv7a-hardfloat-linux-gnueabi/binutils curl "https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=4b48e2f6a50e85e5acc316289c4a6af693ad98f0;hp=7dba9362c172f1073487536eb137feb2da30b0ff" > /etc/portage/patches/cross-armv7a-hardfloat-linux-gnueabi/binutils/622710.patch emerge --oneshot cross-armv7a-hardfloat-linux-gnueabi/binutils emerge --oneshot cross-armv7a-hardfloat-linux-gnueabi/glibc