Re: Compilation of vim 8 with mingw on windows fails: diff.c:891:12: error: storage size of 'st' isn't known

2016-09-23 Fir de Conversatie René Nyffenegger

> 
> Isn't your MinGW a bit old? Which version from which site do you use?
> Newer MinGW should have _stat64.
> I recommend MinGW-w64.

That's it. I recently installed a new MinGW version, but failed to update the 
PATH environment variable, so that it still used the old MinGW environment.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Compilation of vim 8 with mingw on windows fails: diff.c:891:12: error: storage size of 'st' isn't known

2016-09-22 Fir de Conversatie Ken Takata
Hi,

2016/9/22 Thu 20:30:19 UTC+9 René Nyffenegger wrote:
> > 
> > Sure, you can modify vim.h and change size_T from _stat64 to stat and 
> > comment HAVE_STAT64,
> > 
> > this works for me
> > 
> > index a787575..308c9cd 100644
> > --- a/src/vim.h
> > +++ b/src/vim.h
> > @@ -2093,8 +2093,8 @@ typedef int VimClipboard; /* This is required for the 
> > prototypes. */
> > 
> >  /* Use 64-bit stat structure if available. */
> >  #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
> > -# define HAVE_STAT64
> > -typedef struct _stat64 stat_T;
> > +//# define HAVE_STAT64
> > +typedef struct stat stat_T;
> >  #else
> >  typedef struct stat stat_T;
> >  #endif
> 
> 
> Thank you very much, it worked.
> 
> I am wondering if something should be changed in the makefile or source code 
> so that other people compiling vim with mingw don't run into the same problem.

Isn't your MinGW a bit old? Which version from which site do you use?
Newer MinGW should have _stat64.
I recommend MinGW-w64.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Compilation of vim 8 with mingw on windows fails: diff.c:891:12: error: storage size of 'st' isn't known

2016-09-22 Fir de Conversatie René Nyffenegger
> 
> Sure, you can modify vim.h and change size_T from _stat64 to stat and comment 
> HAVE_STAT64,
> 
> this works for me
> 
> index a787575..308c9cd 100644
> --- a/src/vim.h
> +++ b/src/vim.h
> @@ -2093,8 +2093,8 @@ typedef int VimClipboard; /* This is required for the 
> prototypes. */
> 
>  /* Use 64-bit stat structure if available. */
>  #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
> -# define HAVE_STAT64
> -typedef struct _stat64 stat_T;
> +//# define HAVE_STAT64
> +typedef struct stat stat_T;
>  #else
>  typedef struct stat stat_T;
>  #endif


Thank you very much, it worked.

I am wondering if something should be changed in the makefile or source code so 
that other people compiling vim with mingw don't run into the same problem. 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Compilation of vim 8 with mingw on windows fails: diff.c:891:12: error: storage size of 'st' isn't known

2016-09-22 Fir de Conversatie skywind3000
Nyffenegger wrote:
> I am trying to compile vim 8 on Windows with mingw.
> 
> These are the steps I executed:
> 
> git clone https://github.com/vim/vim.git
> cd vim\src
> \mingw\bin\mingw32-make.exe -f Make_ming.mak ARCH=i686
> 
> The compilation of diff.c failes with the following error message:diff.c: In 
> function 'ex_diffpatch':
> diff.c:891:12: error: storage size of 'st' isn't known
> diff.c:891:12: warning: unused variable 'st' [-Wunused-variable]
> mingw32-make: *** [gobji686/diff.o] Error 1
> 
> Is there something I can do about it?
> 
> Thanks for any pointer.

Sure, you can modify vim.h and change size_T from _stat64 to stat and comment 
HAVE_STAT64,

this works for me

index a787575..308c9cd 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2093,8 +2093,8 @@ typedef int VimClipboard; /* This is required for the 
prototypes. */

 /* Use 64-bit stat structure if available. */
 #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
-# define HAVE_STAT64
-typedef struct _stat64 stat_T;
+//# define HAVE_STAT64
+typedef struct stat stat_T;
 #else
 typedef struct stat stat_T;
 #endif


-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Compilation of vim 8 with mingw on windows fails: diff.c:891:12: error: storage size of 'st' isn't known

2016-09-22 Fir de Conversatie René Nyffenegger
I am trying to compile vim 8 on Windows with mingw.

These are the steps I executed:

git clone https://github.com/vim/vim.git
cd vim\src
\mingw\bin\mingw32-make.exe -f Make_ming.mak ARCH=i686

The compilation of diff.c failes with the following error message:diff.c: In 
function 'ex_diffpatch':
diff.c:891:12: error: storage size of 'st' isn't known
diff.c:891:12: warning: unused variable 'st' [-Wunused-variable]
mingw32-make: *** [gobji686/diff.o] Error 1

Is there something I can do about it?

Thanks for any pointer.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.