microsoft / vcpkg

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

Error: Building package liblzma:x64-linux failed with: BUILD_FAILED #14014

Closed AbhinavMir closed 4 years ago

AbhinavMir commented 4 years ago

Describe the bug Upon trying to build Iroha dependencies, I get the error as described below. It had run successfully once. I am using the latest portfiles, to my knowledge.

Environment

To Reproduce

apt-get update; \
apt-get -y --no-install-recommends install \
build-essential ninja-build \
git ca-certificates tar curl unzip cmake

git clone https://github.com/hyperledger/iroha.git
iroha/vcpkg/build_iroha_deps.sh
vcpkg/vcpkg integrate install

Expected behavior Get a CMake build parameter

Failure logs

-- Downloading https://github.com/xz-mirror/xz/archive/v5.2.4.tar.gz...
-- Extracting source /mnt/c/Users/Abhinavmir/code/vcpkg/downloads/xz-mirror-xz-v5.2.4.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: /mnt/c/Users/Abhinavmir/code/vcpkg/downloads/tools/cmake-3.14.0-linux/cmake-3.14.0-Linux-x86_64/bin/cmake -E tar xjf /mnt/c/Users/Abhinavmir/code/vcpkg/downloads/xz-mirror-xz-v5.2.4.tar.gz
    Working Directory: /mnt/c/Users/Abhinavmir/code/vcpkg/buildtrees/liblzma/src/TEMP
    Error code: 1
    See logs for more information:
      /mnt/c/Users/Abhinavmir/code/vcpkg/buildtrees/liblzma/extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:43 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:108 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_github.cmake:139 (vcpkg_extract_source_archive_ex)
  ports/liblzma/portfile.cmake:3 (vcpkg_from_github)
  scripts/ports.cmake:94 (include)

Error: Building package liblzma:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: liblzma:x64-linux
  Vcpkg version: 2019.09.12-unknownhash

Additionally, attach any relevant sections from the log files above.
NancyLi1013 commented 4 years ago

Hi @AbhinavMir Thanks for posting this issue. It seems that you didn't use the latest version to build. Could you please usegit pull to update vcpkg to the latest version and then rebuild this port?

liblzma has been updated to 5.2.5 in vcpkg.

AbhinavMir commented 4 years ago

That worked for me, thank you!