error building persistent-sqlite-2.13.3.1 with ghc-10.0.0.20260917: __STDC_VERSION__ does not advertise C11, C++11 or later

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
haskell, sqlite

調査の方向性

まず、ghc-10.0.1-alpha1 と gcc-16.2.1 を使って、報告された persistent-sqlite-2.13.3.1 用の cabal install コマンドを再現します。Database/Sqlite/Internal.hs と Database/Sqlite.hs を読み、続いて参照されている GHC Rts.h および Stg.h ヘッダーを調査して、失敗の原因が persistent と GHC のどちらにあるかを判断します。担当するコンポーネントを特定し、再現可能な解決手順を文書化できれば完了です。

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

説明

I am trying to build with ghc-10.0.1-alpha1 (recently published)

$ cabal install persistent-sqlite-2.13.3.1  -w /opt/ghc/ghc-10.0.0.20260917/bin/ghc --allow-newer --constraint hashable==1.5.0.0

...

Configuring library for persistent-sqlite-2.13.3.1...
[1 of 3] Compiling Database.Sqlite.Internal ( Database/Sqlite/Internal.hs, dist/build/Database/Sqlite/Internal.o, dist/build/Database/Sqlite/Internal.dyn_o )
[2 of 3] Compiling Database.Sqlite  ( Database/Sqlite.hs, dist/build/Database/Sqlite.o, dist/build/Database/Sqlite.dyn_o )
In file included from /opt/ghc/ghc-10.0.0.20260917/lib/ghc-10.0.0.20260917/lib/../lib/x86_64-linux-ghc-10.0.0.20260917-inplace/rts-1.0.3/include/Rts.h:38,
                 from /tmp/ghc93749_tmp_0_0/ghc_tmp_122_1.c:1:0: error:
    

/opt/ghc/ghc-10.0.0.20260917/lib/ghc-10.0.0.20260917/lib/../lib/x86_64-linux-ghc-10.0.0.20260917-inplace/rts-1.0.3/include/Stg.h:35:3: error:
     error: #error __STDC_VERSION__ does not advertise C11, C++11 or later
       35 | # error __STDC_VERSION__ does not advertise C11, C++11 or later
          |   ^~~~~
   |
35 | # error __STDC_VERSION__ does not advertise C11, C++11 or later
   |   ^

<no location info>: error:
    `cc' failed in phase `C Compiler'. (Exit code: 1)

with gcc-16.2.1 (comes with current Fedora 44)

Compilation is fine with ghc-9.14.1 and ghc-9.14.1.20260916. So perhaps it is a ghc problem.

主要言語
Haskell
スター
486
フォーク
307
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

yesodweb/persistent のほかの issue

yesodweb/persistent の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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