Bug#578735: g++: ICE or assembler errors while compiling gmic on mips
Package: g++-4.4
Version: 4.4.3-7
Severity: normal
With enabled optimization, g++ fails to build gmic_float.o on mips.
It even run into an ICE[1], but unfortunately I can't reproduce these on
the porter box. There it runs into the following error message:
g++ -o gmic_float.o -c gmic.cpp -Dgmic_separate_compilation -Dgmic_float -Dgmic_build -I/usr/include -Wall -W -I/usr/include -Dcimg_display=1 -Dcimg_use_xrandr -I/usr/X11R6/include -Dcimg_use_xshm -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_tiff -Dcimg_use_zlib -Dcimg_use_magick -I/usr/include/GraphicsMagick -Dcimg_use_openexr -I/usr/include/OpenEXR -Dcimg_use_fftw3 -O2 -fno-tree-pre
/tmp/ccandU2j.s: Assembler messages:
/tmp/ccandU2j.s:759511: Error: Branch out of range
/tmp/ccandU2j.s:798526: Error: Branch out of range
/tmp/ccandU2j.s:858669: Error: Branch out of range
make[4]: *** [gmic_float.o] Error 1
Without -fno-tree-pre (and even worse, with -O3) it even eats more memory
(1.5G at the moment) and especially needs a painful amount of time. This
might be related to [2] (gmic is the successor of Greystoration).
Builds with -O0 are just fine. Same for builds using
gcc-snapshot, Version: 20091228-2. It still takes an insane amount of
time to build with gcc-snapshot and -O3, though.
[1]:
https://buildd.debian.org/fetch.cgi?&pkg=gmic&ver=1.3.4.1%2Bdfsg-2&arch=mips&stamp=1271785256&file=log
[2]: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36439
Cheers,
Bernd
Reply to: