llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.78k stars 11.9k forks source link

apt packages: cmake fails to find libLibcTableGenUtil.a #92359

Closed lerno closed 5 months ago

lerno commented 5 months ago

Using the latest build from http://apt.llvm.org/focal/ (1:19~++20240514053206+86f655cb4e2f-1~exp1~20240514173349.1024), compilation runs into the following error:

CMake Error at /usr/lib/llvm-19/lib/cmake/llvm/LLVMExports.cmake:1891 (message):
  The imported target "LibcTableGenUtil" references the file

     "/usr/lib/llvm-19/lib/libLibcTableGenUtil.a"
-- Configuring incomplete, errors occurred!

  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-19/lib/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/llvm-19/cmake/LLVMConfig.cmake:373 (include)
  CMakeLists.txt:123 (find_package)

Previous version (1:19~++20240421052952+48324f0f7b26-1~exp1~20240421173100.1000) worked fine.

anutosh491 commented 5 months ago

Thanks for reporting this. I ran into the same error some time back. Hopefully can be resolved soon.

sylvestre commented 5 months ago

should be fixed now (depending on the CDN caches)

anutosh491 commented 5 months ago

My commit trying the same still fails https://github.com/symengine/symengine/actions/runs/9127183905/job/25096950338?pr=2016 with the above error.

dtcxzyw commented 5 months ago

The following workaround works for me:

sudo touch /usr/lib/llvm-19/lib/libLibcTableGenUtil.a
sylvestre commented 5 months ago

fixed for real now

lerno commented 5 months ago

Can confirm it works.

sylvestre commented 5 months ago

thanks!

lerno commented 5 months ago

Thank you for fixing it!

anutosh491 commented 5 months ago

Yes. Thanks for fixing it :)

samvv commented 4 months ago

I'm still having this issue with a fresh install of Ubuntu 24.04 and llvm.sh 19. Can this be due to the caches?

samvv commented 4 months ago

Actually I'm getting other issues as well. This is probably another issue.

Zingam commented 3 months ago

I and experiencing the same as of today too.

sylvestre commented 3 months ago

please open a new bug with the detailed info

Zingam commented 3 months ago

sudo touch /usr/lib/llvm-19/lib/libLibcTableGenUtil.a

That doesn't work right now on WSL Ubuntu 24.04 and llvm.sh 19.

please open a new bug with the detailed info

@sylvestre I created a bug report https://github.com/llvm/llvm-project/issues/99819. I decided to try the "workaround" from above and I get now:

[cmake] CMake Error at /usr/lib/llvm-19/lib/cmake/clang/ClangTargets.cmake:844 (message): [cmake] The imported target "clangBasic" references the file [cmake] [cmake] "/usr/lib/llvm-19/lib/libclangBasic.a" [cmake] [cmake] but this file does not exist. Possible reasons include: [cmake] [cmake] The file was deleted, renamed, or moved to another location. [cmake] [cmake] An install or uninstall procedure did not complete successfully. [cmake] [cmake] * The installation package was faulty and contained [cmake] [cmake] "/usr/lib/llvm-19/lib/cmake/clang/ClangTargets.cmake"

Is it possible to workaround these? Or this needs to be fixed?

emmenlau commented 2 months ago

I am getting this issue on Ubuntu 24.04 (with latest updates from today) and llvm-19 version 19.1.0~++20240826073408+5f744ee5c770-1~exp1~20240826073423.27.

Zingam commented 1 month ago

I am getting this issue on Ubuntu 24.04 (with latest updates from today) and llvm-19 version 19.1.0~++20240826073408+5f744ee5c770-1~exp1~20240826073423.27.

The new bug report: https://github.com/llvm/llvm-project/issues/99819