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?

More than 3 years have passed since last update.

g++: internal compiler error: Abort trap: 6 signal terminated program cc1plus

Posted at

この記事について

c++で書いたコードをgccでコンパイルした際に生じたエラーの解決方法のメモです。

#エラー文

$ g++ -std=c++14 test.cpp

上記のようにg++コマンドを使いtest.cppファイルをコンパイルをしようと試みたら以下のエラーが出てきました。

dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.21.dylib
  Referenced from: /usr/local/Cellar/gcc/9.2.0_2/libexec/gcc/x86_64-apple-darwin19/9.2.0/cc1plus
  Reason: image not found
g++: internal compiler error: Abort trap: 6 signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions.

#解決法

$ brew reinstall gcc

で直りました。数ヶ月g++コマンドを使っていなかったので何が原因なのかわかりませんでした。調べてみると、このエラーはbrewの更新やgccのバージョン、シンボリックリンクが原因になっているようです。

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?