Upgrade Rust to 1.66.1

Bug #2005122 reported by Zixing Liu
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rustc (Ubuntu)
Fix Released
Zixing Liu

Bug Description

We need to upgrade Rust to 1.66.1 to receive new language features and also help the desktop team to track the newer version of Firefox.

Changed in rustc (Ubuntu):
assignee: nobody → Liu Shuyu (liushuyu-011)
Revision history for this message
Zixing Liu (liushuyu-011) wrote :

Preliminary packages are prepared at https://launchpad.net/~liushuyu-011/+archive/ubuntu/rust-updates/+packages.

This update also contains required additions for profiling/sampling/coverage support (see https://bugs.launchpad.net/ubuntu/+source/rustc/+bug/2002694)

Changed in rustc (Ubuntu):
status: New → In Progress
Revision history for this message
Simon Chopin (schopin) wrote :

I'd have expected the matching sources to be at https://git.launchpad.net/~canonical-foundations/ubuntu/+source/rustc/log/?h=merge-1.66 but the version there doesn't match the one in the PPA.

Please clarify the situation?

Revision history for this message
Zixing Liu (liushuyu-011) wrote :

There were some issues with how Launchpad PPA works. So I have prepared the new packages in https://launchpad.net/~liushuyu-011/+archive/ubuntu/rust-updates-1/+packages now.

Revision history for this message
Zixing Liu (liushuyu-011) wrote :
Revision history for this message
Simon Chopin (schopin) wrote :

Looks good, just 2 issues:

* Lintian complains about missing copyright info regarding some newly-vendored crates
* (small nitpick) in the changelog, the profiler item should be its own entry, as it's not related to the new upstream release :)

Revision history for this message
Simon Chopin (schopin) wrote :

Due to the feature freeze looming, I fixed the issues and uploaded directly.

Changed in rustc (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Zixing Liu (liushuyu-011) wrote (last edit ):


The backport status for Bionic (18.04), Focal (20.04), Jammy (22.04), and Kinetic (22.10):

Bionic: https://git.launchpad.net/~canonical-foundations/ubuntu/+source/rustc/log/?h=bionic-1.66
Focal: https://git.launchpad.net/~canonical-foundations/ubuntu/+source/rustc/log/?h=focal-1.66
Jammy: https://git.launchpad.net/~canonical-foundations/ubuntu/+source/rustc/log/?h=jammy-1.66
Kinetic: https://git.launchpad.net/~canonical-foundations/ubuntu/+source/rustc/log/?h=kinetic-1.66

Notable differences from the mainline edition (Lunar):

* [Kinetic and Bionic only] Bundled LLVM 15.0.7 C/C++ sources
* [Except Kinetic] Removed dh-cargo requirements
* [Bionic only] Disabled outline LSE assembly helper requirements on aarch64

Known Issues:

* LLVM version on JJ and KK currently contains a bug that affects ppc64el where LLVM will encounter an address boundary error (segmentation fault) during bytecode emission. Upgrading the system LLVM to 15.0.7 is pending.
* Due to aging GCC runtimes in 18.04, out-of-line LSE helpers are unsupported on aarch64, while Rust requires this target feature to be enabled. A patch has been added to address this situation. As a result, all the LSE intrinsic functions will be emitted inline instead—impact: slightly worse atomic operation performance and larger binary size.

PPA preparation:


* Note:
Focal was uploaded as EVR 1.66.1+dfsg0ubuntu1~llvm2-0ubuntu0.20.04 in the PPA.
Bionic was uploaded as EVR 1.66.1+dfsg0ubuntu1~llvm2-0ubuntu0.18.04.5 in the PPA.
... despite the EVR should be 1.66.1+dfsg0ubuntu1~llvm-0ubuntu0.20.04 and 1.66.1+dfsg0ubuntu1~llvm-0ubuntu0.18.04, respectively.

Revision history for this message
Zixing Liu (liushuyu-011) wrote :

An SRU request has been filed for LLVM 15 upgrade in KK and JJ:

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rustc - 1.67.1+dfsg0ubuntu1-0ubuntu2

rustc (1.67.1+dfsg0ubuntu1-0ubuntu2) lunar; urgency=medium

  * Fix an issue where rustc can not find the standard library
    - d/p/ubuntu-fix-sysroot-detection.patch: Fix sysroot detection
      logic so that rustc will find the correct library paths to
      search in.

rustc (1.67.1+dfsg0ubuntu1-0ubuntu1) lunar; urgency=medium

  * New upstream release 1.67.1 (LP: #2007642)
    - d/p/d-bootstrap-use-local-css.patch: Remove unnecessary hunks
    - d/p/ubuntu-disable-sse2-tests-on-i386.patch: Disable SSE2 tests
      on i386 builds
    - d/copyright: Update copyright information for new dependencies
      and also remove copyright data for deleted dependencies
    - d/patches: Refresh patches
    - d/control: Update vendored deps field
    - d/control: Refresh vendored dependencies list
    - d/source/lintian-overrides: add new test files to the list

rustc (1.66.1+dfsg0ubuntu1-0ubuntu1) lunar; urgency=medium

  * New upstream release 1.66.1 (LP: #2005122)
    - d/control: Switch to LLVM 15 for better optimizations
    - d/rules: Add workarounds for the new bootstrap tests
    - d/patches: Refresh patches to adapt to the new upstream changes
    - d/p/ubuntu-Revert-Use-constant-eval-to-do-strict-validity-check.patch:
      Dropped, no longer needed
    - d/copyright: refresh vendored crate license info
    - d/libstd-rust-1.66.lintian-overrides: update the override files
  * d/rules: Enable LLVM profiler support (LP: #2002694)

 -- Zixing Liu <email address hidden> Wed, 22 Feb 2023 21:38:58 -0700

Changed in rustc (Ubuntu):
status: Fix Committed → Fix Released
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.