https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460
Costas Argyris <costas.argyris at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #54838|0 |1 is obsolete| | --- Comment #29 from Costas Argyris <costas.argyris at gmail dot com> --- Created attachment 54841 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54841&action=edit New patch including -nostdlib next to -r Tested this in cross-compile from Debian (building the cross-compiler itself as well) and native-compile from Windows in MSYS2. Didn't try building with earlier gcc version myself because OP reported that the fix worked for them using gcc 7.3