Hi,

2017/2/14 Tue 22:58:45 UTC+9 Steve Hall wrote:
> On Mon, Feb 13, 2017 at 6:15 PM, Ken Takata <[email protected]> wrote:
> > 
> > Are you really using i686-pc-mingw32-gcc for x64 build?
> 
> 
> I'm was simply using "make -f Make_cyg.mak", that was the default. 

Hmm, did you set 'ARCH=x86-64' manually?
The command line you pasted has '-march=x86-64'. This is for 64-bit build.


> > It is a compiler for x86 build. You should use
> > x86_64-w64-mingw32-gcc for x64 build. Set
> > 'CROSS_COMPILE=x86_64-w64-mingw32-' to use it. Additionally, you
> > don't need to set ARCH=x86-64 manually after v7.4.2034. Normally,
> > ARCH will be automatically detected after that.
> 
> 
> Looks like Make_cyg.mak forces w32. So I referenced Make_cyg_ming.mak
> instead with your CROSS_COMPILE set and all is good.

You can use the following command to overwrite the CROSS_COMPILE setting:

  make -f Make_cyg.mak CROSS_COMPILE=x86_64-w64-mingw32-


BTW, Cygwin has three MinGW cross compiler packages.

1. i686-pc-mingw32-gcc: The original version of 32-bit MinGW.
2. i686-w64-mingw32-gcc: 32-bit version of MinGW-w64.
3. x86_64-w64-mingw32-gcc: 64-bit version of MinGW-w64.

When I refactored Make_cyg.mak in v7.4.496, I set #1 as default, but it seems
that #1 is almost dead.  I haven't checked, but maybe v8.0.219 or later cannot
be compiled by #1.  I think #2 should be default now.

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