conan-center-index: [package] boost/1.77.0: cannot build for Windows gcc x86_64
Hello - A configuration for boost/1.77.0 is not available, and when I try to build it I get a ConanException: Error 1 while executing b2.exe. Please help if possible. Thank you. I also tried the most recent gcc 8.1.0 - just in case - and received the same error.
Package and Environment Details (include every applicable attribute)
- Package Name/Version: boost/1.77.0
- Operating System+version: Windows 10
- Compiler+version: GCC 7.2.0
- Conan version: conan 1.41.0
- Python version: Python 3.10.0
Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]
Steps to reproduce (Include if Applicable)
$ mkdir testdir && cd testdir $ type con > conanfile.txt [requires] boost/1.77.0
[generators] cmake $ mkdir build && cd build $ conan install … $ conan install … --build=boost
Logs (Include/Attach if Applicable)
Click to expand log
Microsoft Windows [Version 10.0.18363.1801]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\windows\system32>cd\temp
C:\temp>mkdir testdir && cd testdir
C:\temp\testdir>type con > conanfile.txt
[requires]
boost/1.77.0
[generators]
cmake
C:\temp\testdir>mkdir build && cd build
C:\temp\testdir\build>conan install ..
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=7
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
boost/1.77.0: WARN: Package binary is corrupted, removing: 26dbaaaba8da289459e8e26b87c8d1b27c993041
conanfile.txt: Installing package
Requirements
boost/1.77.0 from 'conancenter' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
zlib/1.2.11 from 'conancenter' - Cache
Packages
boost/1.77.0:26dbaaaba8da289459e8e26b87c8d1b27c993041 - Missing
bzip2/1.0.8:456177cc52f814bf60d65d5b5889191eb5628935 - Cache
zlib/1.2.11:42951bc9791ea38175dc6d678bd77956f88c4796 - Cache
Installing (downloading, building) binaries...
ERROR: Missing binary: boost/1.77.0:26dbaaaba8da289459e8e26b87c8d1b27c993041
boost/1.77.0: WARN: Can't find a 'boost/1.77.0' package for the specified settings, options and dependencies:
- Settings: arch=x86_64, build_type=Release, compiler=gcc, compiler.libcxx=libstdc++11, compiler.version=7, os=Windows
- Options: asio_no_deprecated=False, buildid=None, bzip2=True, debug_level=0, diagnostic_definitions=False, error_code_header_only=False, extra_b2_flags=None, filesystem_no_deprecated=False, header_only=False, i18n_backend=deprecated, i18n_backend_iconv=off, i18n_backend_icu=False, layout=system, lzma=False, magic_autolink=False, multithreading=True, namespace=boost, namespace_alias=False, numa=True, pch=True, python_executable=None, python_version=None, segmented_stacks=False, shared=False, system_no_deprecated=False, visibility=hidden, without_atomic=False, without_chrono=False, without_container=False, without_context=False, without_contract=False, without_coroutine=False, without_date_time=False, without_exception=False, without_fiber=False, without_filesystem=False, without_graph=False, without_graph_parallel=True, without_iostreams=False, without_json=False, without_locale=False, without_log=False, without_math=False, without_mpi=True, without_nowide=False, without_program_options=False, without_python=True, without_random=False, without_regex=False, without_serialization=False, without_stacktrace=False, without_system=False, without_test=False, without_thread=False, without_timer=False, without_type_erasure=False, without_wave=False, zlib=True, zstd=False, bzip2:build_executable=True, bzip2:shared=False, zlib:minizip=deprecated, zlib:shared=False
- Dependencies: zlib/1.2.11, bzip2/1.0.8
- Requirements: bzip2/1.Y.Z, zlib/1.Y.Z
- Package ID: 26dbaaaba8da289459e8e26b87c8d1b27c993041
ERROR: Missing prebuilt package for 'boost/1.77.0'
Try to build from sources with '--build=boost'
Use 'conan search <reference> --table table.html'
Or read 'http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package'
C:\temp\testdir\build>conan install .. --build=boost
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=7
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
boost/1.77.0: Forced build from source
conanfile.txt: Installing package
Requirements
boost/1.77.0 from 'conancenter' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
zlib/1.2.11 from 'conancenter' - Cache
Packages
boost/1.77.0:26dbaaaba8da289459e8e26b87c8d1b27c993041 - Build
bzip2/1.0.8:456177cc52f814bf60d65d5b5889191eb5628935 - Cache
zlib/1.2.11:42951bc9791ea38175dc6d678bd77956f88c4796 - Cache
Build requirements
b2/4.5.0 from 'conancenter' - Cache
Build requirements packages
b2/4.5.0:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache
Installing (downloading, building) binaries...
b2/4.5.0: Already installed!
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: C:\Users\lbrooks\.conan\data\bzip2\1.0.8\_\_\package\456177cc52f814bf60d65d5b5889191eb5628935\bin
zlib/1.2.11: Already installed!
boost/1.77.0: Applying build-requirement: b2/4.5.0
boost/1.77.0: WARN: Build folder is dirty, removing it: C:\.conan\4456da\1
boost/1.77.0: Building your package in C:\.conan\4456da\1
boost/1.77.0: Generator txt created conanbuildinfo.txt
boost/1.77.0: Aggregating env generators
boost/1.77.0: Calling build()
WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\.conan\4e2957\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\.conan\4e2957\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\.conan\4e2957\1\source_subfolder\tools\build\src\tools\gcc.jam' file.
WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\.conan\4e2957\1\source_subfolder\tools\build\src\tools\gcc.jam' file.
WARN: replace_in_file didn't find pattern ' <conditional>@numa' in 'C:\.conan\4e2957\1\source_subfolder\libs\fiber\build\Jamfile.v2' file.
boost/1.77.0: WARN: Patching user-config.jam
boost/1.77.0: WARN:
using zlib : 1.2.11 : <include>"C:/Users/lbrooks/.conan/data/zlib/1.2.11/_/_/package/42951bc9791ea38175dc6d678bd77956f88c4796/include" <search>"C:/Users/lbrooks/.conan/data/zlib/1.2.11/_/_/package/42951bc9791ea38175dc6d678bd77956f88c4796/lib" <name>zlib ;
using bzip2 : 1.0.8 : <include>"C:/Users/lbrooks/.conan/data/bzip2/1.0.8/_/_/package/456177cc52f814bf60d65d5b5889191eb5628935/include" <search>"C:/Users/lbrooks/.conan/data/bzip2/1.0.8/_/_/package/456177cc52f814bf60d65d5b5889191eb5628935/lib" <name>bz2 ;
using "gcc" : : C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/bin/g++.exe :
;
boost/1.77.0: WARN: b2.exe -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\4e2957\1\source_subfolder\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=gcc define=_GLIBCXX_USE_CXX11_ABI=1 pch=on cxxflags="-fPIC" install --prefix=C:\.conan\f8370a\1 -j16 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\4456da\1"
notice: found boost-build.jam at C:/.conan/4e2957/1/source_subfolder/boost-build.jam
notice: loading B2 from C:/.conan/4e2957/1/source_subfolder/tools/build/src/bootstrap.jam
warning: mismatched versions of B2 engine and core
warning: B2 engine (b2.exe) is 4.5.0
warning: B2 core (at C:/.conan/4e2957/1/source_subfolder/tools/build/src) is 4.6-git
notice: Searching 'U:\' 'C:\Users\lbrooks' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/kernel' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/util' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/build' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/tools' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/contrib' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'U:\' 'C:\Users\lbrooks' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/kernel' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/util' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/build' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/tools' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/contrib' 'C:/.conan/4e2957/1/source_subfolder/tools/build/src/.'.
notice: Loading explicitly specified user configuration file:
C:\.conan\4e2957\1\source_subfolder\tools\build\user-config.jam
notice: Searching 'C:\.conan\4e2957\1\source_subfolder\tools\build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/.conan/4e2957/1/source_subfolder/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: will use 'C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/bin/g++.exe' for gcc, condition <toolset>gcc-7
notice: using gcc libraries :: <toolset>gcc-7 :: C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/bin C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/lib C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/lib32 C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/lib64
notice: using gcc archiver :: <toolset>gcc-7 :: C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/x86_64-w64-mingw32/bin/ar.exe
notice: using gcc ranlib :: <toolset>gcc-7 :: C:/MentorGraphics/CapitalVSTARIntegrator/svx/tools/mingw32-x86_64-w64/x86_64-w64-mingw32/bin/ranlib.exe
notice: using rc compiler :: <toolset>gcc-7 :: C:\MentorGraphics\CapitalVSTARIntegrator\svx\tools\mingw32-x86_64-w64\bin\windres.exe
notice: [zlib] zlib is already configured
notice: [bzip2] bzip is already configured
notice: iostreams: not using lzma compression
notice: iostreams: not using zstd compression
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Users\lbrooks\AppData\Local\Programs\Python\Python310\python.exe" 2>&1'
notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python"
notice: [python-cfg] include path: "C:\Users\lbrooks\AppData\Local\Programs\Python\Python310\Include"
notice: [python-cfg] library path: "C:\Users\lbrooks\AppData\Local\Programs\Python\Python310\libs"
notice: [python-cfg] DLL search path: "C:\Users\lbrooks\AppData\Local\Programs\Python\Python310"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
Performing configuration checks
- default address-model : 64-bit [1]
- default architecture : x86 [1]
- compiler supports SSE2 : yes [2]
- compiler supports SSE4.1 : yes [2]
- has synchronization.lib : no [2]
- has std::atomic_ref : no [2]
- has statx : no [2]
- has statx syscall : no [2]
- has BCrypt API : no [2]
- is Windows CE : no [2]
- has init_priority attribute : yes [2]
- has stat::st_blksize : no [2]
- has stat::st_mtim : no [2]
- has stat::st_mtimensec : no [2]
- has stat::st_mtimespec : no [2]
- has stat::st_birthtim : no [2]
- has stat::st_birthtimensec : no [2]
- has stat::st_birthtimespec : no [2]
- cxx11_auto_declarations : yes [2]
- cxx11_constexpr : yes [2]
- cxx11_defaulted_functions : yes [2]
- cxx11_final : yes [2]
- cxx11_hdr_mutex : no [2]
- cxx11_hdr_tuple : yes [2]
- cxx11_lambdas : yes [2]
- cxx11_noexcept : yes [2]
- cxx11_nullptr : yes [2]
- cxx11_rvalue_references : yes [2]
- cxx11_template_aliases : yes [2]
- cxx11_thread_local : yes [2]
- cxx11_variadic_templates : yes [2]
- cxx11_auto_declarations : yes [3]
- cxx11_constexpr : yes [3]
- cxx11_defaulted_functions : yes [3]
- cxx11_final : yes [3]
- cxx11_hdr_mutex : no [3]
- cxx11_hdr_tuple : yes [3]
- cxx11_lambdas : yes [3]
- cxx11_noexcept : yes [3]
- cxx11_nullptr : yes [3]
- cxx11_rvalue_references : yes [3]
- cxx11_template_aliases : yes [3]
- cxx11_thread_local : yes [3]
- cxx11_variadic_templates : yes [3]
- has_icu builds : no [2]
- zlib : yes [4]
- bzip2 : yes [4]
- cxx11_decltype : yes [2]
- cxx11_basic_alignas : yes [2]
- native atomic int32 supported : yes [2]
- has message compiler : no [2]
- native syslog supported : no [2]
- pthread supports robust mutexes : no [2]
- compiler supports SSSE3 : yes [2]
- compiler supports AVX2 : yes [2]
- gcc visibility : yes [2]
- sfinae_expr : yes [2]
- cxx11_unified_initialization_syntax : yes [2]
- cxx11_hdr_initializer_list : yes [2]
- cxx11_hdr_chrono : yes [2]
- cxx11_numeric_limits : yes [2]
- cxx11_hdr_array : yes [2]
- cxx11_hdr_atomic : yes [2]
- cxx11_hdr_type_traits : yes [2]
- cxx11_allocator : yes [2]
- cxx11_explicit_conversion_operators : yes [2]
- gcc visibility : yes [5]
- cxx11_noexcept : yes [5]
- cxx11_rvalue_references : yes [5]
- sfinae_expr : yes [5]
- cxx11_auto_declarations : yes [5]
- cxx11_lambdas : yes [5]
- cxx11_unified_initialization_syntax : yes [5]
- cxx11_hdr_tuple : yes [5]
- cxx11_hdr_initializer_list : yes [5]
- cxx11_hdr_chrono : yes [5]
- cxx11_thread_local : yes [5]
- cxx11_constexpr : yes [5]
- cxx11_nullptr : yes [5]
- cxx11_numeric_limits : yes [5]
- cxx11_decltype : yes [5]
- cxx11_hdr_array : yes [5]
- cxx11_hdr_atomic : yes [5]
- cxx11_hdr_type_traits : yes [5]
- cxx11_allocator : yes [5]
- cxx11_explicit_conversion_operators : yes [5]
- long double support : yes [5]
- cxx11_static_assert : yes [2]
- std::fstream is moveable and swappable : yes [2]
- Has Large File Support : yes [2]
- Has attribute init_priority : yes [2]
- libbacktrace builds : no [2]
- libbacktrace builds : no [3]
- addr2line builds : no [2]
- addr2line builds : no [3]
- WinDbg builds : yes [2]
- WinDbg builds : yes [3]
- WinDbgCached builds : no [2]
- WinDbgCached builds : no [3]
- BOOST_COMP_GNUC >= 4.3.0 : yes [2]
[1] gcc-7
[2] gcc-7/rls/bst.l-off/bst.l-off/lnk-sttc/nm-on/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn
[3] gcc-7/rls/bst.l-off/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn
[4] lnk-sttc
[5] gcc-7/rls/bst.l-off/bst.l-off/lnk-sttc/nm-on/pch-off/pythn-3.10/thrdp-wn32/thrd-mlt/vsblt-hdn
Component configuration:
- atomic : building
- chrono : building
- container : building
- context : building
- contract : building
- coroutine : building
- date_time : building
- exception : building
- fiber : building
- filesystem : building
- graph : building
- graph_parallel : not building
- headers : not building
- iostreams : building
- json : building
- locale : building
- log : building
- math : building
- mpi : not building
- nowide : building
- program_options : building
- python : not building
- random : building
- regex : building
- serialization : building
- stacktrace : building
- system : building
- test : building
- thread : building
- timer : building
- type_erasure : building
- wave : building
...failed updating 18 targets...
boost/1.77.0:
boost/1.77.0: ERROR: Package '26dbaaaba8da289459e8e26b87c8d1b27c993041' build failed
boost/1.77.0: WARN: Build folder C:\.conan\4456da\1
ERROR: boost/1.77.0: Error in build() method, line 821
self.run(full_command, run_environment=True)
ConanException: Error 1 while executing b2.exe -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\4e2957\1\source_subfolder\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=gcc define=_GLIBCXX_USE_CXX11_ABI=1 pch=on cxxflags="-fPIC" install --prefix=C:\.conan\f8370a\1 -j16 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\4456da\1"
C:\temp\testdir\build>
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (8 by maintainers)
Might be the same issue than https://github.com/conan-io/conan-center-index/issues/4764
Workaround: disable fiber (
-o boost:without_fiber=True) https://github.com/conan-io/conan-center-index/issues/4764#issuecomment-845807588hard to say, can you build with
-o boost:debug_level=1or higher?