microsoft / vcpkg

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

Build boost:x86-windows failed #1159

Closed zhiweicai closed 5 years ago

zhiweicai commented 7 years ago

Package: boost:x86-windows

Vcpkg version: 0.0.81-unknownhash

CMake Error at scripts/cmake/vcpkg_execute_required_process_repeat.cmake:21 (message):
    Command failed: C:/ccai-dev/other/vcpkg/buildtrees/boost/src/boost_1_64_0/b2.exe;--stagedir=C:/ccai-dev/other/vcpkg/buildtrees/boost/x86-windows-rel/stage;--build-dir=C:/ccai-dev/other/vcpkg/buildtrees/boost/x86-windows-rel;-sZLIB_INCLUDE="C:/cca
i-dev/other/vcpkg/installed/x86-windows\include";-sBZIP2_INCLUDE="C:/ccai-dev/other/vcpkg/installed/x86-windows\include";-j16;--debug-configuration;--hash;-q;--without-python;threading=multi;runtime-link=shared;link=shared;toolset=msvc-14.1;-sZLIB_BI
NARY=zlib;-sZLIB_LIBPATH="C:/ccai-dev/other/vcpkg/installed/x86-windows\lib";-sBZIP2_BINARY=bz2;-sBZIP2_LIBPATH="C:/ccai-dev/other/vcpkg/installed/x86-windows\lib";variant=release;debug-symbols=on
    Working Directory: C:/ccai-dev/other/vcpkg/buildtrees/boost/src/boost_1_64_0
    See logs for more information:
      C:\ccai-dev\other\vcpkg\buildtrees\boost\build-x86-windows-rel-out.log
      C:\ccai-dev\other\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)

From build-x86-windows-rel-out-0.log:

mt : general error c101008d: Failed to write the updated manifest to the resource of file "C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.exe". The operation failed.

        if exist "C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.exe.manifest" (
            call "echo" x86 >nul
mt -nologo -manifest "C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.exe.manifest" "-outputresource:C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.exe;1"
        )

...failed msvc.manifest C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.exe C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.pdb...
...removing C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.exe
...removing C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c\cxx11_auto_declarations.pdb
...skipped <pC:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c>cxx11_auto_declarations.passed for lack of <pC:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\config\checks\0c2fcf4f2e879acbf54fb50eaffc182c>cxx11_auto_declarations.exe...
...failed updating 2 targets...

From build-x86-windows-rel-out-2.log

mt : general error c101008d: Failed to write the updated manifest to the resource of file "C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.dll". The operation failed.

        if exist "C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.dll.manifest" (
            call "echo" x86 >nul
mt -nologo -manifest "C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.dll.manifest" "-outputresource:C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.dll;2"
        )

...failed msvc.manifest.dll C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.dll C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.lib C:\ccai-dev\other\vcpkg\buildtrees\boost\x86-windows-rel\boost\bin.v2\libs\type_erasure\build\8119a5daf2534cadb146838cc915eb69\boost_type_erasure-vc141-mt-1_64.pdb...
zhiweicai commented 7 years ago

build-x86-windows-rel-err-0.txt build-x86-windows-rel-err-1.txt build-x86-windows-rel-err-2.txt build-x86-windows-rel-out-0.txt build-x86-windows-rel-out-1.txt build-x86-windows-rel-out-2.txt

ras0219-msft commented 7 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?

[1] https://stackoverflow.com/questions/3775406/mt-exe-general-error-c101008d-failed-to-write-the-updated-manifest-to-the-res

DavidObando commented 7 years ago

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.

ras0219-msft commented 7 years ago

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

zhiweicai commented 7 years ago

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.

zhiweicai commented 7 years ago

Also I noticed sometimes release build is done and failed on debug build.

I disabled the antivirus.

zhiweicai commented 7 years ago

build-x86-windows-dbg-err-2.txt build-x86-windows-dbg-out-1.txt build-x86-windows-dbg-out-0.txt

JackBoosY commented 5 years ago

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.

JackBoosY commented 5 years ago

Please open a new issue if this is still a problem for you. Thx.