0

最近http://hpc.sourceforge.net/から gcc をインストールしましたが、ヘッダーに cmath を含めようとすると、他のすべてが正常に動作しますが、次のエラーが表示されます。

/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/5.0.0/include-fixed/math.h:273:5: internal compiler error: Illegal instruction: 4
     return __inline_isfinitef(__x) && __builtin_fabsf(__x) >= __FLT_MIN__;
     ^

/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/5.0.0/include-fixed/math.h:273:5: internal compiler error: Abort trap: 6
g++: internal compiler error: Abort trap: 6 (program cc1plus)
Abort trap: 6

OSX Yosemite を使用しており、gcc -v と入力すると、次のように表示されます。

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/5.0.0/lto-wrapper
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc-5-20140928/configure --enable-languages=c++,fortran
Thread model: posix
gcc version 5.0.0 20140928 (experimental) (GCC) 

お時間をいただきありがとうございます。

4

1 に答える 1

0

これは、ランタイム CPU で使用できない命令を提供する CPU 用に GMP ライブラリがコンパイルされた場合に発生する可能性があります。gmp CPU の識別を参照してください。

于 2016-04-10T16:26:32.517 に答える