Re: x86_64-w64-mingw32-gcc cross compilation fails

2021-09-19 Thread Eli Zaretskii
> 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

2021-09-19 Thread unlvsur unlvsur
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

2021-09-19 Thread Eli Zaretskii
> 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).



x86_64-w64-mingw32-gcc cross compilation fails

2021-09-19 Thread unlvsur unlvsur
mv -f .deps/stat-w32.Tpo .deps/stat-w32.Po
../../../make/lib/access.c:23:10: fatal error: io.h: No such file or directory
   23 | #include 
  |  ^~
compilation terminated.
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'
   52 | #  define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
  |   ^~
../../../make/lib/stat-time.h:69:10: note: in expansion of macro 'STAT_TIMESPEC'
   69 |   return STAT_TIMESPEC (st, st_atim).tv_nsec;
  |  ^
../../../make/lib/stat-time.h: In function 'get_stat_ctime_ns':
../../../make/lib/stat-time.h:52:43: error: invalid use of undefined type 
'const struct _stati64'
   52 | #  define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
  |   ^~
../../../make/lib/stat-time.h:82:10: note: in expansion of macro 'STAT_TIMESPEC'
   82 |   return STAT_TIMESPEC (st, st_ctim).tv_nsec;
  |  ^
../../../make/lib/stat-time.h: In function 'get_stat_mtime_ns':
../../../make/lib/stat-time.h:52:43: error: invalid use of undefined type 
'const struct _stati64'
   52 | #  define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
  |   ^~
../../../make/lib/stat-time.h:95:10: note: in expansion of macro 'STAT_TIMESPEC'
   95 |   return STAT_TIMESPEC (st, st_mtim).tv_nsec;
  |  ^
../../../make/lib/stat-time.h: In function 'get_stat_atime':
../../../make/lib/stat-time.h:52:43: error: invalid use of undefined type 
'const struct _stati64'
   52 | #  define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
  |   ^~
../../../make/lib/stat-time.h:121:10: note: in expansion of macro 
'STAT_TIMESPEC'
  121 |   return STAT_TIMESPEC (st, st_atim);
  |  ^

This is completely wrong tbh.

Sent from Mail for Windows