mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
Everywhere: Require version >= 12 for GCC host compiler
So far we've gotten away with using GCC 11 for Lagom and to compile the toolchain, but via #15795 we discovered a compiler bug that has been fixed in the latest version but would error the build with CI's GCC 11. Time for an upgrade :^) We already use ubuntu-22.04 images in most places, so this is pretty straightforward. The only exception is Idan's self-hosted runner, which uses Ubuntu Focal. LibJS should build fine with GCC 11, still.
This commit is contained in:
parent
28bc3a76d9
commit
bc2ebcadc0
11 changed files with 40 additions and 44 deletions
|
@ -11,13 +11,10 @@ sudo apt install build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2
|
|||
```
|
||||
Optional: `fuse2fs` for [building images without root](https://github.com/SerenityOS/serenity/pull/11224).
|
||||
|
||||
#### GCC 11
|
||||
#### GCC 12
|
||||
|
||||
On Ubuntu gcc-11 is available in the repositories of 21.04 (Hirsuite) and later - add the `ubuntu-toolchain-r/test` PPA if you're running an older version:
|
||||
|
||||
```console
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
```
|
||||
On Ubuntu gcc-12 is available in the repositories of 22.04 (Jammy) and later.
|
||||
If you are running an older version, you will either need to upgrade, or find an alternative installation source.
|
||||
|
||||
Next, update your local package information from this repository:
|
||||
|
||||
|
@ -25,10 +22,10 @@ Next, update your local package information from this repository:
|
|||
sudo apt update
|
||||
```
|
||||
|
||||
Now on Ubuntu or Debian you can install gcc-11 with apt like this:
|
||||
Now on Ubuntu or Debian you can install gcc-12 with apt like this:
|
||||
|
||||
```console
|
||||
sudo apt install gcc-11 g++-11
|
||||
sudo apt install gcc-12 g++-12
|
||||
```
|
||||
|
||||
#### QEMU 6.2 or later
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue