windows 10, cygwin, and compiling vim

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

windows 10, cygwin, and compiling vim

Charles E Campbell Jr
Hello:

I've been working on getting a vim compiled under windows10+cygwin.
Hasn't worked too well yet.  Anybody out there have some ideas on how to
compile a runnable vim under windows10+cygwin?

* configure --with-features=huge
   That seems to work fine

* cd src; make  (note that this is done under cygwin, so its cygwin's
make and cygwin's gcc)
   I got about 20 warnings: all saying something like "visibility
attribute not supported in this configuration: ignored
   This warning affects pen.c, termscreen.c, unicode.c, state.c, vterm.c

   As a complete example of such a warning:
   libvterm/src/pen.h: In function 'vterm_state_newpen':
   libvterm/src/pen.c:164:1: warning: visibility attribute not supported
in this configuration; ignored [-Wattributes]

* otherwise, the compile completes without other warnings.  When I try
to run it: nothing apparently happens.

I'd like to get a cygwin-based vim compiled and running; I'll just go
ahead and use the gvim from www.vim.org; I need both to insure that
netrw is working properly under Windows.

Thank you,
Chip Campbell

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: windows 10, cygwin, and compiling vim

Christian Brabandt

On Fr, 29 Mär 2019, Charles E Campbell wrote:

> Hello:
>
> I've been working on getting a vim compiled under windows10+cygwin. Hasn't
> worked too well yet.  Anybody out there have some ideas on how to compile a
> runnable vim under windows10+cygwin?
>
> * configure --with-features=huge
>   That seems to work fine
>
> * cd src; make  (note that this is done under cygwin, so its cygwin's make
> and cygwin's gcc)
>   I got about 20 warnings: all saying something like "visibility attribute
> not supported in this configuration: ignored
>   This warning affects pen.c, termscreen.c, unicode.c, state.c, vterm.c
>
>   As a complete example of such a warning:
>   libvterm/src/pen.h: In function 'vterm_state_newpen':
>   libvterm/src/pen.c:164:1: warning: visibility attribute not supported in
> this configuration; ignored [-Wattributes]

Hm, we disabled this warning with 8.0.1627 for mingw, not sure what test
would be needed. What gcc version is this? If this is cygwin specific, I
guess we need to add a check for `defined(__CYGWIN__)`

index 2ef358ce9..095ba7123 100644
--- a/src/libvterm/src/vterm_internal.h
+++ b/src/libvterm/src/vterm_internal.h
@@ -5,7 +5,7 @@

 #include <stdarg.h>

-#if defined(__GNUC__) && !defined(__MINGW32__)
+#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
 # define INTERNAL __attribute__((visibility("internal")))
 # define UNUSED __attribute__((unused))
 #else


> * otherwise, the compile completes without other warnings.  When I try to
> run it: nothing apparently happens.

Is this gvim or vim? did you try to run the cygwin console vim in a
standard cmd terminal? I think this is not supported.

> I'd like to get a cygwin-based vim compiled and running; I'll just go ahead
> and use the gvim from www.vim.org; I need both to insure that netrw is
> working properly under Windows.

You can always use the vim from the vim/vim-win32-installer repository

Best,
Christian
--
Wußten Sie schon...
... daß der Walfisch, das größte lebende Säugetier, alle anderen
    Säugetiere an Größe übertrifft?

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: windows 10, cygwin, and compiling vim

Tony Mechelynck
In reply to this post by Charles E Campbell Jr
On Sat, Mar 30, 2019 at 10:01 AM Charles E Campbell
<[hidden email]> wrote:

>
> Hello:
>
> I've been working on getting a vim compiled under windows10+cygwin.
> Hasn't worked too well yet.  Anybody out there have some ideas on how to
> compile a runnable vim under windows10+cygwin?
>
> * configure --with-features=huge
>    That seems to work fine
>
> * cd src; make  (note that this is done under cygwin, so its cygwin's
> make and cygwin's gcc)
>    I got about 20 warnings: all saying something like "visibility
> attribute not supported in this configuration: ignored
>    This warning affects pen.c, termscreen.c, unicode.c, state.c, vterm.c
>
>    As a complete example of such a warning:
>    libvterm/src/pen.h: In function 'vterm_state_newpen':
>    libvterm/src/pen.c:164:1: warning: visibility attribute not supported
> in this configuration; ignored [-Wattributes]
>
> * otherwise, the compile completes without other warnings.  When I try
> to run it: nothing apparently happens.
>
> I'd like to get a cygwin-based vim compiled and running; I'll just go
> ahead and use the gvim from www.vim.org; I need both to insure that
> netrw is working properly under Windows.
>
> Thank you,
> Chip Campbell

IIRC, compiling Vim by using "configure; make" with the Makefile and
src/Makefile under Cygwin will produce a "Unix-like" Cygwin executable
which can only be run under Cygwin, with the cygwin1.dll in the $PATH
and preferably from Cygwin bash.

Since Cygwin has stopped packaging a MinGW gcc (IIRC that was some
years ago), to compile a "native-Windows" Vim or gvim in a Unix-like
environment, you should use the src/make_ming.mak (not the Makefile)
which invokes the MinGW make and gcc executables. Or you can also
compile a native-Windows Vim and gvim in the Windows "dos box" using
Windows tools, with the src/Make_svc.mak; I'm not sure what the
src/msvc????.bat scripts are about, maybe you should use one or the
other depending on your MS Visual C version.

Best regards,
Tony.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.