Open jmmartinez opened 5 years ago
Hello @castigli ,
Thanks for showing interest in the project.
One way to proceed is to compile your own LLVM+Clang with assertions and debug info, instead of using the package that is distributed with your system. This should provide us a more accurate stacktrace when the fail happens. From there, it should be easier to find the root cause of the problem.
To do this, you have to clone llvm's repository, and build with the options CMAKE_RELEASE_TYPE=Debug LLVM_ENABLE_ASSERTIONS=ON .
Best,
Hi @jmmartinez, That is what I was thinking, thanks for the pointer, I'll report back if I succeed! Cheers,
Any progress on getting the library working on more recent LLVM versions? On LLVM-12-dev I get the message: Unknown CMake command "add_llvm_loadable_module".
Would be great to get the library working on a modern clang so we can use constexpr and other nice features of C++20 together with JITing.
Hi @cnergyone, unfortunately not much progress on my side as I am focusing on other projects. Regarding your error, that's a deprecated function, you should replace it with add_llvm_library(yourLib MODULE ...)
I've made some progress on moving to LLVM 14.0.6 (see https://github.com/jmmartinez/easy-just-in-time/issues/51). @cnergyone would love to collaborate on getting this library updated!
Hi @jmmartinez,
I think this is a cool project and I would be interested in trying it out.
As a first step I was trying to compile it with a recent LLVM. The bump to LLVM 7.0 is trivial and worked easily.
However, when I try more recent versions (8.0 and higher) I get a segfault on the front end. Any chance you could point me in the right direction to solve this issue?