microsoft / vcpkg

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

Error: Building package boost-compatibility:x86-windows failed with: BUILD_FAILED #11627

Closed stq054188 closed 4 years ago

stq054188 commented 4 years ago

Host Environment----

To Reproduce Steps to reproduce the behavior: ./vcpkg install pcl

Failure logs D:\vcpkg\vcpkg-2020.04>vcpkg install pcl Computing installation plan... The following packages will be built and installed:

Call Stack (most recent call first): installed/x86-windows/share/boost-vcpkg-helpers/boost-modular-headers.cmake:17 (vcpkg_download_distfile) ports/boost-compatibility/portfile.cmake:14 (boost_modular_headers) scripts/ports.cmake:90 (include)

Error: Building package boost-compatibility:x86-windows 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: boost-compatibility:x86-windows Vcpkg version: 2020.02.04-nohash

Additionally, attach any relevant sections from the log files above.

Additional context reference: https://github.com/Microsoft/vcpkg/issues/6183 I have checked there was no space characters in the path, I can't find where the mistake is.

PhoebeHui commented 4 years ago

@stq054188, from your log, looks boost-1.72.0/LICENSE_1_0.txt file download failed, could you please try following workaround:

  1. Download https://raw.githubusercontent.com/boostorg/boost/boost-1.72.0/LICENSE_1_0.txt file manually
  2. Rename it to 'boost_LICENSE_1_0.txt'
  3. Put it to vcpkg\download folder
  4. ./vcpkg install boost-compatibility:x86-windows

BTW, boost currently upgrade to 1.73.0 in vcpkg, you can get latest source and try again.

FishOrBear commented 4 years ago

set the HTTPS_PROXY and HTTP_PROXY environment

Works for me

PhoebeHui commented 4 years ago

Close this issue and use https://github.com/microsoft/vcpkg/issues/12383 to track.