Closed zhiweicai closed 5 years ago
Thanks for reporting this issue!
Looking online [1], it seems that third party antivirus software is often the cause of this problem. Could you try temporarily disabling your antivirus on the vcpkg folder and see if that fixes the issue?
Boost:x86-windows is failing for me too:
PS C:\GitHub\Microsoft\vcpkg> vcpkg install uWebsockets
The following packages will be built and installed:
* boost:x86-windows
uwebsockets:x86-windows
Additional packages (*) will be installed to complete this operation.
Building package boost:x86-windows...
-- CURRENT_INSTALLED_DIR=C:/GitHub/Microsoft/vcpkg/installed/x86-windows
-- DOWNLOADS=C:/GitHub/Microsoft/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/GitHub/Microsoft/vcpkg/packages/boost_x86-windows
-- CURRENT_BUILDTREES_DIR=C:/GitHub/Microsoft/vcpkg/buildtrees/boost
-- CURRENT_PORT_DIR=C:/GitHub/Microsoft/vcpkg/ports/boost/.
-- Using cached C:/GitHub/Microsoft/vcpkg/downloads/boost_1_64_0.tar.bz2
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting source C:/GitHub/Microsoft/vcpkg/downloads/boost_1_64_0.tar.bz2
-- Extracting done
-- Using cached C:/GitHub/Microsoft/vcpkg/downloads/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Applying patch C:/GitHub/Microsoft/vcpkg/buildtrees/boost/src/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed
-- Applying patch C:/GitHub/Microsoft/vcpkg/buildtrees/boost/src/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed done
-- Bootstrapping
-- Bootstrapping done
-- Building x86-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process_repeat.cmake:21 (message):
Command failed: C:/GitHub/Microsoft/vcpkg/buildtrees/boost/src/boost_1_64_0/b2.exe;--stagedir=C:/GitHub/Microsoft/vcpkg/buildtrees/boost/x86-windows-rel/stage;--build-dir=C:/GitHub/Microsoft/vcpkg/buildtrees/boost/x86-windows-rel;-sZLIB_INCLUDE="C:/GitHub/Microsoft/vcpkg/installed/x86-windows\include";-sBZIP2_INCLUDE="C:/GitHub/Microsoft/vcpkg/installed/x86-windows\include";-j8;--debug-configuration;--hash;-q;--without-python;threading=multi;runtime-link=shared;link=shared;toolset=msvc-14.0;-sZLIB_BINARY=zlib;-sZLIB_LIBPATH="C:/GitHub/Microsoft/vcpkg/installed/x86-windows\lib";-sBZIP2_BINARY=bz2;-sBZIP2_LIBPATH="C:/GitHub/Microsoft/vcpkg/installed/x86-windows\lib";variant=release;debug-symbols=on
Working Directory: C:/GitHub/Microsoft/vcpkg/buildtrees/boost/src/boost_1_64_0
See logs for more information:
C:\GitHub\Microsoft\vcpkg\buildtrees\boost\build-x86-windows-rel-out.log
C:\GitHub\Microsoft\vcpkg\buildtrees\boost\build-x86-windows-rel-err.log
Call Stack (most recent call first):
ports/boost/portfile.cmake:188 (vcpkg_execute_required_process_repeat)
scripts/ports.cmake:73 (include)
Error: Building package boost: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:x86-windows
Vcpkg version: 0.0.81-e95a0986962405ab5b6e2da149462f04f199b2c8
Additionally, attach any relevant sections from the log files above.
In my case, the log files listed above are empty. Let me know if I can provide any additional information.
Thanks for posting this. Could you attach your configure-x86-windows-rel logs?
One common cause of Boost build problems is due to the user having a site-config.jam. We still don't know how to solidly fix that issue :(.
Edit: there is actually a defect in the command output; the log files will be named build-x86-windows-rel-out-0.log
It appears this is relevant to machine. I build the boost on windows8 and it is fine.
However It is failed on my windows 7 machine. I do not think this is related to the anti-virus as I tried to exclude my folder from the virus scanner.
Also I noticed sometimes release build is done and failed on debug build.
I disabled the antivirus.
Hi @zhiweicai , thanks for post this issue! Boost built successfully in the latest version(v1.69.0), could you update vcpkg and try again? Thx.
Please open a new issue if this is still a problem for you. Thx.
Package: boost:x86-windows
Vcpkg
version: 0.0.81-unknownhashFrom build-x86-windows-rel-out-0.log:
From build-x86-windows-rel-out-2.log