There is an updated pull request by oreo639 against master on the void-packages repository https://github.com/oreo639/void-packages gcc11 https://github.com/void-linux/void-packages/pull/34902 gcc: update to 12.2.0. [ci skip] Edit: this PR had been updated for gcc 12.2.0 This PR depends on: https://github.com/void-linux/void-packages/pull/32330 I tested this PR with glibc and after updating glibc, it seems to work fine. I also tested this PR with x86_64-musl, and it appears to run fine in a musl chroot, and recompiling and installing musl with gcc 12 doesn't appear to result in any issues. (more testing is needed) Please let me know if there are any issues. I compiled base-system and base-chroot on x86_64-glibc and x86_64-musl to ensure that compiles and it appears to work fine. I tested some of the cross compilers and after some debugging with the help of CameronNemo, we figured out the issue. The cross compilers are built with `nopie=yes` (specified in environment/build-style), which causes issues with glibc 2.35+ which uses PIE by default. gcc always builds itself as nopie. I added a workaround to common/build-style/void-cross but if you have any other recommendations on how to handle it, feel free to let me know. Also, keep in mind that the libgo musl patch here will need to be updated once musl is updated: https://github.com/void-linux/void-packages/pull/34902/files#diff-1f42a95b93c9550178ff1fbccbef2f47a72711df15c24c9472e2550076978129R163-R176 This is the updated patch for reference: https://github.com/alpinelinux/aports/blob/8acb21b8ee881e7ab1c812d9a66a17d2501b8730/main/gcc/0049-libgo-adjust-name-of-union-in-sigevent-struct.patch This PR also updates glibc to 2.36: https://sourceware.org/glibc/wiki/Release/2.36 Necessary to fix previously existing build failures (unrelated to this PR): - [ ] firefox-esr https://github.com/void-linux/void-packages/pull/38817 - [x] gupnp https://github.com/void-linux/void-packages/pull/38844 Known packages that need to be fixed/updated for glibc 2.36: - [x] samba https://github.com/void-linux/void-packages/pull/38700 - [x] qemu https://github.com/void-linux/void-packages/pull/38769 - [ ] llvm https://github.com/void-linux/void-packages/pull/38694 - [ ] m4 https://github.com/void-linux/void-packages/pull/33730 - [ ] btrfs-progs https://github.com/void-linux/void-packages/pull/38778 - [x] ntp https://github.com/void-linux/void-packages/pull/38772 - [x] libarchive https://github.com/void-linux/void-packages/pull/38773 - [x] boost https://github.com/void-linux/void-packages/pull/38784 - [x] chroot-grep https://github.com/void-linux/void-packages/pull/38785 - [ ] plymouth https://github.com/void-linux/void-packages/pull/38821 - [x] fuse https://github.com/void-linux/void-packages/pull/38827 - [x] libostree https://github.com/void-linux/void-packages/pull/38828 - [ ] libvirt https://github.com/void-linux/void-packages/pull/38842 - [ ] syslinux https://github.com/void-linux/void-packages/pull/38876 - [ ] efivar https://github.com/void-linux/void-packages/pull/38874 Known packages that needed to be fixed/updated for gcc12: - [ ] linux5.18 (in this PR) - [ ] openssh https://github.com/void-linux/void-packages/pull/38849 - [ ] xf86-video-vmware https://github.com/void-linux/void-packages/pull/38847 - [ ] doxygen https://github.com/void-linux/void-packages/pull/38846 - [ ] firefox-esr https://github.com/void-linux/void-packages/pull/38817 - [ ] libproxy https://github.com/void-linux/void-packages/pull/38818 - [ ] exempi https://github.com/void-linux/void-packages/pull/38820 - [ ] openjdk7-bootstrap https://github.com/void-linux/void-packages/pull/38822 - [ ] gpgme https://github.com/void-linux/void-packages/pull/38825 - [ ] libunique1 https://github.com/void-linux/void-packages/pull/38848 or https://github.com/void-linux/void-packages/pull/38873 - [ ] libwpd https://github.com/void-linux/void-packages/pull/38878 Needs to be fixed/updated for binutils: - [ ] grub https://github.com/void-linux/void-packages/pull/38875 - [ ] linux-tools https://github.com/void-linux/void-packages/pull/38877 [ISO packages](https://github.com/void-linux/void-mklive/blob/ee69596c585bee310267a437c3ce0fc3efbcaf72/build-x86-images.sh.in#L36-L66) verified: - [x] base system - [x] base chroot - [x] gnome - [x] xfce - [x] mate - [x] cinnamon - [x] enlightenment - [x] kde - [x] lxde - [x] lxqt You can test the ISOs here: https://drive.google.com/drive/folders/1ix92CYSLUP-KWjLxltdgG4e8Nu2JCY5n?usp=sharing #### Testing the changes - I tested the changes in this PR: **briefly** #### Local build testing - I built this PR locally for my native architecture, (x86_64-glibc) - I built this PR locally for these architectures (if supported. mark crossbuilds): - x86_64-musl A patch file from https://github.com/void-linux/void-packages/pull/34902.patch is attached