LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LLVM-10.0.0 causing problems. (https://www.linuxquestions.org/questions/slackware-14/llvm-10-0-0-causing-problems-4175672190/)

jkh2cpu 03-29-2020 01:41 PM

LLVM-10.0.0 causing problems.
 
I went to update my git master build of darktable, and I got this during cmake-gui. I'd guess the problem has something to do with the new LLVM. I do have /usr/bin/lit-cpuid-32.


CMake Error at /usr/lib/cmake/llvm/LLVMExports.cmake:534 (message):
The imported target "lit-cpuid" references the file

"/usr/bin/lit-cpuid"

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

but not all the files it references.

Call Stack (most recent call first):
/usr/lib/cmake/llvm/LLVMConfig.cmake:172 (include)
CMakeLists.txt:280 (find_package)
CMakeLists.txt:288 (find_llvm)

So is this something that can be fixed?

TIA.

John.

TheRealGrogan 03-29-2020 02:42 PM

In case you haven't come to this conclusion yet, the file lit-cpuid is missing from the LLVM 10 Slackware package. It didn't build for whatever reason, or it's no longer part of an existing component (i.e. I seem to have lit-cpuid with LLVM 9.0.1 but not lit... perhaps now lit-cpuid isn't built by another component but part of the test suite or something)

P.S. From what I can see, that used to get built with lldb.

TheRealGrogan 03-29-2020 03:04 PM

Looks like a variable needs to be set for it to get built with lldb

LLDB_INCLUDE_TESTS (probably like -DLLDB_INCLUDE_TESTS=ON)

CMakeLists.txt in lldb sources

Code:

option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests." ${LLVM_INCLUDE_TESTS})
if(LLDB_INCLUDE_TESTS)
  add_subdirectory(test)
  add_subdirectory(unittests)
  add_subdirectory(utils/lit-cpuid)
  add_subdirectory(utils/lldb-dotest)
endif()


bassmadrigal 03-29-2020 08:24 PM

Fixed in the latest updates.

Code:

Sun Mar 29 23:05:46 UTC 2020
d/llvm-10.0.0-x86_64-2.txz:  Rebuilt.
  Ensure that lit-cpuid is built and installed. Thanks to jkh2cpu.


jkh2cpu 03-30-2020 12:10 PM

Thanks. Darktable builds again!

John.


All times are GMT -5. The time now is 06:49 PM.