-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot buildSVFModule after pulling latest commit (from 9658ef4 to the latest) #1250
Comments
Not quite sure this is an llvm error. Could you try to build svf using llvm-14? |
Thank you for the response! So I tried to build SVF scratch using the LLVM 14, but the issue still remains, as shown below. I don't think I am doing anything too crazy either, as I am simply creating a dynamic library of SVF following the method here: #1229 and then linking that library with my own LLVM pass in the
Thank you again for your time. |
Could you follow a step-by-step building of the dynamic lib and link to your sample project using the dynamic lib? |
I apologize, but could you tell me what you're asking here? I followed a step-by-step direction on building a dynamic library and then linked it successfully to compile my project pass to ensure everything compiled successfully without errors. This took a bit of process as I could not find explicit direction on building the dynamic library unless I missed it (that's how I found that pull request as I was searching for the solution myself). If I have to be more specific in terms of what I did: This is the
and then inside
Lastly, I had to make a minor change in the Edit: Just to add one last statement, I If I misunderstood your suggestion, please do let me know. |
Could you use build.sh and generate the lib by turning this on Line 228 in 3acbda7
provide a sample project (with your cpp file) using the generated svfllvm so file? |
Ah.... that's what you meant; thank you for your clarification; I think I understood it.
and after generating these
I put them into the
Now it works:
I appreciate your patience, I hope this issue can help anyone else that may wish to incorporate SVF into their own custom pass (in terms of how to compile dynamically and link it in the |
Hello, the problem is basically as the title states..
I used the commit 9658ef4 for a while and then decided to upgrade to the latest, but now it seems like this commit doesn't work with my simple code to build SVF module using
buildSVFModule
(understandably since it's been a while I suppose).I understand it is probably difficult to provide the exact solution, but what is the good place to start my debugging process to fix this? (or I guess I need to keep using the old commit...)
Here is the code:
The output looks like this:
And yes, bitcode file exists:
I really appreciate any help you can provide.
Kind regards.
The text was updated successfully, but these errors were encountered: