Error building in Ubuntu 24.04
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- c, node.js, postgresql, typescript, ubuntu
調査の方向性
まず Ubuntu 24.04 で npm clean-install を使って失敗を再現し、次に libpg_query のビルド出力、strchrnul 周辺の src/postgres/src_port_snprintf.c、および参照されている Makefile を調査します。Ubuntu 24.04 で、宣言が競合しているエラーなしにパッケージのビルドが正常に成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I'm trying to build supabase postgres-meta in my ubuntu 24.04 machine and I get this error
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error Cloning into 'libpg_query'...
npm error Note: switching to 'e7c14fe399c4903223362790c212bcbeb6832864'.
npm error
npm error You are in 'detached HEAD' state. You can look around, make experimental
npm error changes and commit them, and you can discard any commits you make in this
npm error state without impacting any branches by switching back to a branch.
npm error
npm error If you want to create a new branch to retain commits you create, you may
npm error do so (now or later) by using -c with the switch command. Example:
npm error
npm error git switch -c <new-branch-name>
npm error
npm error Or undo this operation with:
npm error
npm error git switch -
npm error
npm error Turn off this advice by setting config variable advice.detachedHead to false
npm error
npm error HEAD is now at e7c14fe fix(makefile): ar var to inherit ar command
npm error src/postgres/src_port_snprintf.c:374:1: error: conflicting types for 'strchrnul'; have 'const char *(const char *, int)'
npm error 374 | strchrnul(const char *s, int c)
npm error | ^~~~~~~~~
npm error In file included from ./src/postgres/include/c.h:61,
npm error from src/postgres/src_port_snprintf.c:62:
npm error /usr/include/string.h:286:14: note: previous declaration of 'strchrnul' with type 'char *(const char *, int)'
npm error 286 | extern char *strchrnul (const char *__s, int __c)
npm error | ^~~~~~~~~
npm error make[1]: *** [Makefile:172: src/postgres/src_port_snprintf.o] Error 1
npm error make: *** [queryparser.target.mk:13: libpg_query/include/pg_query.h] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Spin up a Ubuntu 24.04 environment
- Run npm clean-install
Expected behavior
It should build in this distro
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: Ubuntu 24.04
Additional context
Add any other context about the problem here.
- 主要言語
- TypeScript
- スター
- 1.2k
- フォーク
- 224
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
supabase/postgres-meta のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
supabase/postgres-meta#1150 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
supabase/postgres-meta#1147 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
supabase/postgres-meta#1146 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
supabase/postgres-meta#1143 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
supabase/postgres-meta#1142 ·
メンテナーはふだん 1 日以内に返信
supabase/postgres-meta の issue をすべて見る
似ている issue
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mermaid-js/mermaid-live-editor#2053 ·
メンテナーはふだん 1 日以内に返信
-
factory
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jessepollak/home#1455 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
lingdojo/kana-dojo#31227 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
appandflow/stim#1838 ·
メンテナーはふだん 1 日以内に返信