Open g40 opened 6 years ago
I also bumped into some of these linking errors on mac OS. In my case, the four missing references related to ncurses (*term) could be found after adding ncurses in utils/genJitGlobalMap/CMakeLists.txt:
target_link_libraries(
genJitGlobalMap
ncurses
${LLVM_LIBRARIES}
${LLVM_LDFLAGS}
)
Try adding pthread and whatelse you see from the outputllvm-config --system-libs
In my case, the compilation continues but then breaks when reaching lib/JIT.cpp:
JIT.cpp:196:3: error: use of undeclared identifier 'LLVMLinkInJIT'; did you mean 'LLVMLinkInMCJIT'?
JIT.cpp:238:3: error: use of undeclared identifier 'LLVMAddTargetData'
This seems because I tried compilation with too recent versions of LLVM (5.0 and 6.0). The function LLVMAddTargetData() was dropped with LLVM 3.9 and I have troubles installing an older version than 5 using homebrew on macOS. So far I end up with post-fixed llvm-*-3.7 commands which are ignored by cmake. Anyone knows how update AXE to make it compatible with never LLVM versions? @rlsosborne @arp2600
Hi, any thoughts welcomed here. Not sure if the cmakefile is missing some -l flags or what.
Downloaded a source tarball onto host machine:
The usual cmake dance:
then make ...