Saturday, March 30, 2019

Re: windows 10, cygwin, and compiling vim

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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment