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

            Bug ID: 57368
           Summary: Trying to build CilkPlus fails with an ICE
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nmm1 at cam dot ac.uk

This is different from 56485.  I have tried to report it to the CilkPlus
team, but the mechanism appears to be broken.  I haven't tried stripping
the problem down, as that is a lot of effort and it is worth finding out
how best to proceed first.  It fails with at least 4.6.2 and 4.8.0 in
the same place.  This is a reasonably modern 16-core AMD running OpenSUSE
12.1.  The download is:

    svn co svn://gcc.gnu.org/svn/gcc/branches/cilkplus

The build script is:

    ../configure --prefix=/home/nmm/CilkPlus --disable-bootstrap  \
        --enable-languages=c,c++,fortran \
        --enable-werror=yes --enable-checking=all --disable-decimal-float
    make

I shall retry without --enable-checking=all, but I typically work with
all checks on :-)  If particular information would be useful, please
tell me what.

The diagnostics are:

/bin/sh ./libtool  --tag=CC   --mode=compile
/home/nmm/cilkplus-source/object/./gcc/xgcc
-B/home/nmm/cilkplus-source/object/./gcc/
-B/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/bin/
-B/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/lib/ -isystem
/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/include -isystem
/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/sys-include   
-DPACKAGE_NAME=\"Cilk\ Runtime\" -DPACKAGE_TARNAME=\"cilk-runtime\"
-DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"Cilk\ Runtime\ 2.0\"
-DPACKAGE_BUGREPORT=\"c...@intel.com\" -DPACKAGE_URL=\"\" -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_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.
-I../../../libcilkrts  -I../../../libcilkrts/include -DIN_CILK_RUNTIME=1 -fpic
-O3 -fcilkplus -DBUILD_USER=\"nmm\" -DBUILD_HOST=\"`hostname`\" 
-I../../../libcilkrts/include -DIN_CILK_RUNTIME=1 -fpic -O3 -fcilkplus
-DBUILD_USER=\"nmm\" -DBUILD_HOST=\"`hostname`\" -std=c99 -g -O2 -MT
metacall_impl.lo -MD -MP -MF .deps/metacall_impl.Tpo -c -o metacall_impl.lo
`test -f 'runtime/metacall_impl.c' || echo
'../../../libcilkrts/'`runtime/metacall_impl.c
libtool: compile:  /home/nmm/cilkplus-source/object/./gcc/xgcc
-B/home/nmm/cilkplus-source/object/./gcc/
-B/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/bin/
-B/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/lib/ -isystem
/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/include -isystem
/home/nmm/CilkPlus/x86_64-unknown-linux-gnu/sys-include "-DPACKAGE_NAME=\"Cilk
Runtime\"" -DPACKAGE_TARNAME=\"cilk-runtime\" -DPACKAGE_VERSION=\"2.0\"
"-DPACKAGE_STRING=\"Cilk Runtime 2.0\"" -DPACKAGE_BUGREPORT=\"c...@intel.com\"
-DPACKAGE_URL=\"\" -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_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -I. -I../../../libcilkrts -I../../../libcilkrts/include
-DIN_CILK_RUNTIME=1 -fpic -O3 -fcilkplus -DBUILD_USER=\"nmm\"
-DBUILD_HOST=\"needham\" -I../../../libcilkrts/include -DIN_CILK_RUNTIME=1
-fpic -O3 -fcilkplus -DBUILD_USER=\"nmm\" -DBUILD_HOST=\"needham\" -std=c99 -g
-O2 -MT metacall_impl.lo -MD -MP -MF .deps/metacall_impl.Tpo -c
../../../libcilkrts/runtime/metacall_impl.c  -fPIC -DPIC -o
.libs/metacall_impl.o
../../../libcilkrts/runtime/metacall_impl.c: In function '__cilkrts_metacall':
../../../libcilkrts/runtime/metacall_impl.c:45:23: internal compiler error: RTL
check: expected code 'code_label', have 'note' in create_metadata_label, at
cilk.c:800
     __notify_intrinsic("cilkscreen_metacall", &d);
                       ^
0x9ff487 rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, int,
char const*)
    ../../gcc/rtl.c:773
0xcc6bc7 create_metadata_label
    ../../gcc/cilk.c:800
0xcc9038 expand_builtin_cilk_metadata(char const*, tree_node*)
    ../../gcc/cilk.c:1099
0x6a8005 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
    ../../gcc/builtins.c:6909
0x7c3826 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**)
    ../../gcc/expr.c:10260
0x6cb77c expand_call_stmt
    ../../gcc/cfgexpand.c:2180
0x6cb77c expand_gimple_stmt_1
    ../../gcc/cfgexpand.c:2218
0x6cb77c expand_gimple_stmt
    ../../gcc/cfgexpand.c:2370
0x6cce65 expand_gimple_basic_block
    ../../gcc/cfgexpand.c:4204
0x6d060b gimple_expand_cfg
    ../../gcc/cfgexpand.c:4723
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [metacall_impl.lo] Error 1
make[2]: Leaving directory
`/home/nmm/cilkplus-source/object/x86_64-unknown-linux-gnu/libcilkrts'
make[1]: *** [all-target-libcilkrts] Error 2
make[1]: Leaving directory `/home/nmm/cilkplus-source/object'
make: *** [all] Error 2

Reply via email to