On Tue, Feb 09, 2021 at 07:47:00AM +0100, Richard Biener via Gcc-patches wrote: > On February 8, 2021 10:44:26 PM GMT+01:00, Mikael Pettersson via Gcc-patches > <gcc-patches@gcc.gnu.org> wrote: > >PR98860 is a gcc-11 regression where bootstrap fails on Windows since > >the switch to enable DWARF5 by default. The symptoms are that > >executables generated by the stage1 compiler fail to run with "Exec > >format error", which confuses subsequent configure steps and causes > >hard errors. This happens even with the very latest binutils master. > > > >Fixed by updating SUBTARGET_OVERRIDE_OPTIONS to set dwarf_version to 4 > >unless the user explicitly requested another version. I see some other > >targets did the same. > > > >Tested on Cygwin64 and mingw-w64. > > > >Ok for master? > > It might be better to expose the default via configure (I've heard desires to > control that elsewhere).
But also it would be better to see some analysis what exactly and why doesn't work. What program emits that Exec format error message and why. Jakub