I am using g++ to compile shogun 0.1.2 from
http://www.fml.tuebingen.mpg.de/raetsch/projects/shogun.

g++ however dies as soon as I turn on optimization -O1 with the following error
(it will compile ok with -O0).

c++  -O1 -fPIC -DLINUX -g -c -I. -I/usr/include/octave-2.1.73 -o
guilib/GUIFeatures.cpp.o guilib/GUIFeatures.cpp
guilib/GUIFeatures.cpp: In member function ‘CRealFeatures*
CGUIFeatures::convert_sparse_real_to_simple_real(CSparseRealFeatures*,
CHAR*)’:
guilib/GUIFeatures.cpp:591: error: unrecognizable insn:
(insn 204 209 208 20 ./features/SparseFeatures.h:227 (set (subreg:SI (reg:DI
199) 4)
        (plus:SI (reg:SI 197)
            (mem/s/j:SI (reg/f:SI 138 [ D.22963 ]) [0 <variable>.feat_index+0
S4 A64]))) -1 (nil)
    (nil))
guilib/GUIFeatures.cpp:591: internal compiler error: in extract_insn, at
recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

I am on a linux-ppc arch running debian sid:

$ cat /proc/cpuinfo 
processor       : 0
cpu             : 7455, altivec supported
clock           : 1000.000000MHz
revision        : 0.3 (pvr 8001 0303)
bogomips        : 99.79
timebase        : 33331495
platform        : PowerMac
machine         : PowerBook3,5
motherboard     : PowerBook3,5 MacRISC2 MacRISC Power Macintosh
detected as     : 80 (PowerBook Titanium IV)
pmac flags      : 0000001b
L2 cache        : 256K unified
pmac-generation : NewWorld

$ g++ -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --disable-softfloat
--enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32
--enable-checking=release powerpc-linux-gnu
Thread model: posix
gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)


-- 
           Summary: internal compiler error: in extract_insn, at
                    recog.c:2084
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bugreports at nn7 dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29250

Reply via email to