Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655638 - sys-fs/xfsprogs-4.16.1 - relocation R_ARM_REL32 against external or undefined symbol progname can not be used when making a PIE executable
Summary: sys-fs/xfsprogs-4.16.1 - relocation R_ARM_REL32 against external or undefined...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-13 10:30 UTC by James Le Cuirot
Modified: 2018-05-16 08:19 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,54.33 KB, text/plain)
2018-05-13 10:30 UTC, James Le Cuirot
Details
emerge --info (emerge-info.txt,7.22 KB, text/plain)
2018-05-13 10:31 UTC, James Le Cuirot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2018-05-13 10:30:48 UTC
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!
Comment 1 James Le Cuirot gentoo-dev 2018-05-13 10:31:06 UTC
Created attachment 531190 [details]
emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-13 17:46:31 UTC
Does it work without -O3 -flto?
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-13 18:00:07 UTC
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"
Comment 4 James Le Cuirot gentoo-dev 2018-05-14 08:13:54 UTC
That does indeed fix it.
Comment 5 Larry the Git Cow gentoo-dev 2018-05-14 08:23:35 UTC
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(+)
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-16 08:19:40 UTC
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.