Created attachment 780947 [details] compressed build log not sure why the build throws half a dozen of them? cat *log | grep error: /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index will try to get preprocessed source extracted
Created attachment 780950 [details] output from emerge --info
Thanks! Please try with latest 12 snap too.
I dropped to -j1, just to make life easier in finding the (first) correct compile which fails. I believe its this one: make[3]: Entering directory '/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src' mkdir -p '.deps/' js/src/RegExp.o /usr/bin/x86_64-pc-linux-gnu-g++ -o RegExp.o -c -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/system_wrappers -include /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -fstack-protector-strong -DDEBUG=1 -DWASM_SUPPORTS_HUGE_MEMORY -DJS_CACHEIR_SPEW -DJS_STRUCTURED_SPEW -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include -fPIC -DMOZILLA_CLIENT -include /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -O2 -pipe -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes -MD -MP -MF .deps/RegExp.o.pp /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/builtin/RegExp.cpp In file included from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include/mozilla/Casting.h:12, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/jstypes.h:25, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include/js/TypeDecls.h:24, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc/Marking.h:15, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/vm/RegExpObject.h:16, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/builtin/RegExp.h:10, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/builtin/RegExp.cpp:7: /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h: In member function ‘size_t js::TrailingArray::numElements(Offset, Offset) const’: /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:41: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index 73 | MOZ_ASSERT((end - start) % ElemSize == 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include/mozilla/Assertions.h:445:58: note: in definition of macro ‘MOZ_VALIDATE_ASSERT_CONDITION_TYPE’ 445 | mozilla::detail::AssertionConditionType<decltype(x)>::isValid, \ | ^ /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include/mozilla/Assertions.h:482:31: note: in expansion of macro ‘MOZ_ASSERT_HELPER1’ 482 | #define MOZ_ASSERT_GLUE(a, b) a b | ^ /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include/mozilla/Assertions.h:490:5: note: in expansion of macro ‘MOZ_ASSERT_GLUE’ 490 | MOZ_ASSERT_GLUE( \ | ^~~~~~~~~~~~~~~ /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:5: note: in expansion of macro ‘MOZ_ASSERT’ 73 | MOZ_ASSERT((end - start) % ElemSize == 0); | ^~~~~~~~~~ 0x1b4da77 internal_error(char const*, ...) ???:0 0x6d5541 is_nondependent_constant_expression(tree_node*) ???:0 0x6d60b0 maybe_constant_value(tree_node*, tree_node*, bool) ???:0 0x73e36b fold_for_warn(tree_node*) ???:0 0x8ae392 shorten_compare(unsigned int, tree_node**, tree_node**, tree_node**, tree_code*) ???:0 0x870159 cp_build_binary_op(op_location_t const&, tree_code, tree_node*, tree_node*, int) ???:0 0x6b1d1c build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, int) ???:0 0x866ce7 build_x_binary_op(op_location_t const&, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node*, tree_node**, int) ???:0 0x809317 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ???:0 0x80ceaa instantiate_non_dependent_expr_sfinae(tree_node*, int) ???:0 0x84669f finish_decltype_type(tree_node*, bool, int) ???:0 0x7f3ff9 c_parse_file() ???:0 0x8e18cd c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. make[3]: *** [/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/rules.mk:748: RegExp.o] Error 1 make[3]: Leaving directory '/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src' make[2]: *** [/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/recurse.mk:74: js/src/target-objects] Error 2 make[2]: Leaving directory '/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug' make[1]: *** [/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/recurse.mk:34: compile] Error 2 make[1]: Leaving directory '/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug' make: *** [/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/rules.mk:390: default] Error 2 * ERROR: games-strategy/0ad-0.0.25b_alpha::gentoo failed (compile phase):
Created attachment 780953 [details] compressed preprocessed source I just appended -save-temps to the long list of cflags like this: /usr/bin/x86_64-pc-linux-gnu-g++ -o RegExp.o -c -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/system_wrappers -include /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -fstack-protector-strong -DDEBUG=1 -DWASM_SUPPORTS_HUGE_MEMORY -DJS_CACHEIR_SPEW -DJS_STRUCTURED_SPEW -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include -fPIC -DMOZILLA_CLIENT -include /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -O2 -pipe -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes -save-temps -MD -MP -MF .deps/RegExp.o.pp /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/builtin/RegExp.cpp x86_64-pc-linux-gnu-g++: warning: ‘-pipe’ ignored because ‘-save-temps’ specified <built-in>: fatal error: opening dependency file .deps/RegExp.o.pp: No such file or directory compilation terminated. hope that is correct?
Can you reproduce the failure when trying to build using the preprocessed one? (Try running the same command but w/ .ii and no -save-temps.) Also, see https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide if you haven't already. Ideally should be able to cvise it.
seems its positive: /usr/bin/x86_64-pc-linux-gnu-g++ -o RegExp.o -c -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/system_wrappers -include /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -fstack-protector-strong -DDEBUG=1 -DWASM_SUPPORTS_HUGE_MEMORY -DJS_CACHEIR_SPEW -DJS_STRUCTURED_SPEW -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src -I/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/dist/include -fPIC -DMOZILLA_CLIENT -include /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -O2 -pipe -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes -MD -MP -MF .deps/RegExp.o.pp RegExp.ii In file included from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/vm/JSScript.h:40, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/vm/JSFunction.h:20, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/jit/JSJitFrameIter.h:17, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/vm/Activation.h:18, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/vm/JSContext.h:30, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/vm/RegExpObject.h:21, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/builtin/RegExp.h:10, from /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/builtin/RegExp.cpp:7: /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h: In member function ‘size_t js::TrailingArray::numElements(Offset, Offset) const’: /var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/util/TrailingArray.h:73:99: internal compiler error: unexpected expression ‘ElemSize’ of kind template_parm_index 73 | MOZ_ASSERT((end - start) % ElemSize == 0); | ^ 0x1b4da77 internal_error(char const*, ...) ???:0 0x6d5541 is_nondependent_constant_expression(tree_node*) ???:0 0x6d60b0 maybe_constant_value(tree_node*, tree_node*, bool) ???:0 0x73e36b fold_for_warn(tree_node*) ???:0 0x8ae392 shorten_compare(unsigned int, tree_node**, tree_node**, tree_node**, tree_code*) ???:0 0x870159 cp_build_binary_op(op_location_t const&, tree_code, tree_node*, tree_node*, int) ???:0 0x6b1d1c build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, int) ???:0 0x866ce7 build_x_binary_op(op_location_t const&, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node*, tree_node**, int) ???:0 0x809317 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ???:0 0x80ceaa instantiate_non_dependent_expr_sfinae(tree_node*, int) ???:0 0x84669f finish_decltype_type(tree_node*, bool, int) ???:0 0x7f3ff9 c_parse_file() ???:0 0x8e18cd c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. I can try to go the cvise path from the wiki page, not sure I'm going to make it to the end
output of gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12.1.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/g++-v12 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/12.1.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 12.1.0 p5' --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.1.0 (Gentoo 12.1.0 p5)
confirmed with gcc-12.1.1 (gcc-12-20220521) , as well with -O1/-O2/-O3 you ok if I forward this to upstream bug tracker? cvise is too difficult for me, as a non-dev person :)
(In reply to tt_1 from comment #8) > confirmed with gcc-12.1.1 (gcc-12-20220521) , as well with -O1/-O2/-O3 > > you ok if I forward this to upstream bug tracker? > > cvise is too difficult for me, as a non-dev person :) Yes, please do, and I'll try to reduce if I get a chance too. Depending on if I get time to reduce it tonight, I might report it upstream, and add a link here. If I don't, please go ahead and do it yourself & link here. Thanks a lot!
https://gcc.gnu.org/PR105756
Thank you very much for filling the upstream bug Sergej, I can confirm that reverting the fix from PR104823 fixes the ICE this bug is filled against.
Should be fixed in 12.1.1_p20220604.
(In reply to Sam James from comment #12) > Should be fixed in 12.1.1_p20220604. Sorry, no, it's only on master.
*** Bug 850586 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=157706891234f2c72c5b62f3bd7f63b75298a71d commit 157706891234f2c72c5b62f3bd7f63b75298a71d Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-10 11:44:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-11 00:44:12 +0000 12.1.0: backport ICE fix for cxx_eval_constant_expression Bug: https://bugs.gentoo.org/847601 Signed-off-by: Sam James <sam@gentoo.org> ...6_12.1.0-ICE-cxx_eval_constant_expression.patch | 100 +++++++++++++++++++++ 12.1.0/gentoo/README.history | 3 + 2 files changed, 103 insertions(+)
sam, does the patch work for you with =sys-devel/gcc-12.1.0? for me it doesn't
(In reply to tt_1 from comment #16) > sam, does the patch work for you with =sys-devel/gcc-12.1.0? > > for me it doesn't Not tried it yet, just added to gcc-patches repo for easier testing (did not make a new patchset yet). Checked it applies but not tried a fresh build yet, as snapshot will be tonight, so may as well wait until then. What happens for you? YOu still get the ICE?
yes, I do still get the very same ICE with gcc-12.1.0 plus the upstream patch > 75_all_all_PR105756_12.1.0-ICE-cxx_eval_constant_expression.patch so I don't know whats going round there? can you maybe name a few gentoo packages that you get the ICE as well? you mentioned there are a few in the upstream bug - so I can double check on them.
(In reply to tt_1 from comment #18) > yes, I do still get the very same ICE with gcc-12.1.0 plus the upstream patch > > > 75_all_all_PR105756_12.1.0-ICE-cxx_eval_constant_expression.patch > > so I don't know whats going round there? > > can you maybe name a few gentoo packages that you get the ICE as well? you > mentioned there are a few in the upstream bug - so I can double check on > them. It was a different ICE there (I had something non v8 which hit the same thing as v8). I'll try build 0ad later.
(In reply to Sam James from comment #19) > (In reply to tt_1 from comment #18) > > yes, I do still get the very same ICE with gcc-12.1.0 plus the upstream patch > > > > > 75_all_all_PR105756_12.1.0-ICE-cxx_eval_constant_expression.patch > > > > so I don't know whats going round there? > > > > can you maybe name a few gentoo packages that you get the ICE as well? you > > mentioned there are a few in the upstream bug - so I can double check on > > them. > > It was a different ICE there (I had something non v8 which hit the same > thing as v8). I'll try build 0ad later. Confirmed - still ICEs w/ official backport (https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=47ea22015c90df31eae763c6c9e3e4b1fb801c3a).
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=750000d5c40334ae801fba6050b3027a8d86627e commit 750000d5c40334ae801fba6050b3027a8d86627e Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-12 00:03:38 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-12 00:03:38 +0000 12.1.0: drop obsolete patch It's in the next snapshot. Bug: https://bugs.gentoo.org/847601 Signed-off-by: Sam James <sam@gentoo.org> ...6_12.1.0-ICE-cxx_eval_constant_expression.patch | 100 --------------------- 12.1.0/gentoo/README.history | 3 - 2 files changed, 103 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca7148ee2dae3ec7a8b8b119f58e398bbe9bbb0c commit ca7148ee2dae3ec7a8b8b119f58e398bbe9bbb0c Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-11 23:53:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-12 00:04:51 +0000 sys-devel/gcc: add 12.1.1_p20220611 But doesn't fix the 0ad ICE. Bug: https://bugs.gentoo.org/847601 Closes: https://bugs.gentoo.org/849791 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-12.1.1_p20220611.ebuild | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+)
Fixed in 12.1.1_p20220625.