failure to build on OpenIndiana g++14

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

メンテナーはふだん 2 日以内に返信

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

  • #3023 @誰か による — マージされずにクローズ

評価

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

調査の方向性

catch_tostring.cpp から始め、報告された OpenIndiana 環境、GCC 14.3.0、およびドキュメントに記載された CMake ビルドコマンドを使用して失敗を再現します。Catch::isnan と std::isnan の動作を比較し、その後、同じビルドでプロジェクトが正常にコンパイルおよびリンクできることを確認します。

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

説明

Describe the bug
Build failure.
Image

And link failure if replacing with std::isnan.
Image

Expected behavior
It building and linking properly.

Reproduction steps
Steps to reproduce the bug.

  • install OpenIndiana/some illumos-based distro with this specific gcc version
  • sudo pkg install gcc-14
  • git clone --depth=1 https://github.com/catchorg/Catch2
  • cd Catch2
  • cmake -DCMAKE_BUILD_TYPE=Release -B build
  • cmake --build build -- -j128

Platform information:

  • OS: OpenIndiana
  • Compiler+version: GCC v14.3.0
  • Catch version: latest git

Additional context
I solved the issue by replacing with std::isnan, but it didn't make the linker happy either, Replacing Catch::isnan for std::isnan in catch_tostring.cpp makes it compile and link just fine.

主要言語
C++
スター
21.6k
フォーク
3.4k
平均マージ
3日 12時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

catchorg/Catch2 のほかの issue

catchorg/Catch2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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