Computing installation plan...
The following packages will be rebuilt:
llvm[clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-terminfo,enable-threads,enable-zlib,enable-zstd,libcxx,libcxxabi,lld,target-spirv,target-x86,tools]:x64-linux -> 15.0.7#3
Removing 1/2 llvm:x64-linux
Elapsed time to handle llvm:x64-linux: 45.8 ms
Installing 2/2 llvm:x64-linux...
Building llvm[clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-terminfo,enable-threads,enable-zlib,enable-zstd,libcxx,libcxxabi,lld,target-spirv,target-x86,tools]:x64-linux...
-- Using cached llvm-llvm-project-llvmorg-15.0.7.tar.gz.
-- Using source at <vcpkg_root>/buildtrees/llvm/src/org-15.0.7-26832cabce
-- Getting CMake variables for x64-linux
-- Configuring x64-linux
CMake Warning at installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:318 (message):
The following variables are not used in CMakeLists.txt:
BOLT_TOOLS_INSTALL_DIR
LIBOMP_INSTALL_ALIASES
Please recheck them and remove the unnecessary options from the
`vcpkg_cmake_configure` call.
If these options should still be passed for whatever reason, please use the
`MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
ports/llvm/portfile.cmake:238 (vcpkg_cmake_configure)
scripts/ports.cmake:147 (include)
-- Building x64-linux-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
Please ensure your system has sufficient memory.
Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/llvm/portfile.cmake:271 (vcpkg_cmake_install)
scripts/ports.cmake:147 (include)
-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: <vcpkg_root>/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j25
Working Directory: <vcpkg_root>/buildtrees/llvm/x64-linux-dbg
See logs for more information:
<vcpkg_root>/buildtrees/llvm/install-x64-linux-dbg-out.log
<vcpkg_root>/buildtrees/llvm/install-x64-linux-dbg-out-1.log
<vcpkg_root>/buildtrees/llvm/install-x64-linux-dbg-err-1.log
Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/llvm/portfile.cmake:271 (vcpkg_cmake_install)
scripts/ports.cmake:147 (include)
error: building llvm:x64-linux failed with: BUILD_FAILED
Elapsed time to handle llvm:x64-linux: 1.7 h
internal error: /mnt/vss/_work/1/s/src/vcpkg/commands.build.cpp(1510): Value was null
Please open an issue at https://github.com/microsoft/vcpkg/issues/new?template=other-type-of-bug-report.md&labels=category:vcpkg-bug with detailed steps to reproduce the problem.
$ tail <vcpkg_root>/buildtrees/llvm/install-x64-linux-dbg-out-1.log
In file included from /usr/include/string.h:32:
<vcpkg_root>/buildtrees/llvm/x64-linux-dbg/include/c++/v1/stddef.h:17:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
^~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build <vcpkg_root>/buildtrees/llvm/x64-linux-dbg/runtimes/runtimes-stamps/runtimes-build
cd <vcpkg_root>/buildtrees/llvm/x64-linux-dbg/runtimes/runtimes-bins && <vcpkg_root>/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake --build .
ninja: build stopped: subcommand failed.
$ tail <vcpkg_root>/buildtrees/llvm/install-x64-linux-dbg-err-1.log
CMake Warning:
Manually-specified variables were not used by the project:
COMPILER_RT_BUILD_BUILTINS
HAVE_LLVM_LIT
LLVM_BUILD_TOOLS
LLVM_CONFIG_PATH
LLVM_ENABLE_PROJECTS_USED
Operating system
Linux CentOS7 container
Compiler
GCC, clang
Steps to reproduce the behavior
Failure logs
Console output:
Additional context
I dumped include directory paths
I suspect -internal-isystem and -resource-dir points to wrong directory.
Can it be the reason? Any hints where I change this?