Skip to content

Conversation

@rootlis
Copy link
Contributor

@rootlis rootlis commented Aug 9, 2025

A change in GCC 15 broke LLVM builds up to version 19 (see llvm/llvm-project#101761). These patches have been applied upstream and backported in most cases, but not as far as LLVM 14.

I've copied these patches in from Gentoo's llvm-gentoo-patchset-15.0.7-r7, but they apply the same to LLVM 14. Only patches 0022, 0023, and 0024 are needed for this PKGBUILD, but for completeness I've included 0025 as well.

@john-tornblom
Copy link
Contributor

The reason I'm staying at llvm-14 is because it is a dependency to mesa 22.1.7. In later versions of mesa, they started to use assembly to do thread local storage the proper way, which the ps5 payload sdk does not support (it relies on TLS emulation with pthread). If you know how to implement proper TLS in the sdk, please let me know and we can bump the version of mesa (and thus llvm) to a more recent version.

@rootlis
Copy link
Contributor Author

rootlis commented Aug 17, 2025

Okay, that's good to know. I'd been wondering about that. Just to be sure I understand, this PR is meant to keep LLVM 14 working in a build environment that uses GCC 15; but your sense is that rather than futzing with an old LLVM version, that effort would be better spent getting ELF TLS implemented. If that's correct, I'll go ahead and close this PR.

@john-tornblom
Copy link
Contributor

It’s okey, keep this PR open and I’ll address it when I get time

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.

2 participants