Issue 99819
Summary CMake configuration failure while trying to build libc++: "/usr/lib/llvm-19/lib/libLibcTableGenUtil.a" but this file does not exist.
Labels libc++
Assignees
Reporter Zingam
    @sylvestre reporting as suggested here: https://github.com/llvm/llvm-project/issues/92359
I am trying to build libc++ on WSL Ubuntu 24.04.
LLVM19 was installed originally via llvm.sh. I updated today.

$ clang --version
Ubuntu clang version 19.0.0 (++20240721081714+0caf0c93e759-1~exp1~20240721081828.299)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin

I build via VSCode and I have the following CMakePresets.json file put in /runtimes

```json
{
 "version": 9,
    "cmakeMinimumRequired": {
      "major": 3,
 "minor": 30,
      "patch": 0
    },
 "configurePresets": [
      {
        "name": "default",
 "displayName": "Default Config",
        "description": "Default build using Ninja generator",
        "hidden": true,
 "generator": "Ninja",
        "binaryDir": "${sourceParentDir}/build/${presetName}"
      },
      {
 "name": "default.debug.libcxx",
        "displayName": "Debug libc++",
        "description": "libc++ debug configuration",
 "inherits": [
          "default"
        ],
 "cacheVariables": {
          "LLVM_ENABLE_RUNTIMES": {
 "type": "STRING",
            "value": "libcxx;libcxxabi;libunwind"
          },
 "CMAKE_EXPORT_COMPILE_COMMANDS": {
            "type": "BOOL",
 "value": "ON"
          },
          "CMAKE_BUILD_TYPE": {
            "type": "STRING",
            "value": "Debug"
          },
          "LIBCXX_ENABLE_DEBUG_MODE": {
 "type": "BOOL",
            "value": "ON"
 },
          "LIBCXX_HARDENING_MODE": {
            "type": "STRING",
            "value": "debug"
          },
 "CMAKE_C_COMPILER": {
            "type": "STRING",
 "value": "clang"
          },
          "CMAKE_CXX_COMPILER": {
            "type": "STRING",
            "value": "clang++"
          }
        }
      }
    ],
 "buildPresets": [
      {
        "name": "default",
 "configurePreset": "default.debug.libcxx"
      }
    ]
 }
```

> [cmake] -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 
[cmake] CMake Error at /usr/lib/llvm-19/lib/cmake/llvm/LLVMExports.cmake:1914 (message):
[cmake] The imported target "LibcTableGenUtil" references the file
[cmake] 
[cmake]      "/usr/lib/llvm-19/lib/libLibcTableGenUtil.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/llvm/LLVMExports.cmake"
[cmake] 
[cmake] but not all the files it references.
[cmake] 
[cmake] Call Stack (most recent call first):
[cmake] /usr/lib/llvm-19/lib/cmake/llvm/LLVMConfig.cmake:370 (include)
[cmake] /usr/lib/cmake/clang-19/ClangConfig.cmake:11 (find_package)
[cmake] /home/hristo/Projects/llvm-project/libcxx/test/tools/clang_tidy_checks/CMakeLists.txt:11 (find_package)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to