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

error build: [lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make:178: lib/libLLVMDemangle.a] Error 2 #113701

Open
aragon5956 opened this issue Oct 25, 2024 · 0 comments
Labels
build-problem llvm Umbrella label for LLVM issues

Comments

@aragon5956
Copy link

aragon5956 commented Oct 25, 2024

the command:
cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_PARALLEL_LINK_JOBS=2 ../llvm
display this :

CMake Warning:
  Ignoring extra path from command line:

   "/home/alexandre/llvm-project/build/DLLVM_PARALLEL_LINK_JOBS=2"


CMake Deprecation Warning at /home/alexandre/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:8 (include)


-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is enabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
-- LLVM host triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Targeting X86
CMake Deprecation Warning at /home/alexandre/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  /home/alexandre/llvm-project/lld/CMakeLists.txt:7 (include)


-- LLD version: 20.0.0
CMake Deprecation Warning at /home/alexandre/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  /home/alexandre/llvm-project/clang/CMakeLists.txt:7 (include)


-- Clang version: 20.0.0git
-- Registering ExampleIRTransforms as a pass plugin (static build: OFF)
-- Registering Bye as a pass plugin (static build: OFF)
-- Failed to find LLVM FileCheck
-- Google Benchmark version: v0.0.0, normalized to 0.0.0
-- Enabling additional flags: -DINCLUDE_DIRECTORIES=/home/alexandre/llvm-project/third-party/benchmark/include
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- Configuring done (7.2s)
-- Generating done (3.6s)
-- Build files have been written to: /home/alexandre/llvm-project/build
alexandre@ubuntu:~/llvm-project/build$ 

and after, this :

alexandre@ubuntu:~/llvm-project/build$ make
[  0%] Linking CXX static library ../libLLVMDemangle.a
Error running link command: No such file or directory
make[2]: *** [lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make:178: lib/libLLVMDemangle.a] Error 2
make[1]: *** [CMakeFiles/Makefile2:12574: lib/Demangle/CMakeFiles/LLVMDemangle.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
alexandre@ubuntu:~/llvm-project/build$ 

could you help me ?

Regards

@EugeneZelenko EugeneZelenko added build-problem llvm Umbrella label for LLVM issues and removed new issue labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem llvm Umbrella label for LLVM issues
Projects
None yet
Development

No branches or pull requests

2 participants