Gvim v8.2.3860 MSYS2 Build fails

15 views
Skip to first unread message

Ni Va

unread,
Dec 21, 2021, 4:09:43 AM12/21/21
to vim_dev
Hi All,

Got this error trying to build Gvim above version :


Error
In file included from vim.h:434,
                 from if_ole.cpp:16:
termdefs.h:127:16: warning: unnecessary parentheses in declaration of 'term_strings' [-Wparentheses]
  127 | extern char_u *(term_strings[]);    // current terminal strings
      |                ^
In file included from vim.h:1878,
                 from if_ole.cpp:16:
structs.h:2785:17: warning: unnecessary parentheses in declaration of 'b_maphash' [-Wparentheses]
 2785 |     mapblock_T *(b_maphash[256]);
      |                 ^
structs.h:3239:16: warning: unnecessary parentheses in declaration of 'tp_diffbuf' [-Wparentheses]
 3239 |     buf_T     *(tp_diffbuf[DB_COUNT]);
      |                ^
structs.h:3243:18: warning: unnecessary parentheses in declaration of 'tp_snapshot' [-Wparentheses]
 3243 |     frame_T     *(tp_snapshot[SNAP_COUNT]);  // window layout snapshots
      |                  ^
In file included from proto.h:216,
                 from vim.h:2238,
                 from if_ole.cpp:16:
vim9.h:432:13: error: expected unqualified-id before 'try'
  432 |  try_T      try;
      |             ^~~
make: *** [Make_cyg_ming.mak:1251: gobji686/if_ole.o] Error 1




FLAGS
FLAGS="OLE=yes GUI=yes XPM=no DIRECTx=yes DYNAMIC_LUA=yes LUA=./Lua-5.4.4/src LUA_VER=54 PYTHON3=c:/Python310 DYNAMIC_PYTHON3=yes PYTHON3_VER=311 DYNAMIC_PYTHON3_DLL=python311.dll RUBY=C:/Ruby30 DYNAMIC_RUBY=yes RUBY_VER=30 RUBY_API_VER_LONG=3.0.0 TERMINAL=yes EVENT_LOOP=yes STATIC_STDCPLUS=yes" WINVER=0x600

Build Command
make -f Make_ming.mak ${FLAGS} DEBUG=no




Bram Moolenaar

unread,
Dec 21, 2021, 4:41:10 AM12/21/21
to vim...@googlegroups.com, Ni Va

> Got this error trying to build Gvim above version :
>
>
> *Error*
> In file included from vim.h:434,
> from if_ole.cpp:16:
> termdefs.h:127:16: warning: unnecessary parentheses in declaration of
> 'term_strings' [-Wparentheses]
> 127 | extern char_u *(term_strings[]); // current terminal strings
> | ^
> In file included from vim.h:1878,
> from if_ole.cpp:16:
> structs.h:2785:17: warning: unnecessary parentheses in declaration of
> 'b_maphash' [-Wparentheses]
> 2785 | mapblock_T *(b_maphash[256]);
> | ^
> structs.h:3239:16: warning: unnecessary parentheses in declaration of
> 'tp_diffbuf' [-Wparentheses]
> 3239 | buf_T *(tp_diffbuf[DB_COUNT]);
> | ^
> structs.h:3243:18: warning: unnecessary parentheses in declaration of
> 'tp_snapshot' [-Wparentheses]
> 3243 | frame_T *(tp_snapshot[SNAP_COUNT]); // window layout
> snapshots
> | ^

Those are bogus warnings. The parentheses are perfectly fine. You can
try to find a flag for the compiler to disable the warning.


> In file included from proto.h:216,
> from vim.h:2238,
> from if_ole.cpp:16:
> vim9.h:432:13: *error: expected unqualified-id before 'try'*
> 432 | try_T try;
> | ^~~
> make: *** [Make_cyg_ming.mak:1251: gobji686/if_ole.o] Error 1

I suppose this is because in C++ "try" is a keyword? I'll rename it.

--
From "know your smileys":
:~) A man with a tape recorder up his nose

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Ni Va

unread,
Dec 21, 2021, 4:49:28 AM12/21/21
to vim_dev
Thank you Bram. Merry Christmas.
Reply all
Reply to author
Forward
0 new messages