Failure to link a PIE binary on ppc64el (FTBFS)

Bug #1973107 reported by Sergio Durigan Junior
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Go
Fix Released
Unknown
golang-1.18 (Ubuntu)
Fix Released
Critical
Sergio Durigan Junior
Jammy
Confirmed
Low
Unassigned
Kinetic
Fix Released
Critical
Sergio Durigan Junior

Bug Description

golang-1.18 fails to link a PIE binary on ppc64el, which is causing FTBFSes in other packages (telegraf, in my case), including an FTBFS while building golang-1.18 itself on that architecture.

There's an upstream bug & fix available, and I intend to work on backporting them. I'll probably need to do a two-stage upload in order to be able to fully build the fixed golang compiler on ppc64el, though.

Related branches

Changed in golang-1.18 (Ubuntu Jammy):
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Sergio Durigan Junior (sergiodj)
Changed in golang:
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package golang-1.18 - 1.18.1-1ubuntu2

---------------
golang-1.18 (1.18.1-1ubuntu2) kinetic; urgency=medium

  [ Sergio Durigan Junior ]
  * d/p/lp1973107-cmd-link-use-TOC-relative-trampolines-on-PPC64-when-.patch:
    Use TOC-relative trampolines on ppc64el when needed. Fix link
    error when building PIE binaries. (LP: #1973107)
  * d/rules: Remove link_test.go when running tests on ppc64el. This
    is a temporary change that will be reverted in the next upload.

  [ William 'jawn-smith' Wilson ]
  * d/rules: Add NO_PNG_PKG_MANGLE to prevent a test file from being
    compressed. (LP: #1972735)

 -- Sergio Durigan Junior <email address hidden> Thu, 12 May 2022 16:20:11 -0400

Changed in golang-1.18 (Ubuntu Kinetic):
status: Confirmed → Fix Released
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I had to revert the patch in Kinetic because it was causing golang-1.18.2 to fail to compile itself on ppc64el. After some more investigation and help from upstream, I finally have the couple of patches needed to be backported in order to fix this bug fully.

That's why I'm setting this bug as In Progress again.

Changed in golang-1.18 (Ubuntu Kinetic):
status: Fix Released → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package golang-1.18 - 1.18.2-2ubuntu2

---------------
golang-1.18 (1.18.2-2ubuntu2) kinetic; urgency=medium

  * d/p/lp1973107-ppc64le-ftbfs-pie-mode-0{1,2}.patch: Fix FTBFS on
    ppc64el when compiling with PIE mode enabled. (LP: #1973107)

 -- Sergio Durigan Junior <email address hidden> Fri, 27 May 2022 15:46:26 -0400

Changed in golang-1.18 (Ubuntu Kinetic):
status: In Progress → Fix Released
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I did a test rebuild on Jammy, and the current golang-1.18 can build itself on ppc64el just fine:

https://launchpad.net/~sergiodj/+archive/ubuntu/golang-rebuild/+packages

Therefore, I'm:

- Lowering this bug's priority to "Low" on Jammy;

- Removing the server-todo tag;

- Unassigning this bug to myself, as I have other, more urgent things on my plate.

If someone feels like tackling this and backporting the fix to Jammy, feel free to ping if you need a sponsorship.

Changed in golang-1.18 (Ubuntu Jammy):
importance: Critical → Low
assignee: Sergio Durigan Junior (sergiodj) → nobody
tags: removed: server-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.