Can compile Boost1.88 Use cmake

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

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

評価

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

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

boostorg/boost のほかの issue

boostorg/boost の issue をすべて見る

似ている issue

Build System の issue をもっと見る

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

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