oss-fuzz icon indicating copy to clipboard operation
oss-fuzz copied to clipboard

`RUSTUP_TOOLCHAIN` in `base-builder-rust:ubuntu-24-04` is older than in `base-builder-rust`

Open evverx opened this issue 2 months ago • 1 comments

The ubuntu-24-04 images are currently based on the images where RUSTUP_TOOLCHAIN hasn't been bumped by analogy with 625f70d4dee84ca995bb44e6f64cf2ac49448424 yet. Because of that attempts to switch to the new images can cause build failures/coverage mismatches.

$ podman run gcr.io/oss-fuzz-base/base-builder-rust:ubuntu-24-04 bash -xc 'rustc --version; clang --version'
+ rustc --version
rustc 1.81.0-nightly (5315cbe15 2024-07-11)
+ clang --version
clang version 22.0.0git (https://github.com/llvm/llvm-project.git cb2f0d0a5f14c183e7182aba0f0e54a518de9e3f)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
$ podman run gcr.io/oss-fuzz-base/base-builder-rust bash -xc 'rustc --version; clang --version'
+ rustc --version
rustc 1.91.0-nightly (af00ff2ce 2025-09-04)
+ clang --version
clang version 22.0.0git (https://github.com/llvm/llvm-project.git cb2f0d0a5f14c183e7182aba0f0e54a518de9e3f)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin

evverx avatar Nov 01 '25 14:11 evverx

https://github.com/google/oss-fuzz/pull/14245 fais because of that.

evverx avatar Nov 04 '25 15:11 evverx

We bumped the compiler in Ubuntu 20 but not 24?

jonathanmetzman avatar Dec 16 '25 02:12 jonathanmetzman

As far as I can remember LLVM was bumped everywhere but RUSTUP_TOOLCHAIN was delayed. It was also brought up in https://github.com/google/oss-fuzz/pull/13964#issuecomment-3327132890

evverx avatar Dec 16 '25 02:12 evverx