I cloned Halide from release/10.x
, and compiled against the LLVM 10.0.0 binaries obtained here. On Ubuntu 20.04 LTS, I had to also apt install libtinfo5
because these binaries are built against old system libraries.
I noticed that the official binaries are not built with RTTI enabled (ugh) and was able to repro and fix. There’s a bug in dependencies/llvm/CMakeLists.txt
. Find the line that reads:
$<$<COMPILE_LANG_AND_ID:CXX,GCC,Clang,AppleClang>:-fno-rtti>)
and change GCC
to GNU
. We don’t test with non-RTTI LLVM, which is why this wasn’t caught.
CLICK HERE to find out more related problems solutions.