Can compile Boost1.88 Use cmake
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cmake, cpp
- 領域
- build-system, testing
調査の方向性
Ubuntu 22.04 上で g++-11 を使用し、指定された CMake コマンドで失敗を再現してから、libs/process/test/v2 配下のビルドターゲットと生成されたリンクコマンドを調査します。utf8.cpp、cstring_ref.cpp、environment.cpp、shell.cpp、pid.cpp、ext.cpp、process.cpp にわたって報告された Boost.Test のリンカーエラーを確認します。BUILD_TESTING を有効にした状態でこれらのターゲットが正常にリンクできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
cmake . -B Build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_TESTING=ON
system ubuntu22.04
compiler g++-11
root@adj-Rack-Server:/media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0# cmake --build ./Build/ -j 128
[0/2] Re-checking globbed directories...
[1/7] Linking CXX executable stage/bin/boost_process_v2_utf8
FAILED: stage/bin/boost_process_v2_utf8
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_utf8.dir/utf8.cpp.o -o stage/bin/boost_process_v2_utf8 stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
[2/7] Linking CXX executable stage/bin/boost_process_v2_cstring_ref
FAILED: stage/bin/boost_process_v2_cstring_ref
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_cstring_ref.dir/cstring_ref.cpp.o -o stage/bin/boost_process_v2_cstring_ref stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
[3/7] Linking CXX executable stage/bin/boost_process_v2_environment
FAILED: stage/bin/boost_process_v2_environment
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_environment.dir/environment.cpp.o -o stage/bin/boost_process_v2_environment stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
[4/7] Linking CXX executable stage/bin/boost_process_v2_shell
FAILED: stage/bin/boost_process_v2_shell
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_shell.dir/shell.cpp.o -o stage/bin/boost_process_v2_shell stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
[5/7] Linking CXX executable stage/bin/boost_process_v2_pid
FAILED: stage/bin/boost_process_v2_pid
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_pid.dir/pid.cpp.o -o stage/bin/boost_process_v2_pid stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
[6/7] Linking CXX executable stage/bin/boost_process_v2_ext
FAILED: stage/bin/boost_process_v2_ext
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_ext.dir/ext.cpp.o -o stage/bin/boost_process_v2_ext stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
[7/7] Linking CXX executable stage/bin/boost_process_v2_process
FAILED: stage/bin/boost_process_v2_process
: && /usr/bin/c++ -g libs/process/test/v2/CMakeFiles/boost_process_v2_process.dir/process.cpp.o -o stage/bin/boost_process_v2_process stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_process_v2_test_impl.a stage/lib/libboost_process.a stage/lib/libboost_filesystem.a stage/lib/libboost_atomic.a stage/lib/libboost_context.a stage/lib/libboost_date_time.a stage/lib/libboost_container.a stage/lib/libboost_unit_test_framework.a && :
/usr/bin/ld: stage/lib/libboost_unit_test_framework.a(unit_test_main.cpp.o): in function main': /media/root/00ddc85d-7a69-49c2-b1ae-30a59772eeb6/library/boost-1.88.0/libs/test/include/boost/test/impl/unit_test_main.ipp:303: undefined reference to init_unit_test_suite(int, char**)'
collect2: error: ld returned 1 exit status
- 主要言語
- HTML
- スター
- 8.6k
- フォーク
- 2k
- 平均マージ
- 9時間 35分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boostorg/boost のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
CI: pin OS images in build/publish tests instead of `*-latest`対応中かも @shikhabhadoria が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vacanza/holidays#4220 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Niko1221/Strata#6731 · コメント 2 件 ·
メンテナーはふだん 6 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
dependencies go good first issue priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fukubie/StockLlama#48 ·