Hi,
2018/10/15 Mon 8:29:46 UTC+9 Ken Takata wrote:
> Hi all,
>
> 2018/10/15 Mon 7:53:19 UTC+9 Cesar wrote:
> > On 14/10/2018 02:48 p.m., Bram Moolenaar wrote:
> > >
> > > Cesar Romani wrote:
> > >>
> > >> Compiling on Windows 7 with MinGW, I get:
> > >>
> > >> --------------------
> > >> [...]
> > >> gcc -c -Iproto -DWIN32 [...] auto/if_perl.c -o gobjZi686/if_perl.o
> > >> if_perl.xs:38:10: fatal error: vim.h: No such file or directory
> > >> #include "vim.h"
> > >> ^~~~~~~
> > >> compilation terminated.
> > >> make: *** [gobjZi686/if_perl.o] Error 1
> > >> Error by compiling gvim.exe
> > >> --------------------
> > >
> > > Does it help to add -Iauto to the build command?
> > >
> >
> > With '-I auto' I get the same error, but adding -I., as Heptite said,
> > fixes it.
>
> Sorry for that.
> I also confirmed that the following patch fixes it:
>
> diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
> --- a/src/Make_cyg_ming.mak
> +++ b/src/Make_cyg_ming.mak
> @@ -1060,7 +1060,7 @@ auto/if_perl.c: if_perl.xs typemap
> $(PERLTYPEMAP) if_perl.xs -output $@
>
> $(OUTDIR)/if_perl.o: auto/if_perl.c $(INCL)
> - $(CC) -c $(CFLAGS) auto/if_perl.c -o $(OUTDIR)/if_perl.o
> + $(CC) -c $(CFLAGS) -I. auto/if_perl.c -o $(OUTDIR)/if_perl.o
>
>
> $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
>
>
> I have forgotten that our CI doesn't test MinGW with Perl.
Is it better to remove -I. from CFLAGS in Make_mvc.mak and add it only where
needed like Make_cyg_ming.mak?
--- a/src/Make_mvc.mak
+++ b/src/Make_mvc.mak
@@ -508,7 +508,7 @@ WINVER = 0x0501
#VIMRCLOC = somewhere
#VIMRUNTIMEDIR = somewhere
-CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
+CFLAGS = -c /W3 /nologo $(CVARS) -Iproto -DHAVE_PATHDEF -DWIN32 \
$(CSCOPE_DEFS) $(TERM_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \
$(NBDEBUG_DEFS) $(XPM_DEFS) \
$(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
@@ -1432,7 +1432,7 @@ auto/if_perl.c : if_perl.xs typemap
-typemap typemap if_perl.xs -output $@
$(OUTDIR)/if_perl.obj: $(OUTDIR) auto/if_perl.c $(INCL)
- $(CC) $(CFLAGS_OUTDIR) $(PERL_INC) auto/if_perl.c
+ $(CC) $(CFLAGS_OUTDIR) $(PERL_INC) -I. auto/if_perl.c
$(OUTDIR)/if_perlsfio.obj: $(OUTDIR) if_perlsfio.c $(INCL)
$(CC) $(CFLAGS_OUTDIR) $(PERL_INC) if_perlsfio.c
@@ -1506,7 +1506,7 @@ lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).l
$(OUTDIR)/os_w32exe.obj: $(OUTDIR) os_w32exe.c $(INCL)
$(OUTDIR)/pathdef.obj: $(OUTDIR) $(PATHDEF_SRC) $(INCL)
- $(CC) $(CFLAGS_OUTDIR) $(PATHDEF_SRC)
+ $(CC) $(CFLAGS_OUTDIR) -I. $(PATHDEF_SRC)
$(OUTDIR)/popupmnu.obj: $(OUTDIR) popupmnu.c $(INCL)
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 [email protected].
For more options, visit https://groups.google.com/d/optout.