Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Boost\libs\fiber\test failed to build due to error C2039 with /std:c++latest option on Windows

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

/std:c++latest を使用し、issue にあるコマンドで Windows ビルドを再現することから始めます。boost/atomic/detail/wait_ops_windows.hpp と boost/winapi/wait_constants.hpp を併せて読み、WaitOnAddress、WakeByAddressSingle、WakeByAddressAll が利用できない理由を追跡します。報告されている構成で libs/fiber/test ターゲットのビルドが正常に成功すれば完了です。

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

説明

Operating System

Windows 11
Windows SDK 10.0.26100.0

Describe the issue

The MSVC team regularly builds popular open-source projects, including yours, with development versions of the build tools in order to find and fix regressions in the compiler and libraries before they can ship and cause trouble for the world. This also allows us to provide advance notice of breaking changes, which is the case here.

fiber failed to build due to error C2039 with /std:c++latest option on Windows. Could you please help to take a look at this? Thanks in advance!

Steps to reproduce
  1. Open VS2022 x64 CMD.
  2. git clone --recurse https://github.com/boostorg/boost.git C:\gitP\boostorg\boost
  3. cd /d C:\gitP\boostorg\boost
  4. set _CL_=/std:c++latest
  5. .\bootstrap
  6. .\b2 headers variant=release --build-dir=C:\gitP\boostorg\boost\amd64 address-model=64 architecture=x86
  7. .\b2 variant=release --build-dir=C:\gitP\boostorg\boost\amd64 address-model=64 architecture=x86
  8. .\b2 -j16 variant=release --build-dir=C:\gitP\boostorg\boost\amd64 libs\fiber\test address-model=64
Test.log:

Test.log

Error info:
.\boost/atomic/detail/wait_ops_windows.hpp(66): error C2039: 'WaitOnAddress': is not a member of 'boost::winapi'
.\boost/winapi/wait_constants.hpp(19): note: see declaration of 'boost::winapi'
.\boost/atomic/detail/wait_ops_windows.hpp(66): note: the template instantiation context (the oldest one first) is
.\boost/atomic/detail/wait_ops_windows.hpp(48): note: while compiling class template 'boost::atomics::detail::wait_operations_windows'
.\boost/atomic/detail/wait_ops_windows.hpp(95): error C2039: 'WaitOnAddress': is not a member of 'boost::winapi'
.\boost/winapi/wait_constants.hpp(19): note: see declaration of 'boost::winapi'
.\boost/atomic/detail/wait_ops_windows.hpp(75): note: This diagnostic occurred in the compiler generated function 'wait_operations_windows<Base,Size>::base_type::storage_type boost::atomics::detail::wait_operations_windows<Base,Size>::wait_until_impl(volatile const wait_operations_windows<Base,Size>::base_type::storage_type &,wait_operations_windows<Base,Size>::base_type::storage_type,Clock::time_point,Clock::time_point,boost::memory_order,bool &) noexcept(<expr>)'
.\boost/atomic/detail/wait_ops_windows.hpp(141): error C2039: 'WakeByAddressSingle': is not a member of 'boost::winapi'
.\boost/winapi/wait_constants.hpp(19): note: see declaration of 'boost::winapi'
.\boost/atomic/detail/wait_ops_windows.hpp(146): error C2039: 'WakeByAddressAll': is not a member of 'boost::winapi'
.\boost/winapi/wait_constants.hpp(19): note: see declaration of 'boost::winapi'
.\boost/bind.hpp(41): note: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
主要言語
C++
スター
512
フォーク
123
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

boostorg/fiber のほかの issue

boostorg/fiber の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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