anyc / steam-overlay

Gentoo overlay for Valve's Steam client and Steam-based games
GNU General Public License v2.0
202 stars 44 forks source link

LLVM 16 breaks some Valve games #331

Closed implr closed 1 year ago

implr commented 1 year ago

When mesa is built with llvm:16, steamtours will crash with a double free:

src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x5595f6477570

At first I attempted patching the mesa ebuild to just set LLVM_MAX_SLOT=15, but that didn't seem to work - libvulkan_radeon.so was still linked against libllvm-16. Removing llvm:16, masking it and doing a world rebuild fixed it. Found in https://github.com/ValveSoftware/SteamVR-for-Linux/issues/578#issuecomment-1519057334

chewi commented 1 year ago

I don't use VR so I haven't hit this myself. I feel like setting LLVM_MAX_SLOT should have worked. Another way around it if you use AMDGPU is to disable the llvm_targets_AMDGPU flag against llvm:16 while keeping it against llvm:15. I don't know what we can do about the issue in this overlay though. It doesn't even reference LLVM at all.