boost/1.83.0 not building with clang in windows

オープン
#1,039 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
build-system

調査の方向性

まず、ログにある b2 コマンドを再現し、生成された user-config.jam を調べます。報告されたトレースを libs/test/build/Jamfile.v2 と predef/check/predef.jam まで追跡します。示されている clang-on-Windows 構成で Boost 1.83.0 のビルドが完了すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I try to build boost/1.83.0 with help of conan 2 in an empty test project. I don't think it is really a problem with conan 2 because the problem remains when I run the build manually with the given configuration. Is something wrong with my compiler configuration?
"C:/Computer/Tools/msys2/clang64/bin/clang++.EXE"', version '19.1.7', target 'x86_64', default architecture=x86 address-model=64

Here is the output log:

boost/1.83.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/boost/stacktrace/detail/libbacktrace_impls.hpp' file.
boost/1.83.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/boost/stacktrace/detail/libbacktrace_impls.hpp' file.
boost/1.83.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/tools/build/src/tools/gcc.jam' file.
boost/1.83.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/tools/build/src/tools/gcc.jam' file.
boost/1.83.0: WARN: Patching user-config.jam
boost/1.83.0: WARN:
using zlib : 1.3.1 : <include>"C:/Users/Besitzer/.conan2/p/b/zlib674478b84f971/p/include" <search>"C:/Users/Besitzer/.conan2/p/b/zlib674478b84f971/p/lib" <name>z ;
using bzip2 : 1.0.8 : <include>"C:/Users/Besitzer/.conan2/p/b/bzip29711959a5d9fd/p/include" <search>"C:/Users/Besitzer/.conan2/p/b/bzip29711959a5d9fd/p/lib" <name>bz2 ;
using "clang-win" :  :  "C:/Computer/Tools/msys2/clang64/bin/clang++.EXE" :
 ;
boost/1.83.0: WARN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/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-url --with-wave toolset=clang-win cxxstd=2a pch=on linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++" install --prefix=C:/Users/Besitzer/.conan2/p/b/boost35246aabeec66/p -j24 --abbreviate-paths -d0 --debug-configuration --build-dir="C:/Users/Besitzer/.conan2/p/b/boost35246aabeec66/b/build-release"
boost/1.83.0: RUN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/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-url --with-wave toolset=clang-win cxxstd=2a pch=on linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++" install --prefix=C:/Users/Besitzer/.conan2/p/b/boost35246aabeec66/p -j24 --abbreviate-paths -d0 --debug-configuration --build-dir="C:/Users/Besitzer/.conan2/p/b/boost35246aabeec66/b/build-release"
notice: found boost-build.jam at C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/boost-build.jam
notice: loading B2 from C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build-system.jam
notice: Searching 'C:\Users\Besitzer' 'C:\Computer\Tools\msys2\home\Besitzer' 'C:\Users\Besitzer' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\build' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\contrib' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\options' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\tools' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\util' 'C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Users\Besitzer' 'C:\Computer\Tools\msys2\home\Besitzer' 'C:\Users\Besitzer' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\build' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\contrib' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\options' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\tools' 'C:\Users\Besitzer\.conan2\p\b2e4855d9acaafa\p\bin\.b2\util' 'C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2'.
notice: Loading explicitly specified user configuration file:
    C:\Users\Besitzer\.conan2\p\boost711df6118e12e\s\src\tools\build\user-config.jam
notice: Searching 'C:\Users\Besitzer\.conan2\p\boost711df6118e12e\s\src\tools\build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: [clang-win] using compiler '"C:/Computer/Tools/msys2/clang64/bin/clang++.EXE"', version '19.1.7', target 'x86_64', default architecture=x86 address-model=64
notice: will use 'C:/Computer/Tools/msys2/clang64/bin/clang++.EXE' for clang-win, condition <toolset>clang-win-19.1.7
notice: [clang-win] x86-32:
notice: [clang-win] x86-32: using assembler 'ml'
notice: [clang-win] x86-32: using archiver 'lib.exe'
notice: [clang-win] x86-32: using manifest-tool 'mt.exe'
notice: [clang-win] x86-32: using resource-compiler 'rc.exe'
notice: [clang-win] x86-32: using mc-compiler 'mc.exe'
notice: [clang-win] x86-32: using idl-compiler 'midl.exe'
notice: [clang-win] arm-32:
notice: [clang-win] arm-32: using assembler 'armasm'
notice: [clang-win] arm-32: using archiver 'lib.exe'
notice: [clang-win] arm-32: using manifest-tool 'mt.exe'
notice: [clang-win] arm-32: using resource-compiler 'rc.exe'
notice: [clang-win] arm-32: using mc-compiler 'mc.exe'
notice: [clang-win] arm-32: using idl-compiler 'midl.exe'
notice: [clang-win] x86-64:
notice: [clang-win] x86-64: using assembler 'ml64'
notice: [clang-win] x86-64: using archiver 'lib.exe'
notice: [clang-win] x86-64: using manifest-tool 'mt.exe'
notice: [clang-win] x86-64: using resource-compiler 'rc.exe'
notice: [clang-win] x86-64: using mc-compiler 'mc.exe'
notice: [clang-win] x86-64: using idl-compiler 'midl.exe'
notice: [clang-win] arm-64:
notice: [clang-win] arm-64: using assembler 'armasm64'
notice: [clang-win] arm-64: using archiver 'lib.exe'
notice: [clang-win] arm-64: using manifest-tool 'mt.exe'
notice: [clang-win] arm-64: using resource-compiler 'rc.exe'
notice: [clang-win] arm-64: using mc-compiler 'mc.exe'
notice: [clang-win] arm-64: using idl-compiler 'midl.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:\Computer\Tools\msys2\clang64\bin\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:/Computer/Tools/msys2/clang64\Include"
notice: [python-cfg]   library path: "C:/Computer/Tools/msys2/clang64\libs"
notice: [python-cfg]   DLL search path: "C:/Computer/Tools/msys2/clang64"
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 disabled. Reason:
notice: [python-cfg]   python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())" aborted with
notice: [python-cfg]   Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
C:/Users/Besitzer/.conan2/p/boost711df6118e12e/s/src/libs/test/build/../../predef/check\predef.jam:17: in modules.import from module predef
warning: loading predef
warning: circular module loading dependency:
warning: build-system Jamfile<C:\Users\Besitzer\.conan2\p\boost711df6118e12e\s\src\libs\test\build> predef ==> predef
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build\project.jam:1309: in import from module Jamfile<C:\Users\Besitzer\.conan2\p\boost711df6118e12e\s\src\libs\test\build>
libs\test\build\Jamfile.v2:11: in modules.load from module Jamfile<C:\Users\Besitzer\.conan2\p\boost711df6118e12e\s\src\libs\test\build>
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build\project.jam:562: in load-jamfile from module project
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build\project.jam:84: in load from module project
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build\project.jam:125: in load-used-projects from module project
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build\project.jam:95: in load from module project
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2/build\project.jam:217: in project.find from module project
C:/Users/Besitzer/.conan2/p/b2e4855d9acaafa/p/bin/.b2\build-system.jam:639: in module scope from module build-system
Performing configuration checks

    - default address-model    : none [1]
    - default architecture     : none [1]
    - compiler supports SSE2   : no [2]
    - compiler supports SSE4.1 : no [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 : no [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]
    - has fdopendir(O_NOFOLLOW) : no [2]
    - has dirent::d_type       : no [2]
    - has POSIX *at APIs       : no [2]
    - cxx11_auto_declarations  : no [2]
    - cxx11_auto_declarations  : no [3]
    - has_icu builds           : no [2]
    - zlib                     : no [2]
    - bzip2                    : no [2]
    - cxx11_constexpr          : no [2]
    - cxx11_constexpr          : no [3]
    - native atomic int32 supported : no [2]
    - has message compiler     : no [2]
    - native syslog supported  : no [2]
    - pthread supports robust mutexes : no [2]
    - compiler supports SSSE3  : no [2]
    - compiler supports AVX2   : no [2]
    - gcc visibility           : no [2]
    - cxx11_noexcept           : no [2]
    - gcc visibility           : no [3]
    - cxx11_noexcept           : no [3]
    - libbacktrace builds      : no [2]
    - libbacktrace builds      : no [3]
    - addr2line builds         : no [2]
    - addr2line builds         : no [3]
    - WinDbg builds            : no [2]
    - WinDbg builds            : no [3]
    - WinDbgCached builds      : no [2]
    - WinDbgCached builds      : no [3]
    - BOOST_COMP_GNUC >= 4.3.0 : no [2]

[1] clng-19.1.
[2] clng-win-19.1./rls/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/cxstd-2a-iso/lnk-sttc/nm-on/pythn-3.12/thrdp-wn32/thrd-mlt/vsblt-hdn
[3] clng-win-19.1./rls/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/bld-no/cxstd-2a-iso/lnk-sttc/nm-on/pythn-3.12/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
    - url                      : building
    - wave                     : building

...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\contract\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>libboost_contract.lib for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\contract\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>contract.obj...
...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\p\lib>libboost_contract.lib for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\contract\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>libboost_contract.lib...
...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\regex\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>libboost_regex.lib for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\regex\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>posix_api.obj...
...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\context\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>asm\make_x86_64_ms_pe_masm.obj for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\context\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnmrk-off\lnk-sttc\nm-on\thrd-mlt>asm\make_x86_64_ms_pe_masm.asm...
...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\stacktrace\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>libboost_stacktrace_noop.lib for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\stacktrace\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>noop.obj...
...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\stacktrace\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>libboost_stacktrace_basic.lib for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\stacktrace\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>basic.obj...
...skipped <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\p\lib>libboost_stacktrace_basic.lib for lack of <pC:\Users\Besitzer\.conan2\p\b\boost35246aabeec66\b\build-release\boost\bin.v2\libs\stacktrace\build\clng-win-19.1.\rls\adrs-mdl-64\archt-x86\cxstd-2a-iso\lnk-sttc\nm-on\thrd-mlt>libboost_stacktrace_basic.lib...

...failed updating 0 target...

boost/1.83.0: ERROR:
Package '0ea38f654662483492823515f1b9ea4323ffc0f3' build failed
boost/1.83.0: WARN: Build folder C:/Users/Besitzer/.conan2/p/b/boost35246aabeec66/b/build-release
ERROR: boost/1.83.0: Error in build() method, line 1167
        self.run(full_command)

I don't know where the problem is, the log is not telling me much besides that a few object files haven't been built.
I have ran following linux build without problems:

./bootstrap.sh --with-toolset=clang --with-icu=/usr/include/x86_64-linux-gnu
./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++"
主要言語
HTML
スター
8.6k
フォーク
2k
平均マージ
9時間 35分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/boost のほかの issue

boostorg/boost の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。