microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.99k stars 6.35k forks source link

[halide] build failure #31468

Closed leeyunhome closed 1 year ago

leeyunhome commented 1 year ago

Operating system

Linux,Windows

Compiler

GCC, MSVC

Steps to reproduce the behavior

./vcpkg install halide:x64-linux
./vcpkg install halide:x64-Windows

Failure logs

aiserver@aiserver-H110-D3:/media/aiserver/data1/coding/github_repository/vcpkg (master)$ ./vcpkg install halide:x64-linux
Computing installation plan...
A suitable version of cmake was not found (required v3.25.1) Downloading portable cmake 3.25.1...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz->/media/aiserver/data1/coding/github_repository/vcpkg/downloads/cmake-3.25.1-linux-x86_64.tar.gz
Extracting cmake...
The following packages will be built and installed:
    halide[core,target-x86]:x64-linux -> 15.0.0#1
  * llvm[clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-rtti,enable-terminfo,enable-threads,enable-zlib,enable-zstd,lld,target-spirv,target-x86,tools]:x64-linux -> 15.0.7#2
  * vcpkg-cmake[core]:x64-linux -> 2022-12-22
  * vcpkg-cmake-config[core]:x64-linux -> 2022-02-06#1
  * vcpkg-cmake-get-vars[core]:x64-linux -> 2023-03-02
  * zlib[core]:x64-linux -> 1.2.13
  * zstd[core]:x64-linux -> 1.5.5
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Restored 0 package(s) from /home/aiserver/.cache/vcpkg/archives in 12.2 us. Use --debug to see more details.
Installing 1/7 vcpkg-cmake:x64-linux...
Building vcpkg-cmake[core]:x64-linux...
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle vcpkg-cmake:x64-linux: 13.7 ms
Installing 2/7 vcpkg-cmake-config:x64-linux...
Building vcpkg-cmake-config[core]:x64-linux...
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg-port-config.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle vcpkg-cmake-config:x64-linux: 12.1 ms
Installing 3/7 vcpkg-cmake-get-vars:x64-linux...
Building vcpkg-cmake-get-vars[core]:x64-linux...
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-get-vars_x64-linux/share/vcpkg-cmake-get-vars/vcpkg_cmake_get_vars.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-get-vars_x64-linux/share/vcpkg-cmake-get-vars/cmake_get_vars
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-get-vars_x64-linux/share/vcpkg-cmake-get-vars/cmake_get_vars/CMakeLists.txt
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-get-vars_x64-linux/share/vcpkg-cmake-get-vars/vcpkg-port-config.cmake
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/vcpkg-cmake-get-vars_x64-linux/share/vcpkg-cmake-get-vars/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle vcpkg-cmake-get-vars:x64-linux: 12.7 ms
Installing 4/7 zlib:x64-linux...
Building zlib[core]:x64-linux...
-- Downloading https://github.com/madler/zlib/archive/v1.2.13.tar.gz -> madler-zlib-v1.2.13.tar.gz...
-- Extracting source /media/aiserver/data1/coding/github_repository/vcpkg/downloads/madler-zlib-v1.2.13.tar.gz
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch 0002-skip-building-examples.patch
-- Applying patch 0003-build-static-or-shared-not-both.patch
-- Applying patch 0004-android-and-mingw-fixes.patch
-- Using source at /media/aiserver/data1/coding/github_repository/vcpkg/buildtrees/zlib/src/v1.2.13-f30d2a168d.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zlib_x64-linux/share/zlib/vcpkg-cmake-wrapper.cmake
-- Fixing pkgconfig file: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zlib_x64-linux/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig file: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zlib_x64-linux/debug/lib/pkgconfig/zlib.pc
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zlib_x64-linux/share/zlib/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle zlib:x64-linux: 2.7 s
Installing 5/7 zstd:x64-linux...
Building zstd[core]:x64-linux...
-- Downloading https://github.com/facebook/zstd/archive/v1.5.5.tar.gz -> facebook-zstd-v1.5.5.tar.gz...
-- Extracting source /media/aiserver/data1/coding/github_repository/vcpkg/downloads/facebook-zstd-v1.5.5.tar.gz
-- Applying patch no-static-suffix.patch
-- Applying patch fix-emscripten-and-clang-cl.patch
-- Using source at /media/aiserver/data1/coding/github_repository/vcpkg/buildtrees/zstd/src/v1.5.5-b23e615f5d.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zstd_x64-linux/lib/pkgconfig/libzstd.pc
-- Fixing pkgconfig file: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zstd_x64-linux/debug/lib/pkgconfig/libzstd.pc
-- Installing: /media/aiserver/data1/coding/github_repository/vcpkg/packages/zstd_x64-linux/share/zstd/usage
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle zstd:x64-linux: 9.7 s
Installing 6/7 llvm:x64-linux...
Building llvm[clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-rtti,enable-terminfo,enable-threads,enable-zlib,enable-zstd,lld,target-spirv,target-x86,tools]:x64-linux...
-- Downloading https://github.com/llvm/llvm-project/archive/llvmorg-15.0.7.tar.gz -> llvm-llvm-project-llvmorg-15.0.7.tar.gz...
-- Extracting source /media/aiserver/data1/coding/github_repository/vcpkg/downloads/llvm-llvm-project-llvmorg-15.0.7.tar.gz
-- Applying patch 0001-Fix-install-paths.patch
-- Applying patch 0002-Fix-DR-1734.patch
-- Applying patch 0003-Fix-tools-path.patch
-- Applying patch 0004-Fix-compiler-rt-install-path.patch
-- Applying patch 0005-Fix-tools-install-path.patch
-- Applying patch 0006-Fix-libffi.patch
-- Applying patch 0007-Fix-install-bolt.patch
-- Applying patch 0008-llvm_assert.patch
-- Applying patch 0009-disable-libomp-aliases.patch
-- Using source at /media/aiserver/data1/coding/github_repository/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean
-- Getting CMake variables for x64-linux
-- Configuring x64-linux
CMake Warning at installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:314 (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 Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /media/aiserver/data1/coding/github_repository/vcpkg/downloads/tools/cmake-3.25.1-linux/cmake-3.25.1-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /media/aiserver/data1/coding/github_repository/vcpkg/buildtrees/llvm/x64-linux-dbg
    See logs for more information:
      /media/aiserver/data1/coding/github_repository/vcpkg/buildtrees/llvm/install-x64-linux-dbg-out.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
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+llvm
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?title=[llvm]+Build+error&body=Copy+issue+body+from+%2Fmedia%2Faiserver%2Fdata1%2Fcoding%2Fgithub_repository%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

Could you tell me how to resolve this issue?

FrankXie05 commented 1 year ago

@leeyunhome Please provide the error log: /media/aiserver/data1/coding/github_repository/vcpkg/buildtrees/llvm/install-x64-linux-dbg-out.log.

leeyunhome commented 1 year ago

@FrankXie05

I attach the log. install-x64-linux-dbg-out.log

Thank you.

FrankXie05 commented 1 year ago
/usr/bin/ld: final link failed: No space left on device
collect2: error: ld returned 1 exit status

Make sure your device has enough space.

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.