Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622710 - crossdev-built gcc-6 armv7a fails to build cross-glibc-2.24
Summary: crossdev-built gcc-6 armv7a fails to build cross-glibc-2.24
Status: RESOLVED DUPLICATE of bug 622036
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-25 19:01 UTC by Steve Arnold
Modified: 2017-06-26 17:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
glibc fail log with gcc-6 (file_622710.txt,8.36 KB, text/plain)
2017-06-26 16:56 UTC, Steve Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2017-06-25 19:01:41 UTC
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.
Comment 1 Mike Gilbert gentoo-dev 2017-06-25 19:06:04 UTC
> 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.
Comment 2 Steve Arnold archtester gentoo-dev 2017-06-25 19:41:18 UTC
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.
Comment 3 Steve Arnold archtester gentoo-dev 2017-06-25 19:47:26 UTC
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.
Comment 4 Mike Gilbert gentoo-dev 2017-06-25 20:32:46 UTC
This seems identical to bug 622036, which mentions both native compile failures and cross compile failures.
Comment 5 Steve Arnold archtester gentoo-dev 2017-06-26 16:56:58 UTC
Created attachment 478090 [details]
glibc fail log with gcc-6
Comment 6 Mike Gilbert gentoo-dev 2017-06-26 17:08:54 UTC

*** This bug has been marked as a duplicate of bug 622036 ***
Comment 7 Mike Gilbert gentoo-dev 2017-06-26 17:12:01 UTC
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