Hi,

2014/10/24 Fri 12:48:09 UTC+9 Marslo Jiao wrote:
> Hi Ken,
> 
> On Monday, 20 October 2014 19:33:11 UTC+8, Ken Takata  wrote:
> > Hi Marslo,
> > I think there's nothing special to make a patch for Cygwin.
> > (Write a patch, do test, post the patch to vim_dev.)
> > This page might be a help? http://www.vim.org/develop.php
> > 
> > Regards,
> > Ken Takata
> 
> Sorry for reply late.
> I've tried patch fix-7.4.476-cygwin.patch to V7-4-477 (*patch -p1 < 
> ../../fix-7.4.476-cygwin.patch*), and the error still shows in Cygwin:
> 
>   $ make -B -f Make_cyg.mak PYTHON=/cygdrive/c/Marslo/MyProgramFiles/Python27 
> DYNAMIC_PYTHON=yes PYTHON_VER=27 
> PYTHON3=/cygdrive/c/Marslo/MyProgramFiles/Python34 DYNAMIC_PYTHON3=yes 
> PYTHON3_VER=34 FEATURES=huge IME=yes GIME=yes MBYTE=yes CSCOPE=yes 
> USERNAME=Marslo.Jiao USERDOMAIN=China GUI=yes
>   ...
>   i686-pc-mingw32-gcc -c -O3 -fomit-frame-pointer -freg-struct-return 
> -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_huge -DWINVER=0x0500 
> -D_WIN32_WINNT=0x0500 -DFEAT_PYTHON -DDYNAMIC_PYTHON 
> -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 
> -DDYNAMIC_PYTHON3_DLL=\"python34.dll\" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV 
> -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE 
> -DFEAT_NETBEANS_INTG -DFEAT_XPM_W32 -DFEAT_GUI_W32 -DFEAT_CLIPBOARD 
> -march=i386 -Iproto -s -I/include xpm_w32.c -o gobj/xpm_w32.o

Hmm, strange.
If my patch is properly applied, the last part of the gcc command line:

  -s -I/include xpm_w32.c -o gobj/xpm_w32.o

should be:

  -s -Ixpm/x86/include -Ixpm/x86/../include xpm_w32.c -o gobj/xpm_w32.o


I verified with the following steps:

$ cd vim/src
$ hg update -r v7-4-477
$ patch -p2 < fix-7.4.476-cygwin.patch
patching file Make_cyg.mak
$ hg diff  # Check if the patch is properly applied.
$ make -B -f Make_cyg.mak PYTHON=/cygdrive/c/Python27 DYNAMIC_PYTHON=yes 
PYTHON_VER=27 PYTHON3=/cygdrive/c/Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34 
FEATURES=huge IME=yes GIME=yes MBYTE=yes CSCOPE=yes GUI=yes
 ...
i686-pc-mingw32-gcc -c -O3 -fomit-frame-pointer -freg-struct-return 
-fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_huge -DWINVER=0x0500 
-D_WIN32_WINNT=0x0500 -DFEAT_PYTHON -DDYNAMIC_PYTHON 
-DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 
-DDYNAMIC_PYTHON3_DLL=\"python34.dll\" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV 
-DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG 
-DFEAT_XPM_W32 -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s 
-Ixpm/x86/include -Ixpm/x86/../include xpm_w32.c -o gobj/xpm_w32.o

I didn't see any errors.

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.

Raspunde prin e-mail lui