[RFC] Upgrading LLVM's minimum required CMake version

These files seem to be generated by CMake itself, so I don’t think we need to do anything for them.

The minimum CMake version now is 3.20.0. It has taken some time due to getting all build bots updated and fixing issues caused by CMake 3.20.0. I haven’t heard about new issues due to this change. So I will work on patches that remove work-arounds for CMake versions before 3.20.0.

3 Likes

FWIW, we had to upgrade some llvm-libc build bots that were running old versions of debian (debian-10 buster) due to outdated cmake versions (3.13.4).

For future travelers, we had to upgrade the bots to debian-11 bullseye (cmake 3.18.4) then debian-12 bookworm (cmake 3.25.1).

I needed these commands to add the public keys (apt-key)

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

via: The following signatures couldn't be verified because the public key is not available - Raspberry Pi Forums

Then used the following entries in /etc/apt/sources.list.

Debian 11 bullseye:

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

Debian 12 bookworm:

deb http://deb.debian.org/debian bookworm main
deb-src http://deb.debian.org/debian bookworm main
deb http://deb.debian.org/debian bookworm-updates main
deb-src http://deb.debian.org/debian bookworm-updates main
deb http://security.debian.org/debian-security/ bookworm-security main
deb-src http://security.debian.org/debian-security/ bookworm-security main

That’s surprising. There should have been an updated debian-archive-keyring package in the archive for you to upgrade to.

I’ll also note that apt-key is deprecated and should be avoided. These days one should just place keys in /etc/apt/trusted.gpg.d/.