Skip to content

compiler-rt doesn't build with cmake #34867

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

Closed
MagaTailor opened this issue Jul 16, 2016 · 4 comments
Closed

compiler-rt doesn't build with cmake #34867

MagaTailor opened this issue Jul 16, 2016 · 4 comments

Comments

@MagaTailor
Copy link

Trying to use system LLVM 3.8 located in /usr fails:

CMake Error at CMakeLists.txt:113 (include):
  include could not find load file:

    /usr/lib/llvm-3.8/build/share/llvm/cmake/LLVMConfig.cmake
CMake Error at cmake/Modules/AddCompilerRT.cmake:1 (include):
  include could not find load file:

    AddLLVM
Call Stack (most recent call first):
  lib/CMakeLists.txt:4 (include)

because it's located in /usr/share/llvm-3.8/cmake/LLVMConfig.cmake

This particular aarch64 Ubuntu 16.04 image used to work fine 3 weeks ago but, IIRC, cmake wasn't used at the time.

@sanxiyn
Copy link
Member

sanxiyn commented Jul 17, 2016

Yes, this is unfortunate. Copying or symbolic linking cmake directory works. See src/etc/Dockerfile for an example.

@MagaTailor
Copy link
Author

I'd tried symlinking but it didn't work either:

CMake Error at /usr/lib/llvm-3.8/build/share/llvm/cmake/LLVMExports.cmake:1034 (message):
  The imported target "LLVMSupport" references the file

     "/usr/lib/llvm-3.8/build/lib/libLLVMSupport.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/llvm-3.8/build/share/llvm/cmake/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/llvm-3.8/build/share/llvm/cmake/LLVMConfig.cmake:178 (include)
  CMakeLists.txt:113 (include)

The file is found in /usr/lib/llvm-3.8/lib/ or /usr/lib/llvm-3.8/build/Release/lib so after adding two more symlinks to bin and lib in build, I got this:

CMake Error at /usr/lib/llvm-3.8/build/share/llvm/cmake/LLVMExports.cmake:1034 (message):
  The imported target "PollyISL" references the file

     "/usr/lib/llvm-3.8/build/lib/libPollyISL.a"

This library doesn't exist period.

@MagaTailor
Copy link
Author

#34873

@japaric
Copy link
Member

japaric commented Aug 6, 2016

@petevine #34873 landed. Can this be closed?

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

3 participants