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 Install fails when building with DESTDIR= #23462

Closed
samoconnor opened this issue Aug 26, 2017 · 2 comments
Closed

LLVM Install fails when building with DESTDIR= #23462

samoconnor opened this issue Aug 26, 2017 · 2 comments
Labels
build Build system, or building Julia or its dependencies external dependencies Involves LLVM, OpenBLAS, or other linked libraries

Comments

@samoconnor
Copy link
Contributor

samoconnor commented Aug 26, 2017

I have a Dockerfile that sets DESTDIR=/var/task to build Julia v0.6.0 for AWS Lambda.

It seems that when cmake installs llvm into a staging area, it prefixes the install path with DESTDIR even though CMAKE_INSTALL_PREFIX is a fully qualified path. The result is that llvm ends up in a different directory to the one that the staging .tgz creation rule expects.

e.g. llvm-config is staged to:

/var/task/var/src/julia/usr-staging/llvm-3.9.1/build_Release/var/src/julia/usr/tools/llvm-config

It should be:

/var/src/julia/usr-staging/llvm-3.9.1/build_Release/var/src/julia/usr/tools/llvm-config

I've worked around the problem with this patch to set DESTDIR="" when running cmake_install.cmake.

@ararslan ararslan added build Build system, or building Julia or its dependencies external dependencies Involves LLVM, OpenBLAS, or other linked libraries labels Aug 26, 2017
@o01eg
Copy link

o01eg commented Feb 9, 2019

It causes error on gentoo https://bugs.gentoo.org/675326

@vtjnash
Copy link
Sponsor Member

vtjnash commented Jan 13, 2020

Apparently patched downstream only now?? If only Julia was an open-source project that could somehow accept patches....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system, or building Julia or its dependencies external dependencies Involves LLVM, OpenBLAS, or other linked libraries
Projects
None yet
Development

No branches or pull requests

5 participants