LLVM 21.1.8
The initial goal was to fix some build errors we sometimes see on test nodes:
In file included from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGenTypes/LowLevelType.h:30,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGen/MachineMemOperand.h:22,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGen/MachineInstr.h:24,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGen/MachineBasicBlock.h:21,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGen/MachineFunction.h:26,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGen/MachinePassManager.h:26,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/Passes/PassBuilder.h:19,
from /srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/examples/Bye/Bye.cpp:4:
/srv/slapgrid/slappart28/srv/shared/llvm/b04d6790ba059caa99e921c604aa6b8f/.build/llvm-20.1.7.src/include/llvm/CodeGenTypes/MachineValueType.h:45:10: fatal error: llvm/CodeGen/GenVT.inc: No such file or directory
45 | #include "llvm/CodeGen/GenVT.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [examples/Bye/CMakeFiles/Bye.dir/build.make:79: examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o] Error 1
For this, we update to a more recent version (not yet the latest as the structure of distributions is different - so we'll do this later) and do not build examples.
It was also observed that this llvm was build with many cross-compilation targets, which we do not use in SlapOS context.
Edited by Jérome Perrin