Cannot build any more using Cygwin's MinGW

24 views
Skip to first unread message

Christian J. Robinson

unread,
Jun 14, 2022, 3:02:24 PM6/14/22
to vim_dev, bu...@vim.org
In file included from vim.h:279,
                 from alloc.c:14:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/alloc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from vim.h:279,
                 from arabic.c:31:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/arabic.o] Error 1
In file included from vim.h:279,
                 from arglist.c:14:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/arglist.o] Error 1
In file included from vim.h:279,
                 from autocmd.c:14:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/autocmd.o] Error 1
In file included from vim.h:279,
                 from beval.c:11:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1294: gobjx86-64/beval.o] Error 1
In file included from vim.h:279,
                 from blob.c:14:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/blob.o] Error 1
In file included from vim.h:279,
                 from blowfish.c:22:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/blowfish.o] Error 1
In file included from vim.h:279,
                 from buffer.c:28:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/buffer.o] Error 1
In file included from vim.h:279,
                 from bufwrite.c:14:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/bufwrite.o] Error 1
In file included from vim.h:279,
                 from change.c:14:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/change.o] Error 1
In file included from vim.h:279,
                 from charset.c:10:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/charset.o] Error 1
In file included from vim.h:279,
                 from cindent.c:18:
os_win32.h:16:11: fatal error: direct.h: No such file or directory
   16 | # include <direct.h>            // for _mkdir()
      |           ^~~~~~~~~~
compilation terminated.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/cindent.o] Error 1

--
Christian J. Robinson <hep...@gmail.com>

Yegappan Lakshmanan

unread,
Jun 14, 2022, 3:07:28 PM6/14/22
to vim_dev, bu...@vim.org
Hi,

Are you setting the "CC" or "CXX" environment variables? Can you describe the
steps (and the environment) you are using to build Vim using MingW?

- Yegappan

Christian J. Robinson

unread,
Jun 14, 2022, 3:24:07 PM6/14/22
to vim_dev, bu...@vim.org
Command line:
make -f Make_ming.mak -j16

Attached are my Make_ming.mak and Make_cyg_ming.mak

I just noticed that for some reason it's just using "cc" instead of "x86_64-w64-mingw32-gcc" like it should.

On Tue, Jun 14, 2022 at 1:07 PM Yegappan Lakshmanan <yega...@gmail.com> wrote:
Hi,

Are you setting the "CC" or "CXX" environment variables?  Can you describe the
steps (and the environment) you are using to build Vim using MingW?
 
Make_ming.mak
Make_cyg_ming.mak

Christian J. Robinson

unread,
Jun 14, 2022, 3:27:16 PM6/14/22
to vim_dev, bu...@vim.org
It works if I use this command-line:
CC='' CXX='' make -f Make_ming.mak -j16

Bram Moolenaar

unread,
Jun 16, 2022, 6:42:55 AM6/16/22
to vim...@googlegroups.com, Christian J. Robinson, bu...@vim.org

Christian J. Robinson wrote:

> It works if I use this command-line:
> CC='' CXX='' make -f Make_ming.mak -j16

This is fixed with patch 8.2.5101.

--
God made machine language; all the rest is the work of man.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages