Created attachment 531188 [details] Build log If I add -fPIC to my CFLAGS then it works. Note this system is using the 17.0 arm profile that isn't quite official yet. I'm working on that!
Created attachment 531190 [details] emerge --info
Does it work without -O3 -flto?
Oh, I didn't realize lto is enabled by xfs itself. This should workaround toolchain deficiency: --- a/sys-fs/xfsprogs/xfsprogs-4.16.1.ebuild +++ b/sys-fs/xfsprogs/xfsprogs-4.16.1.ebuild @@ -69,2 +69,3 @@ src_configure() { local myconf=( + --disable-lto --with-crond-dir="${EPREFIX}/etc/cron.d"
That does indeed fix it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=481666afdbd5e0e124be2da9d409107ac9c020e1 commit 481666afdbd5e0e124be2da9d409107ac9c020e1 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-05-14 08:20:44 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-05-14 08:23:27 +0000 sys-fs/xfsprogs: Disable lto because it breaks on some arches. Closes: https://bugs.gentoo.org/655638 Package-Manager: Portage-2.3.36, Repoman-2.3.9 sys-fs/xfsprogs/xfsprogs-4.16.1.ebuild | 1 + 1 file changed, 1 insertion(+)
Filed https://gcc.gnu.org/PR85801 to find out if it's a gcc bug or xfsprogs bug. Will try to submit fix/workaround upstream.