https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262
Bug ID: 63262 Summary: internal compiler error including math.h Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: karo13de at googlemail dot com Compilation of source crashes with /usr/local/bin/g++ --version g++ (GCC) 5.0.0 20140824 (experimental) ... In file included from /usr/local/include/c++/5.0.0/cmath:44:0, from ./CImg.h:77, from gmic.h:61, from gmic.cpp:1876: /usr/local/lib/gcc/x86_64-apple-darwin13.3.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.3.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) gcc build from "hpc.sourceforge.net" gmic software from "git clone http://git.code.sf.net/p/gmic/source gmic" Offending command in gmic/src /usr/local/bin/g++ -o gmic gmic.cpp -std=c++11 -Dgmic_build -I/opt/local/include -Dgmic_is_beta=1 -Dcimg_display=1 -Dcimg_appname=\"gmic\" -I/usr/X11R6/include -Dcimg_use_zlib -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_tiff -Dcimg_use_openexr -I/opt/local/include/OpenEXR -Dcimg_use_fftw3 -Wno-unused-parameter -Dgmic_is_parallel -Dcimg_use_opencv -I/opt/local/include/opencv -I/opt/local/include -Dgmic_is_beta=1 -Dgmic_main -L/opt/local/lib -L/usr/X11R6/lib -lX11 -lpthread -lz -lpng -lz -ljpeg -ltiff -lIlmImf -lHalf -lfftw3 -lfftw3_threads -Dcimg_use_opencv -L/opt/local/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab OS Mac OS 10.9.4 (Mavericks) and 10.10 beta2 (Yosemite) Compilation works with native g++ g++ --version (Mavericks) Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix and Yosemite LLVM version 6.0 (based on LLVM 3.5svn)