Can't Create LLVM Samples | unknown component name: jit
I created LLVM and Clang according to the docs here .
The stages were
-
export SRC_DIR=/work/llvm
-
export BUILD_DIR=/work/make_llvm
-
cd $BUILD_DIR
-
$SRC_DIR/configure --prefix=/work/my_llvm
-
make -j 4
-
make install
Mine PATH
has the /work/my_llvm/bin
front.
Then I cd $BUILD_DIR/examples
and enter make
which system responds to,
llvm-config: unknown component name: jit
make[1]: Entering directory `/work/make_llvm/examples/BrainF'
/work/llvm/Makefile.rules:1071: *** llvm-config --libs failed. Stop.
make[1]: Leaving directory `/work/make_llvm/examples/BrainF'
make: *** [BrainF/.makeall] Error 2
There seems to be no JIT support, or llvm-config
can't find it. But LLVM is compiled with JIT support enabled by default as per configure --help
, and I see at least one JIT-related library named libLLVMMCJIT.a
in /work/my_llvm/lib
.
How do I create LLVM examples?
source to share
The legacy JIT component was removed from LLVM upstream this week (and all usage switched to MCJIT). I remember seeing reports of problems with examples on the mailing list, but they were fixed. Is this a newer LLVM checker or older? If this is a new registration, you should post a note to llvmdev @ or open a bug about it, because it means that this example is left behind.
source to share