2014-10-17 90 views
0

我最近從http://hpc.sourceforge.net/和安裝GCC CMATH編譯C++文件,而其他一切工作正常,每當我嘗試包括在頭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優勝美地和鍵入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) 

在此先感謝您的時間。

+0

嘗試使用'G ++'命令來編譯,而不是'gcc' – Grice 2014-10-17 13:22:30

+1

@JGrice:這是顯而易見從問題的輸出中看到他_did_使用'g ++'。 – 2014-10-17 13:23:59

+0

@Piotr S.不,我不知道它是什麼。 – salvation 2014-10-17 13:24:22

回答