Blaze causing Internal Compiler Error in gcc/8.1.0

Issue #246 wontfix
Maximilian Bremer created an issue

I haven't been able to get blazetest to compile with gcc/8.1.0.

Blaze commit 97d46947f8a110866eb55291f8639e0902c00501 .

To reproduce, I've added my compiler location into blazetest/Configfile and then run

./configure
make

Producing the error shown below. With gcc/7.3.0 I don't get this issue.

/opt/apps/ossw/applications/gcc/gcc-8.1/c7/bin/g++ -isystem /workspace/bremer/blaze_test_case/blaze/blazetest -isystem /workspace/bremer/blaze_test_case/blaze   -c -o OperationTest.o OperationTest.cpp
In file included from /workspace/bremer/blaze_test_case/blaze/blaze/math/views/Elements.h:75,
                 from /workspace/bremer/blaze_test_case/blaze/blaze/math/Matrix.h:49,
                 from /workspace/bremer/blaze_test_case/blaze/blaze/math/DenseMatrix.h:115,
                 from /workspace/bremer/blaze_test_case/blaze/blaze/math/LowerMatrix.h:51,
                 from /workspace/bremer/blaze_test_case/blaze/blazetest/blazetest/mathtest/blas/OperationTest.h:48,
                 from OperationTest.cpp:43:
/workspace/bremer/blaze_test_case/blaze/blaze/math/views/elements/Sparse.h:124:52: internal compiler error: in cp_tree_equal, at cp/tree.c:3896
    using TransposeType = TransposeType_t<ResultType>;  //!< Transpose type for expression template evaluations.
                                                    ^
0x58fb04 cp_tree_equal(tree_node*, tree_node*)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/tree.c:3896
0x6a5959 template_args_equal(tree_node*, tree_node*, bool)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:8688
0x6a57d8 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**, bool)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:8717
0x6fdd67 structural_comptypes
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/typeck.c:1337
0x6fddcf structural_comptypes
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/typeck.c:1397
0x6a5acc template_args_equal(tree_node*, tree_node*, bool)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:8669
0x6a57d8 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**, bool)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:8717
0x6ab489 spec_hasher::equal(spec_entry*, spec_entry*)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:1668
0x6d2694 hash_table<spec_hasher, xcallocator>::find_with_hash(spec_entry* const&, unsigned int)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/hash-table.h:863
0x6baa4c lookup_template_class_1
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:9331
0x6baa4c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/pt.c:9650
0x6de21d finish_template_type(tree_node*, tree_node*, int)
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/semantics.c:3228
0x6836c4 cp_parser_template_id
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:15861
0x6837da cp_parser_class_name
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:22396
0x68efe7 cp_parser_qualifying_entity
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:6570
0x68efe7 cp_parser_nested_name_specifier_opt
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:6256
0x690855 cp_parser_simple_type_specifier
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:17188
0x68b155 cp_parser_type_specifier
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:16861
0x68be02 cp_parser_type_specifier_seq
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:21127
0x68c021 cp_parser_type_id_1
    /opt/apps/ossw/sourcesdir/gcc/gcc-8.1.0/gcc/cp/parser.c:20973
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Comments (3)

  1. Klaus Iglberger

    Hi Maximilian!

    Unfortunately we cannot reproduce the issue since we don't have access to GCC 8.1. At this point we only have GCC-7.4 and GCC-8.3 available, which both don't show an internal compiler error. As an attempt to still resolve this issue, we have pushed commit 153f218. Could you please check if this helps?

    Best regards,

    Klaus!

  2. Maximilian Bremer reporter

    Hi Klaus!

    Thanks for getting back to me. I tried rebuilding blazetest with latest master, and am still getting the same error as above.

    This is really a minor issue for me at the moment, since gcc/7.3 works fine. I just wanted to post for visibility. If there's anything else you'd like me to try, please let me know.

  3. Klaus Iglberger

    Hi Maximilan!

    Unfortunately there is nothing else we can do. Since it is an internal compiler error and the code works for newer versions of GCC we consider the problem as fixed on compiler side. Thanks a lot for creating the issue and pointing out the problem,

    Best regards,

    Klaus!

  4. Log in to comment