Re: x86_64-w64-mingw32-gcc cross compilation fails
> From: unlvsur unlvsur > CC: "bug-make@gnu.org" > Date: Sun, 19 Sep 2021 15:35:29 + > > this is ridiculous. > > It is nowhere hard to support cross compiler tbh. I'm sure that patches to support cross-compilation will be very welcome, thanks in advance. This would require some modifications to the configure script, I think, because it currently doesn't seem to DTRT for a MinGW build.
Re: x86_64-w64-mingw32-gcc cross compilation fails
this is ridiculous. It is nowhere hard to support cross compiler tbh. Get Outlook for Android<https://aka.ms/AAb9ysg> From: Eli Zaretskii Sent: Sunday, September 19, 2021 11:26:30 AM To: unlvsur unlvsur Cc: bug-make@gnu.org Subject: Re: x86_64-w64-mingw32-gcc cross compilation fails > From: unlvsur unlvsur > Date: Sun, 19 Sep 2021 08:09:39 + > > ../../../make/lib/access.c:23:10: fatal error: io.h: No such file or directory > >23 | #include > > | ^~ > > compilation terminated. How so? io.h is a standard header in MinGW, how did it happen that you don't have it? > make[3]: *** [Makefile:1157: access.o] Error 1 > > make[3]: *** Waiting for unfinished jobs > > In file included from ../../../make/lib/stat-time.c:21: > > ../../../make/lib/stat-time.h: In function 'get_stat_atime_ns': > > ../../../make/lib/stat-time.h:52:43: error: invalid use of undefined type > 'const struct _stati64' This file isn't supposed to be compiled into the MinGW port of GNU Make. I suspect that you use the Posix configure script to build the port. That is not supported. You should use the build_w32.bat batch file (which means you cannot cross-compile, only build it natively on MS-Windows).
Re: x86_64-w64-mingw32-gcc cross compilation fails
> From: unlvsur unlvsur > Date: Sun, 19 Sep 2021 08:09:39 + > > ../../../make/lib/access.c:23:10: fatal error: io.h: No such file or directory > >23 | #include > > | ^~ > > compilation terminated. How so? io.h is a standard header in MinGW, how did it happen that you don't have it? > make[3]: *** [Makefile:1157: access.o] Error 1 > > make[3]: *** Waiting for unfinished jobs > > In file included from ../../../make/lib/stat-time.c:21: > > ../../../make/lib/stat-time.h: In function 'get_stat_atime_ns': > > ../../../make/lib/stat-time.h:52:43: error: invalid use of undefined type > 'const struct _stati64' This file isn't supposed to be compiled into the MinGW port of GNU Make. I suspect that you use the Posix configure script to build the port. That is not supported. You should use the build_w32.bat batch file (which means you cannot cross-compile, only build it natively on MS-Windows).