-
Notifications
You must be signed in to change notification settings - Fork 288
Error when using option "-emit-llvm" #579
Comments
@jeffreyssmith2nd |
I haven't tried yet to use the emit-llvm option, however you can get CMake to automatically generate the compilation database. See here for more context
|
Update: I tried with -emit-llvm and I got past the request for compilation database. It now fails with the following error:
|
I tried to set the FrontendOption of the CompilerInstance with the value of "ProgramAction == EmitLLVM", but got a Segmentation fault (core dumped). It seems that eosio-cpp doesn't store the LLVM IR in VM's memory. Following is the code I modified in ~\eosio.cdt\tools\include\eosio\codegen.hpp And the error information when compiling a contract. |
@mtabz Following is the description of a "fixed" compilation database in the blog.
So I added two options "-emit-llvm" and "-c" between "eosio-cpp" and "--". However, I still got an error during linking process. I searched for this error but it seems no one has ever encountered this problem. And here is the error infomation.
|
Hi,
I was trying to get LLVM IR for optimization and analysis when using the option "-emit-llvm" with the tool "eosio-cpp" to compile the source code. But I met an error during the LLVM code generation. Does anyone know how to correctly use the "-emit-llvm" option?
Thanks!
Following is the error information:
The text was updated successfully, but these errors were encountered: