0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

powerline-goのアップデートでエラーが発生した件

Last updated at Posted at 2025-08-15

ある時yayでアップデートかけたら、、、、

エラー終了(exit status 4)。どうやら、powerline-goのアップデートによりソースからのビルドが必要となったが、goのビルドで"flag provide but not defined"というエラーが起きているらしい。メッセージによると手動インストールしろとのことだが、パッケージ管理になんとかしてもらいたい気持ちもあるのでもう少し粘ってみる。

原因と対策

archlinux wiki および、[AUR] powerline-go のコンパイルエラーによれば、PKGBUILDがGoのフラグまわり対する仕様変更に追従できていないことが原因とのこと。
yayのキャッシュ(~/.cache/yay/powerline-go)にあるPKGBUILD
を編集すると解決した。

-    -ldflags "-extldflags ${LDFLAGS}" \
+    -ldflags "-extldflags \"${LDFLAGS}\"" \
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?