FS#80054 - [mingw-w64-gcc] internal compiler error: in seh_emit_stackalloc, at config/i386/

Attached to Project: Arch Linux
Opened by Michel (xantares) - Sunday, 22 October 2023, 17:55 GMT
Last edited by Toolybird (Toolybird) - Sunday, 22 October 2023, 20:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I get this error trying to update https://aur.archlinux.org/packages/mingw-w64-onetbb to version 2021.10:

[ 7%] Building CXX object src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj
cd /home/xantares/projects/aur-scripts/mingw-w64-onetbb/src/oneTBB-2021.10.0/build-x86_64-w64-mingw32/src/tbb && /usr/bin/x86_64-w64-mingw32-g++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY @CMakeFiles/tbb.dir/includes_CXX.rsp -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fcf-protection -std=c++11 -flifetime-dse=1 -Wall -Wextra -Wfatal-errors -mrtm -mwaitpkg -fstack-clash-protection -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj -MF CMakeFiles/tbb.dir/arena.cpp.obj.d -o CMakeFiles/tbb.dir/arena.cpp.obj -c /home/xantares/projects/aur-scripts/mingw-w64-onetbb/src/oneTBB-2021.10.0/src/tbb/arena.cpp
during RTL pass: final
In file included from /home/xantares/projects/aur-scripts/mingw-w64-onetbb/src/oneTBB-2021.10.0/src/tbb/arena.cpp:17:
/home/xantares/projects/aur-scripts/mingw-w64-onetbb/src/oneTBB-2021.10.0/src/tbb/task_dispatcher.h: In static member function 'static void tbb::detail::r1::task_dispatcher::local_wait_for_all<true, tbb::detail::r1::outermost_worker_waiter>(tbb::detail::d1::task*, tbb::detail::r1::outermost_worker_waiter&)::<lambda()>::_FUN()':
/home/xantares/projects/aur-scripts/mingw-w64-onetbb/src/oneTBB-2021.10.0/src/tbb/task_dispatcher.h:358:35: internal compiler error: in seh_emit_stackalloc, at config/i386/winnt.cc:1055
358 | do_throw_noexcept([] { throw; });
| ^~~~~~~~~~~~~
0x1b5de97 internal_error(char const*, ...)
???:0
0x6a0bea fancy_abort(char const*, int, char const*)
???:0
0x1162278 i386_pe_seh_unwind_emit(_IO_FILE*, rtx_insn*)
???:0
0xa78c3b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
???: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.archlinux.org/> for instructions.
{standard input}: Assembler messages:
{standard input}: Error: open SEH entry at end of file (missing .seh_endproc)
make[2]: *** [src/tbb/CMakeFiles/tbb.dir/build.make:107: src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj] Error 1

I did not find the exact same bug report, but it seems fixed in 13.2




This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 22 October 2023, 20:54 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Sunday, 22 October 2023, 20:53 GMT
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458

You could possibly work around it by compiling your code without -fstack-clash-protection

I will CC the PM's, but seeing as already fixed upstream and/or will be included in the next pkgver bump...

Loading...