On my side, I got the issue using: bash ../../src/mingw-w64-crt/configure --prefix=/it/sbx/wave-ms/x86_64-windows64/mingw-w64/pkg --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-wildcard CFLAGS=-Wno-expansion-to-defined make -j 1
the configure summary: configure: ------------------------------------------------------------------------ configure: mingw-w64-runtime 4.0b configure: ------------------------------------------------------------------------ configure: configure: configure: Configuration Options Summary: configure: configure: WinARM32 runtime.....: no configure: WinARM64 runtime.....: no configure: Win32 runtime........: yes configure: Win64 runtime........: yes configure: C Warning Flags......: -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes configure: C++ Warning Flags....: configure: Common Warning Flags.: -Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wno-array-bounds configure: Default msvcrt.......: ucrt configure: Control Flow Guard...: no configure: configure: DFP printf...........: no configure: 128-bit printf.......: no configure: Custom printf........: no configure: On Thu, May 21, 2026 at 4:58 PM LIU Hao <[email protected]> wrote: > > 在 2026-5-21 22:23, Liaiss Merzougue 写道: > > Hi LIU Hao, > > > > The \r characters do not come from the .def.in <http://def.in> files — I > > checked and they > > use LF line endings. The issue is specific to building in a Cygwin > > environment, where the preprocessor emits \r characters in its output. > > I am still unable to reproduce this issue on a freshly installed Cygwin. > Using these commands to build > the CRT, lib64/ws2_32.def is created with LF line endings: > > /cygdrive/d/lh_mouse/SourceForge/mingw-w64/mingw-w64-crt/configure \ > --build=x86_64-pc-cygwin --host=x86_64-w64-mingw32 \ > --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw \ > --enable-lib64 --disable-lib32 \ > --disable-dependency-tracking > make -j32 > > > > > -- > Best regards, > LIU Hao _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
