Skip to content

[WIP] gcc: update to 16.1.1+20260502. - #60505

Draft
oreo639 wants to merge 42 commits into
void-linux:masterfrom
oreo639:gcc16
Draft

oreo639 wants to merge 42 commits into
void-linux:masterfrom
oreo639:gcc16

Conversation

@oreo639

@oreo639 oreo639 commented May 11, 2026

Copy link
Copy Markdown
Member

Testing the changes

  • I tested the changes in this PR: briefly

[ci skip]

This restricts musl1.1 to specifically armv* architectures rather than all 32-bit architectures since armv* are the only ones officially supported.

I have removed the patches for --enable-autolink-libatomic as support for that was merged into gcc upstream.

I have also enabled libsanitizer for musl architectures.

TODO: libphobos currently fails to build on armv7l-musl and armv6l-musl, I did try reworking the time_t patch for the changes to libphobos but I haven't gotten it working atm. I have removed the patch for now. I can confirm the same issue happens on the latest release of ldc (2.42.x) as well. I have disabled gdc on those architectures temporarily until I have the time to fully debug it.

I also have yet to update the cross compilers (which I will do soon) or run a full test of the core packages as well as anything pulled in by the ISOs, which I will do when I have the time.

Note for merging: glibc and musl must be merged and built before everything else.

@github-actions

Copy link
Copy Markdown

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions Bot added the Stale label Aug 11, 2026
@dkwo

dkwo commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

To rebuild the base-system natively on aarch64-gnu:

  • *: switch to pkgconf as in [RFC] pkgconf #59980
  • dhcpcd: drop broken ntp from host, update to 10.5.2 dhcpcd: update to 10.5.2 #62110
  • f2fs-tools: patch 6617d15a660becc23825007ab3fc2d270b5b250f
  • gmp: patch 8e7bb4ae7a18b1405ea7f9cbcda450b7d920a901
  • libsasl: patches 6c5e359681cf341d190bb7677b6cd2ece570ba2c 79bce416883cab6dc45151575f2a66dc181c67e4 c3ccead6ee3773f624708ca22be41292cd5ce557
  • libxcrypt: update to 4.5.2 and patch 174c24d6e87aeae631bc0a7bb1ba983cf8def4de
  • m4: update to 1.4.21
  • mit-krb5: update to 1.22.2 and patch ad4dcf1856dadc4b352b5c8ff08e51c7290fb41f
  • openssh: CFLAGS+=" -Wno-error=discarded-qualifiers"
  • pam: update to 1.7.2 as in WIP: pam: update to 1.7.2. #60255
  • perl: CFLAGS+=" -Wno-error=implicit-function-declaration"
  • tar: patch from Arch Linux
  • texinfo: update to 7.3 texinfo: update to 7.3 #62208
  • xbps: build from master at commit=c5f41d5b8c1e5b0ed6a657595ec825555167e209
  • unzip, yasm, nvi: unmainteined, export CFLAGS="-std=gnu17 $CFLAGS"
  • ntp: broken, unmaintained.

Note to self: options ~offload,~flang in llvm22, used in mesa, rust-bindgen.

@github-actions github-actions Bot removed the Stale label Aug 14, 2026
@dkwo

dkwo commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@oreo639 What do you think about updating glibc to 2.44 (which has most of the patches here) as well as m4 to 1.4.21 in this PR? I guess everything else can be done separately.

@oreo639

oreo639 commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

What do you think about updating glibc to 2.44 (which has most of the patches here) as well as m4 to 1.4.21 in this PR? I guess everything else can be done separately.

Should be fine. I'll start working on this again later today or tomorrow i.g. (I'm not looking forward to trying to fix the libphobos musl time 32 issue :p)

Also, thanks for the aarch64 testing.

@sgn

sgn commented Aug 27, 2026

Copy link
Copy Markdown
Member

I will look into libgphobos. Or maybe disable d compiler for musl arm 32 bit

@sgn

sgn commented Aug 27, 2026

Copy link
Copy Markdown
Member

I think disable gdc for arm 32 bit is fine, since we don't really use gdc, it's only required for bootstrapping ldc.

@sgn

sgn commented Sep 6, 2026

Copy link
Copy Markdown
Member

@oreo639 Please check this patch for libphobos for arm https://termbin.com/cgzyw

@sgn

sgn commented Sep 12, 2026

Copy link
Copy Markdown
Member

I added change for gdc for arm in #62493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants