-
Notifications
You must be signed in to change notification settings - Fork 20
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
Problems running examples in NixOS #13
Comments
@hhefesto Did you ever resolve the issue with the JIT not resolving symbols on nixos in the llvm-hs JIT example? I have an old llvm project that I recently moved onto my relatively new nixos box and I've been trying to bring the code up to llvm 9. In the process, I referenced the llvm-hs example for JIT, but as you point out I get the same effect when trying to resolve an external symbol (in fact, the entry point): JITSymbolError "" I was pulling my hair out thinking that I'd missed some small detail, until I saw your issue report here. I would be very grateful if you have the solution to getting this example running and/or an explanation of why it wasn't working on nix(os)! As I'm on nixos, I did add a nix: packages: stanza to my stack.yaml, but only for [ llvm_9 ]. That is clearly sufficient to get the project building OK, but evidently not resolving symbols, per the code in the example anyway. Thanks. |
Sadly, still unable to run the examples. I did try to get help on stackoverflow (https://stackoverflow.com/questions/65671417/trouble-running-orc-jit-llvm-hs-examples) and detailed there my approaches a bit more. If you get the examples running, I would also be very grateful to see your solution. |
OK, thanks Daniel. I'll continue experimenting as time permits. Not sure if there's any helpful diagnostics that can help me direct efforts, so probably a bit of a random walk. Anyway, I'll report here if I make any progress. |
First of all: greetings, and thank you for such magnifical software.
I am having trouble running some of the examples. I am currently using NixOS (channel release 20.3 stable).
I can run the first example without a problem (i.e.
cabal run basic
) but not the rest.To reproduce this problem one should use the
shell.nix
from thellvm-hs
repo (llvm-9
branch) and run:Some maybe usefull extra information is that I'm using the
master
branch from this repo (llvm-hs-examples).Cheers,
Daniel Herrera
The text was updated successfully, but these errors were encountered: