Skip to content
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

llvm 3.4 can't build shared libraries on Darwin due to rpath difficulties #26

Open
tel opened this issue Jan 26, 2015 · 0 comments
Open

Comments

@tel
Copy link

tel commented Jan 26, 2015

This might be better linked into NixOS/nixpkgs, but I'm currently testing it on this branch.

Right now, llvmGeneral requires shared libraries (I believe because it uses Template Haskell, which in turn requires GHCi, which in turn requires shared linking) but llvm itself is flagged to build on Darwin without shared libs. The relevant file is here.

If I adjust the flags to try building shared libs for Darwin it results in an LLVM compilation error. I have a log linked here. The short of it is the following however:

dyld: Library not loaded: libLLVMTableGen.dylib
  Referenced from: /private/var/folders/lj/655x29_s66718hvw6bdcvy1w0000gn/T/nix-build-llvm-3.4.2.drv-0/llvm/build/include/llvm/IR/../../../bin/llvm-tblgen
  Reason: image not found

This appears to be an rpath error, LLVM can't find its own compiled shared libraries in the nix tree.

Is there a fix for this in nix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant