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

            Bug ID: 59540
           Summary: ICE while building libcilkrt library with
                    --disable-bootstrap and --disable-checking
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nenad at intrepid dot com
                CC: gary at intrepid dot com, PHHargrove at lbl dot gov

I freshened my svn tree to rev 206077 and get an ICE while compiling libcilkrt.

Configure options:

env CFLAGS=-O2 ../src/configure \
--enable-languages=c,c++ --disable-bootstrap --disable-checking

[...]

/eng/upc/dev/nenad/gcc-trunk/bld/./gcc/xg++
-B/eng/upc/dev/nenad/gcc-trunk/bld/./gcc/ -nostdinc++ -nostdinc++
-I/eng/upc/dev/nenad/gcc-trunk/bld/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/eng/upc/dev/nenad/gcc-trunk/bld/i686-pc-linux-gnu/libstdc++-v3/include
-I/eng/upc/dev/nenad/gcc-trunk/src/libstdc++-v3/libsupc++
-I/eng/upc/dev/nenad/gcc-trunk/src/libstdc++-v3/include/backward
-I/eng/upc/dev/nenad/gcc-trunk/src/libstdc++-v3/testsuite/util
-L/eng/upc/dev/nenad/gcc-trunk/bld/i686-pc-linux-gnu/libstdc++-v3/src
-L/eng/upc/dev/nenad/gcc-trunk/bld/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-L/eng/upc/dev/nenad/gcc-trunk/bld/i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
-isystem /usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include "-DPACKAGE_NAME=\"Cilk Runtime
Library\"" -DPACKAGE_TARNAME=\"cilk-runtime-library\" -DPACKAGE_VERSION=\"2.0\"
"-DPACKAGE_STRING=\"Cilk Runtime Library 2.0\""
-DPACKAGE_BUGREPORT=\"c...@intel.com\" -DPACKAGE_URL=\"\"
-DPACKAGE=\"cilk-runtime-library\" -DVERSION=\"2.0\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-DHAVE_ATTRIBUTE_VISIBILITY=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.
-I../../../src/libcilkrts -I../../../src/libcilkrts/include
-I../../../src/libcilkrts/runtime -I../../../src/libcilkrts/runtime/config/x86
-DIN_CILK_RUNTIME=1 -fcilkplus -g -O2 -D_GNU_SOURCE -MT cilk-abi-cilk-for.lo
-MD -MP -MF .deps/cilk-abi-cilk-for.Tpo -c
../../../src/libcilkrts/runtime/cilk-abi-cilk-for.cpp  -fPIC -DPIC -o
.libs/cilk-abi-cilk-for.o
xg++: internal compiler error: Segmentation fault (program cc1plus)
0x80503a0 execute

I think the issue is that libclkrt is being compiled with the first stage
compiler.

--disable-bootstrap --enable-checking : has no problem
--enable-bootstrap --disable-checking : has no problem

Also, it is worth noting that with "-O2" it fails with SEGV, but with "-O0" it
runs out of memory (virtual memory exhausted: Cannot allocate memory), which I
have 4Gb.

Nenad

Reply via email to