Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925111 - app-containers/podman-4.9.3 fails to build on ppc64: /usr/lib/go/pkg/tool/linux_ppc64/link: external linking not supported for linux/ppc64
Summary: app-containers/podman-4.9.3 fails to build on ppc64: /usr/lib/go/pkg/tool/li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Zac Medico
URL: https://github.com/golang/go/issues/8912
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 914624
  Show dependency tree
 
Reported: 2024-02-20 22:37 UTC by matoro
Modified: 2024-06-26 05:25 UTC (History)
5 users (show)

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


Attachments
build.log and emerge --info (build.log.gz,410.86 KB, application/gzip)
2024-02-20 22:39 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-02-20 22:37:56 UTC
https://github.com/golang/go/issues/8912

/usr/lib/go/pkg/tool/linux_ppc64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -X=runtime.godebugDefault=panicnil=1 -buildmode=exe -buildid=Cl8ZOdBFbbmsIf-i-cA5/OB50AZBmRgKA13frQ9u2/AfmGELV9V-MU5YHKICVo/Cl8ZOdBFbbmsIf-i-cA5 -X github.com/containers/podman/v4/libpod/define.buildInfo=1708466759 -X github.com/containers/podman/v4/libpod/config._installPrefix=/usr -X github.com/containers/podman/v4/libpod/config._etcDir=/etc -X github.com/containers/podman/v4/pkg/systemd/quadlet._binDir=/usr/bin -X github.com/containers/common/pkg/config.additionalHelperBinariesDir= -extld=powerpc64-unknown-linux-gnu-gcc $WORK/b001/_pkg_.a
# github.com/containers/podman/v4/cmd/podman
/usr/lib/go/pkg/tool/linux_ppc64/link: external linking not supported for linux/ppc64

Reproducible: Always
Comment 1 matoro archtester 2024-02-20 22:39:37 UTC
Created attachment 885554 [details]
build.log and emerge --info
Comment 2 matoro archtester 2024-02-21 01:05:55 UTC
Seems to affect big-endian only, so you can mask on BE.
Comment 3 Larry the Git Cow gentoo-dev 2024-03-23 08:29:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7797eab2a68ffc219de2f76dfb664d61182e83cb

commit 7797eab2a68ffc219de2f76dfb664d61182e83cb
Author:     Rahil Bhimjiani <me@rahil.rocks>
AuthorDate: 2024-03-20 13:25:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-23 08:29:01 +0000

    app-containers/podman: mask on ppc64 BE
    
    Upstream Issue: https://github.com/golang/go/issues/8912
    
    Closes: https://bugs.gentoo.org/925111
    Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/powerpc/ppc64/64ul/package.mask | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 4 Scott Howard 2024-03-26 01:40:10 UTC
This bug report says that podman fails to build on ppc64 big endian. But the commit added a package mask to 64ul directory, which is a parent of little endian as well. Is this an error?

mask commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7797eab2a6

ref: https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/arch/ppc64/little-endian/parent
Comment 5 Rahil Bhimjiani 2024-03-26 01:49:20 UTC
Thanks Scott for pointing this out. So maybe I should mask it in https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/features/big-endian/package.mask.

Btw what is the full form of 64ul ?
Comment 6 matoro archtester 2024-03-26 04:29:57 UTC
Unfortunately due to the profile structure you have to mask it in 64ul, and then unmask it in 64le.
Comment 7 Larry the Git Cow gentoo-dev 2024-03-27 03:02:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90efc92240abee01a7845943a9ab17b440c59d76

commit 90efc92240abee01a7845943a9ab17b440c59d76
Author:     Rahil Bhimjiani <me@rahil.rocks>
AuthorDate: 2024-03-26 12:55:52 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2024-03-27 03:02:02 +0000

    app-containers/podman: unmask in ppc64 LE
    
    Bug: https://bugs.gentoo.org/925111
    Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
    Closes: https://github.com/gentoo/gentoo/pull/35929
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 profiles/arch/powerpc/ppc64/64le/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 8 Scott Howard 2024-06-26 03:38:40 UTC
According to the discussion in March, this package builds on ppc64le, but not ppc64.

But it is masked again for both.

The commit that undid the careful masking is:
https://gitweb.gentoo.org/repo/gentoo.git/commit/profiles/arch/powerpc/ppc64/64le?id=dd7cb10ad6

A related bug ID for that commit is: https://bugs.gentoo.org/934215
Comment 9 matoro archtester 2024-06-26 05:22:35 UTC
That commit is definitely wrong.  It interfered with another bug I was working on as well.  Let me ask for it to be reverted.
Comment 10 Larry the Git Cow gentoo-dev 2024-06-26 05:25:51 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5429444982127a776b997c0d35c9e828143a63fb

commit 5429444982127a776b997c0d35c9e828143a63fb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-26 05:24:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-26 05:25:40 +0000

    Revert "profiles: powerpc/ppc64/64le: Cleanup UnmatchedProfilePackageUnmask"
    
    This reverts commit dd7cb10ad6297c4a26d5e229cdde8c842ea2b552.
    
    See also a49990c1a1781052620a5b53581e80ae288e290a.
    
    Bug: https://bugs.gentoo.org/918647
    Bug: https://bugs.gentoo.org/925111
    Bug: https://github.com/pkgcore/pkgcheck/issues/685
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/powerpc/ppc64/64le/package.mask | 9 +++++++++
 1 file changed, 9 insertions(+)