On Tuesday, 15 March 2016 21:01:51 UTC-7, Ken Takata wrote:
> Hi,
>
> 2016/3/16 Wed 3:16:20 UTC+9 Marslo Jiao wrote:
> > On Tuesday, 15 March 2016 10:49:07 UTC-7, Ken Takata wrote:
> > > Hi,
> > >
> > > 2016/3/16 Wed 2:35:06 UTC+9 Marslo Jiao wrote:
> > > > On Thursday, 18 February 2016 13:58:47 UTC-8, Bram Moolenaar wrote:
> > > > > Patch 7.4.1353
> > > > > Problem: Test_connect_waittime is skipped for MS-Windows.
> > > > > Solution: Add the test back, it works now.
> > > > > Files: src/testdir/test_channel.vim
> > > > >
> > > > >
> > > > > *** ../vim-7.4.1352/src/testdir/test_channel.vim 2016-02-18
> > > > > 22:23:21.173660406 +0100
> > > > > --- src/testdir/test_channel.vim 2016-02-18 22:55:42.037193693
> > > > > +0100
> > > > > ***************
> > > > > *** 268,277 ****
> > > > >
> > > > > " Test that trying to connect to a non-existing port fails quickly.
> > > > > func Test_connect_waittime()
> > > > > - if !has('unix')
> > > > > - " TODO: Make this work again for MS-Windows.
> > > > > - return
> > > > > - endif
> > > > > call ch_log('Test_connect_waittime()')
> > > > > let start = reltime()
> > > > > let handle = ch_open('localhost:9876', s:chopt)
> > > > > --- 268,273 ----
> > > > > *** ../vim-7.4.1352/src/version.c 2016-02-18 22:25:37.468230944
> > > > > +0100
> > > > > --- src/version.c 2016-02-18 22:57:51.127835583 +0100
> > > > > ***************
> > > > > *** 749,750 ****
> > > > > --- 749,752 ----
> > > > > { /* Add new patch number below this line */
> > > > > + /**/
> > > > > + 1353,
> > > > > /**/
> > > > >
> > > > > --
> > > > > FATHER: One day, lad, all this will be yours ...
> > > > > PRINCE: What - the curtains?
> > > > > "Monty Python and the Holy Grail" PYTHON (MONTY)
> > > > > PICTURES LTD
> > > > >
> > > > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
> > > > > \\\
> > > > > /// sponsor Vim, vote for features --
> > > > > http://www.Vim.org/sponsor/ \\\
> > > > > \\\ an exciting new programming language -- http://www.Zimbu.org
> > > > > ///
> > > > > \\\ help me help AIDS victims -- http://ICCF-Holland.org
> > > > > ///
> > > >
> > > > Since 7.4.1306, vim.exe and gvim.exe cannot be built. Do you know why?
> > > > and is this my environment error?
> > > >
> > > > ----------
> > > > Here is my build command:
> > > > > make -B -f Make_cyg.mak
> > > > PYTHON=/cygdrive/c/Marslo/MyProgramFiles/Python27 DYNAMIC_PYTHON=yes
> > > > PYTHON_VER=27 PYTHON3=/cygdrive/c/Marslo/MyProgramFiles/Python35
> > > > DYNAMIC_PYTHON3=yes PYTHON3_VER=35 FEATURES=huge IME=yes GIME=yes
> > > > MBYTE=yes CSCOPE=yes USERNAME=Marslo.Jiao USERDOMAIN=China GUI=yes
> > > > > make -B -f Make_cyg.mak
> > > > PYTHON=/cygdrive/c/Marslo/MyProgramFiles/Python27 DYNAMIC_PYTHON=yes
> > > > PYTHON_VER=27 PYTHON3=/cygdrive/c/Marslo/MyProgramFiles/Python35
> > > > DYNAMIC_PYTHON3=yes PYTHON3_VER=35 FEATURES=huge IME=yes GIME=yes
> > > > MBYTE=yes CSCOPE=yes USERNAME=Marslo.Jiao USERDOMAIN=China GUI=no
> > > >
> > > > -----------
> > > > And this is the error log:
> > > > >>> for vim.exe: obji386/os_win32.o:os_win32.c:(.text+0x64df):
> > > > >>> undefined reference to `AttachConsole'
> > > > collect2: error: ld returned 1 exit status
> > > > Make_cyg_ming.mak:806: recipe for target 'vim.exe' failed
> > > > make: *** [vim.exe] Error 1
> > > >
> > > > >>> for gvim.exe:
> > > > channel.c: In function ‘channel_open’:
> > > > channel.c:426:39: error: ‘EINPROGRESS’ undeclared (first use in this
> > > > function)
> > > > channel.c:426:39: note: each undeclared identifier is reported only
> > > > once for each function it appears in
> > > > Make_cyg_ming.mak:890: recipe for target 'gobji386/channel.o' failed
> > > > make: *** [gobji386/channel.o] Error 1
> > >
> > > Does the error still occur after 7.4.1354?
> > > Some errors with old MinGW should have been fixed with 7.4.1354.
> > > Or I suggest you to use MinGW-w64. (Cygwin also has MinGW-w64 packages.)
> > >
> > > Regards,
> > > Ken Takata
> >
> > Okay.. I didn't find mingw-w64 in my cygwin setup.exe. I suppose it because
> > of my cygwin is for 64bit (setup-x86_64.exe)?
>
> You may find mingw64-i686-gcc-g++ (for 32-bit target) or
> mingw64-x86_64-gcc-g++
> (for 64-bit target).
>
> You need to set CROSS_COMPILE and ARCH variables properly when you use
> MinGW-w64.
> Please see the lines 40-47 in src/Make_cyg.mak for detail.
>
> E.g. (64-bit target):
> make -f Make_cyg.mak CROSS_COMPILE=x86_64-w64-mingw32- ARCH=x86-64 ...
>
>
> BTW, I have built both 7.4.1354 and 7.4.1579 successfully with MinGW 4.7.3
> (the mingw-gcc-g++ package in Cygwin) with minimal setting:
>
> make -f Make_cyg.mak
>
> Something might be wrong in your environment or setting...
>
>
> Regards,
> Ken Takata
Hi Ken,
Thank you very much! Looks like the "CROSS_COMPILE=x86_64-w64-mingw32-
ARCH=x86-64" parameter works for me!!
Really appreciate you can help me!!!!
marslo
--
--
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.