microsoft / vcpkg

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

[boost, pcl, cgal] build failure #12045

Closed chatyan closed 4 years ago

chatyan commented 4 years ago

Host Environment

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

Failure logs .\vcpkg install cgal Computing installation plan... The following packages will be built and installed:

Call Stack (most recent call first): scripts/cmake/vcpkg_download_distfile.cmake:110 (test_hash) installed/x86-windows/share/boost-vcpkg-helpers/boost-modular-headers.cmake:17 (vcpkg_download_distfile) ports/boost-compatibility/portfile.cmake:12 (boost_modular_headers) scripts/ports.cmake:76 (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.

NancyLi1013 commented 4 years ago

Hi @chatyan Thanks for posting this issue. Could you please remove _D:/Work 2019/GIT Code/vcpkg/downloads/boost_LICENSE_10.txt and rebuild this?

chatyan commented 4 years ago

@NancyLi1013 HI. when I remove the license file, it shows another problem. D:\Work 2019\GIT Code\vcpkg>.\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:12 (boost_modular_headers) scripts/ports.cmake:76 (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.

NancyLi1013 commented 4 years ago

Could you please download https://raw.githubusercontent.com/boostorg/boost/boost-1.73.0/LICENSE_1_0.txt manually and put this file into _vcpkg_rootpath/downloads/ directory. Then try to rebuild this.

I can install it successfully on my local. This should be related with your local network.

PS F:\12011\vcpkg> .\vcpkg.exe install boost-compatibility
Computing installation plan...
The following packages will be built and installed:
    boost-compatibility[core]:x86-windows
  * boost-vcpkg-helpers[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/2: boost-vcpkg-helpers:x86-windows
Building package boost-vcpkg-helpers[core]:x86-windows...
-- Performing post-build validation
-- Performing post-build validation done
Building package boost-vcpkg-helpers[core]:x86-windows... done
Installing package boost-vcpkg-helpers[core]:x86-windows...
Installing package boost-vcpkg-helpers[core]:x86-windows... done
Elapsed time for package boost-vcpkg-helpers:x86-windows: 11.5 s
Starting package 2/2: boost-compatibility:x86-windows
Building package boost-compatibility[core]:x86-windows...
-- Downloading https://github.com/boostorg/compatibility/archive/boost-1.73.0.tar.gz...
-- Extracting source F:/12011/vcpkg/downloads/boostorg-compatibility-boost-1.73.0.tar.gz
-- Using source at F:/12011/vcpkg/buildtrees/boost-compatibility/src/ost-1.73.0-44642da97c
-- Packaging headers
-- Packaging headers done
-- Downloading https://raw.githubusercontent.com/boostorg/boost/boost-1.73.0/LICENSE_1_0.txt...
-- Installing: F:/12011/vcpkg/packages/boost-compatibility_x86-windows/share/boost-compatibility/copyright
-- Performing post-build validation
-- Performing post-build validation done
Building package boost-compatibility[core]:x86-windows... done
Installing package boost-compatibility[core]:x86-windows...
Installing package boost-compatibility[core]:x86-windows... done
Elapsed time for package boost-compatibility:x86-windows: 2.686 s

Total elapsed time: 14.35 s
lbartoletti commented 4 years ago

vcpkg failed also for me but on boost-regex (fresh Windows installation and first time with vcpkg):

.\vcpkg install cgal
[…]
Starting package 35/91: boost-regex:x86-windows
Building package boost-regex[core]:x86-windows...
-- Downloading https://github.com/boostorg/regex/archive/boost-1.73.0.tar.gz...
-- Extracting source C:/vcpkg/downloads/boostorg-regex-boost-1.73.0.tar.gz
-- Using source at C:/vcpkg/buildtrees/boost-regex/src/ost-1.73.0-a7219fe4ec
-- Including C:/vcpkg/ports/boost-regex/b2-options.cmake
-- Building x86-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: C:/vcpkg/installed/x86-windows/tools/boost-build/b2.exe --stagedir=C:/vcpkg/buildtrees/boost-regex/x86-windows-rel/stage --build-dir=C:/vcpkg/buildtrees/boost-regex/x86-windows-rel --user-config=C:/vcpkg/buildtrees/boost-regex/x86-windows-rel/user-config.jam -j2 --debug-configuration --debug-building --debug-generators --disable-icu --ignore-site-config --hash -q -sZLIB_INCLUDE=C:/vcpkg/installed/x86-windows/include -sBZIP2_INCLUDE=C:/vcpkg/installed/x86-windows/include -sLZMA_INCLUDE=C:/vcpkg/installed/x86-windows/include -sZSTD_INCLUDE=C:/vcpkg/installed/x86-windows/include threading=multi threadapi=win32 runtime-link=shared link=shared address-model=32 architecture=x86 toolset=msvc -sZLIB_BINARY=zlib -sZLIB_LIBPATH=C:/vcpkg/installed/x86-windows/lib -sBZIP2_BINARY=bz2 -sBZIP2_LIBPATH=C:/vcpkg/installed/x86-windows/lib -sLZMA_BINARY=lzma -sLZMA_LIBPATH=C:/vcpkg/installed/x86-windows/lib -sZSTD_BINARY=zstd -sZSTD_LIBPATH=C:/vcpkg/installed/x86-windows/lib variant=release debug-symbols=on
    Working Directory: C:/vcpkg/buildtrees/boost-regex/src/ost-1.73.0-a7219fe4ec/build
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\boost-regex\build-x86-windows-rel-out.log

Call Stack (most recent call first):
  installed/x86-windows/share/boost-build/boost-modular-build.cmake:297 (vcpkg_execute_required_process)
  ports/boost-regex/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:73 (include)

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

Additionally, attach any relevant sections from the log files above.
PS C:\vcpkg> .\vcpkg update
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.
PS C:\vcpkg> git pull
Already up to date.
chatyan commented 4 years ago

D:\Work 2019\GIT Code\vcpkg>.\vcpkg install pcl Computing installation plan... The following packages will be built and installed:

Call Stack (most recent call first): scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile) ports/boost-math/portfile.cmake:3 (vcpkg_from_github) scripts/ports.cmake:76 (include)

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

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

chatyan commented 4 years ago

I changed the network, it seems OK for boost installation. But, for installing PCL. There comes " cl : Command line warning D9002 : ignoring unknown option '-fext-numeric-literals' " problem

Code\vcpkg\buildtrees\pcl\src\pcl-1.9.1-f2ec88a858\pcap\include" -I"D:\Work 2019\GIT Code\vcpkg\buildtrees\pcl\src\pcl-1.9.1-f2ec88a858\png\include" -I"D:\Work 2019\GIT Code\vcpkg\buildtrees\pcl\src\pcl-1.9.1-f2ec88a858\vtk\include" -I"D:\Work 2019\GIT Code\vcpkg\buildtrees\pcl\src\pcl-1.9.1-f2ec88a858\io\include" -I"D:\Work 2019\GIT Code\vcpkg\installed\x86-windows\include\eigen3" -I"D:\Work 2019\GIT Code\vcpkg\installed\x86-windows\include" /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /FS -openmp -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -DBOOST_ALL_NO_LIB -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -DPCL_ONLY_CORE_POINT_TYPES /bigobj -fext-numeric-literals /showIncludes /Foio\CMakeFiles\pcl_io.dir\src\file_io.cpp.obj /Fdio\CMakeFiles\pcl_io.dir\ /FS -c "D:\Work 2019\GIT Code\vcpkg\buildtrees\pcl\src\pcl-1.9.1-f2ec88a858\io\src\file_io.cpp" cl : Command line warning D9002 : ignoring unknown option '-fext-numeric-literals' ninja: build stopped: subcommand failed.

chatyan commented 4 years ago

Finally, it's done!

Previously I used VS2019, after I switch to Visual Studio 2015, it's done for installing PCL.

For installing boost, I changed my network.

Installing: D:/Work 2019/GIT Code/vcpkg/packages/pcl_x86-windows/share/pcl/copyright -- Performing post-build validation -- Performing post-build validation done Building package pcl[core]:x86-windows... done Installing package pcl[core]:x86-windows... Installing package pcl[core]:x86-windows... done Elapsed time for package pcl:x86-windows: 1.316 h