[Bug 1953040] [NEW] FTBFS on arm64 in Jammy - relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21

Christian Ehrhardt  1953040 at bugs.launchpad.net
Thu Dec 2 14:09:35 UTC 2021


Public bug reported:

FTBFS:
https://launchpad.net/ubuntu/+source/gpsd/3.22-4ubuntu1/+build/22469668

Debugging showed that this is due to -flto being the default now [1].

Sadly the build system isn't the most common one, so even specifying
-fno-lto in all flags AND exporting `export
DEB_BUILD_MAINT_OPTIONS=optimize=-lto` or all the other things I tried
do not work as the flags to not reach all places they are needed.

Hence, despite being in main I'll ahve to fix this via lto-disabled-list
package.

[1]: https://wiki.ubuntu.com/ToolChain/LTO

** Affects: gpsd
     Importance: Unknown
         Status: Unknown

** Affects: gpsd (Ubuntu)
     Importance: Undecided
     Assignee: Christian Ehrhardt  (paelzer)
         Status: Triaged

** Affects: lto-disabled-list (Ubuntu)
     Importance: Undecided
         Status: Fix Committed


** Tags: server-todo

** Also affects: lto-disabled-list (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: lto-disabled-list (Ubuntu)
       Status: New => Triaged

** Changed in: gpsd (Ubuntu)
       Status: New => Triaged

** Tags added: server-todo

** Changed in: gpsd (Ubuntu)
     Assignee: (unassigned) => Christian Ehrhardt  (paelzer)

** Summary changed:

- FTBFS in Jammy - relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21
+ FTBFS on arm64 in Jammy - relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lto-disabled-list in Ubuntu.
https://bugs.launchpad.net/bugs/1953040

Title:
  FTBFS on arm64 in Jammy - relocation truncated to fit:
  R_AARCH64_ADR_PREL_PG_HI21

Status in Gpsd:
  Unknown
Status in gpsd package in Ubuntu:
  Triaged
Status in lto-disabled-list package in Ubuntu:
  Fix Committed

Bug description:
  FTBFS:
  https://launchpad.net/ubuntu/+source/gpsd/3.22-4ubuntu1/+build/22469668

  Debugging showed that this is due to -flto being the default now [1].

  Sadly the build system isn't the most common one, so even specifying
  -fno-lto in all flags AND exporting `export
  DEB_BUILD_MAINT_OPTIONS=optimize=-lto` or all the other things I tried
  do not work as the flags to not reach all places they are needed.

  Hence, despite being in main I'll ahve to fix this via lto-disabled-
  list package.

  [1]: https://wiki.ubuntu.com/ToolChain/LTO

To manage notifications about this bug go to:
https://bugs.launchpad.net/gpsd/+bug/1953040/+subscriptions




More information about the foundations-bugs mailing list