bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eli Zaretskii
Subject: Re: x86_64-w64-mingw32-gcc cross compilation fails
Date: Sun, 19 Sep 2021 18:26:30 +0300

> From: unlvsur unlvsur <unlvsur@live.com>
> Date: Sun, 19 Sep 2021 08:09:39 +0000
> 
> ../../../make/lib/access.c:23:10: fatal error: io.h: No such file or directory
> 
>    23 | #include <io.h>
> 
>       |          ^~~~~~
> 
> 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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]