New binutils causes build failures for many RISC-V packages

Bug #1959325 reported by Heinrich Schuchardt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
Critical
Unassigned
Jammy
Fix Released
Critical
Unassigned

Bug Description

binutils 2.37.90.20220126-0ubuntu1 changes the -march flags.
We see a lot of packages not building in proposed anymore: OpenSBI, ktexteditor, ...

Best regards

Heinrich

tags: added: fr-2006
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in binutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Rik Mills (rikmills) wrote :

Looks like this will cause most KDE things to FTBFS

Rik Mills (rikmills)
Changed in binutils (Ubuntu):
importance: Undecided → Critical
tags: added: rls-jj-incoming
tags: removed: rls-jj-incoming
Revision history for this message
Matthias Klose (doko) wrote :

adding exact references from IRC logs ... please provide these in the first place.

https://launchpadlibrarian.net/582482377/buildlog_ubuntu-jammy-riscv64.ktexteditor_5.90.0-0ubuntu2_BUILDING.txt.gz"

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Package gcc-riscv64-linux-gnu depends on gcc-10-riscv64-linux-gnu which is too old for the new binutils. GCC 10 gives an error:

cc1: error: ‘-march=rv64imac_zicsr_zifencei’: unsupported ISA subset ‘z

The cross compiler package needs a respin to match the new binutils.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

U-Boot, OpenSBI, Linux kernel require patches to build with the new binutils,e.g. https://lists.denx.de/pipermail/u-boot/2022-January/473499.html

Revision history for this message
Heinrich Schuchardt (xypron) wrote (last edit ):

As building GRUB fails on RISC-V too with the new binutils:
Patch created for GRUB and sent upstreams:
[PATCH] riscv: adjust -march flags for binutils 2.38
https://lists.gnu.org/archive/html/grub-devel/2022-01/msg00173.html

Revision history for this message
Matthias Klose (doko) wrote :

we will not change the ISA for the upcoming 22.04 LTS release, but do the change not before the GCC 12 defaults change planned for 22.10.

Changed in binutils (Ubuntu Jammy):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package binutils - 2.37.90.20220130-0ubuntu2

---------------
binutils (2.37.90.20220130-0ubuntu2) jammy; urgency=medium

  * Also ignore regressions for the cross packages.

 -- Matthias Klose <email address hidden> Sun, 30 Jan 2022 16:59:06 +0100

Changed in binutils (Ubuntu Jammy):
status: In Progress → Fix Released
Revision history for this message
Rik Mills (rikmills) wrote :

KDE (and other) things now seem to be building ok with the latest 2.37.90.20220130-0ubuntu2

Thank you doko (Matthias)

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I can also confirm that it is good not for libvirt again - Thanks for the quick fix!

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.