llvm::createInternalizePass removed in upstream llvm 17
llvm commit : 15977742d3ebba05a33a8eac3201ebba9c9f10e3 https://github.com/llvm/llvm-project/tree/15977742d3ebba05a33a8eac3201ebba9c9f10e3
mesa commit : 11bc2bde
function llvm::createInternalizePass
as been removed by upstream llvm by commit : 15977742d3ebba05a33a8eac3201ebba9c9f10e3 https://github.com/llvm/llvm-project/tree/15977742d3ebba05a33a8eac3201ebba9c9f10e3
Mesa still use this function in src/gallium/frontends/clover/llvm/invocation.cpp https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/frontends/clover/llvm/invocation.cpp#L461
The problem is that we cannot build mesa with gallium-opencl=icd anymore since this llvm commit.
The only way to make gallium-opencl build again is to revert that llvm commit
A problem like that have been montionned in this mesa issue : #8297 (closed) #8297 (comment 1793838)