llvm: Apply GCC 15-related cstdint fixes#4
llvm: Apply GCC 15-related cstdint fixes#4john-tornblom merged 1 commit intops5-payload-dev:mainfrom
Conversation
|
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. |
|
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. |
|
It’s okey, keep this PR open and I’ll address it when I get time |
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.