libvterm/src/mouse.c:73:6: error: conflicting types for 'vterm_mouse_button' void vterm_mouse_button(VTerm *vt, int button, int pressed, VTermModifier mod) ^ /usr/local/include/vterm.h:154:6: note: previous declaration is here void vterm_mouse_button(VTerm *vt, int button, bool pressed, VTermModifier mod); ^ 1 error generated. *** Error code 1 Stop. make[3]: stopped in /usr/ports/editors/vim/work/vim-8.0.1081/src *** Error code 1 Stop. make[2]: stopped in /usr/ports/editors/vim/work/vim-8.0.1081 *** Error code 1 Stop. make[1]: stopped in /usr/ports/editors/vim *** Error code 1
Can you show the compilation command itself that fails?
I can't reproduce this. Adding a BUILD_DEPENDS on libvterm, vim still builds happily. There may be something else in your environment that is causing this. You can try the following: * See if updating the port to latest upstream fixes it for you (currently 1089) * Try removing installed ports to see which one is causing the conflict * Build in poudriere or synth, which are specifically designed to prevent these sorts of problems * Bisect between 1035 and 1081 to find which upstream commit caused your breakage Once you've found the problem conflict and/or commit, let me know and we'll go from there.
Created attachment 186230 [details] Build log
I have next results: * This breakage introduced in version 8.0.1050 * Version 8.0.1049 builds successfully * Update port to latest upstream version(tested 8.0.1091) did not fixed this issue
Removing devel/libvterm fixes this issue. But I still need this lib.
Thanks for the bisection, Oleh. I'm pretty swamped here so I can't do much diagnosis today, but I'll add an option to disable the terminal feature. Can you add --enable-terminal=no and confirm that it builds for you?
Oleh I still can't reproduce this problem. What OPTIONS are you building with, what FreeBSD version, what is in your make.conf, and what ports do you have installed?
uname -a FreeBSD merom 11.1-STABLE FreeBSD 11.1-STABLE #0 r323206: Wed Sep 6 15:25:56 EEST 2017 root@merom:/usr/obj/usr/src/sys/GENERIC amd64 cat /var/db/ports/editors_vim/options # This file is auto-generated by 'make config'. # Options for vim-8.0.1081 _OPTIONS_READ=vim-8.0.1081 _FILE_COMPLETE_OPTIONS_LIST=CSCOPE DEFAULT_VIMRC EXUBERANT_CTAGS NLS XTERM_SAVE ATHENA CONSOLE GNOME GTK2 GTK3 MOTIF X11 LUA PERL PYTHON RUBY TCL OPTIONS_FILE_SET+=CSCOPE OPTIONS_FILE_SET+=DEFAULT_VIMRC OPTIONS_FILE_SET+=EXUBERANT_CTAGS OPTIONS_FILE_SET+=NLS OPTIONS_FILE_UNSET+=XTERM_SAVE OPTIONS_FILE_UNSET+=ATHENA OPTIONS_FILE_SET+=CONSOLE OPTIONS_FILE_UNSET+=GNOME OPTIONS_FILE_UNSET+=GTK2 OPTIONS_FILE_UNSET+=GTK3 OPTIONS_FILE_UNSET+=MOTIF OPTIONS_FILE_UNSET+=X11 OPTIONS_FILE_SET+=LUA OPTIONS_FILE_UNSET+=PERL OPTIONS_FILE_SET+=PYTHON OPTIONS_FILE_UNSET+=RUBY OPTIONS_FILE_UNSET+=TCL cat /etc/make.conf #MALLOC_PRODUCTION=yes #KERNCONF=GENERIC-NODEBUG #WITHOUT="GUI" #WITHOUT="X11" #OPTIONS_UNSET=GUI #OPTIONS_UNSET=X11 PORTS_MODULES+=x11/nvidia-driver-340 DISABLE_VULNERABILITIES=yes DEFAULT_VERSIONS+=perl5=5.24 DEFAULT_VERSIONS+=python3=3.6 DEFAULT_VERSIONS+=ssl=openssl DEVELOPER=yes I can attach output of "pkg info" but is large.
Adam, how I can add --enable-terminal=no to build? Maybe I am doing something wrong, but this have no effect.
(In reply to Oleh Hushchenkov from comment #9) In the Makefile: CONFIGURE_ARGS+= --enable-terminal=no
(In reply to Oleh Hushchenkov from comment #8) I will need that pkg info output, and the full build log for vim.
(In reply to Adam Weinberger from comment #11) This exactly what I am doing, but I see this line during work configure script: checking --enable-terminal argument... defaulting to yes And build still fail with same error.
Created attachment 186233 [details] pkg info output
Created attachment 186234 [details] vim build log
I can reproduce this issue on other machine with FreeBSD 10.4-BETA4 amd64.
Having the same issue. "CONFIGURE_ARGS+= --enable-terminal=no" didn't help. Deinstalling "libvterm" helped. But it seems not quite good solution as one may need/want to have standalone "libvterm" port installed.
As asked by Adam attaching some additional info: make.conf and a list of installed packages (FreeBSD 10.3-STABLE i386).
Created attachment 186273 [details] Installed packages
Created attachment 186274 [details] make.conf
Oleh and George, I still don't know what is causing the build failure, but you can disable the terminal subsystem with: MAKE_ARGS+= CONF_OPT_TERMINAL=--disable-terminal
I created issue on github https://github.com/vim/vim/issues/2080
Created attachment 186288 [details] Patch that proposed on github This patch fixes this issue for me.
A commit references this bug: Author: adamw Date: Tue Sep 12 23:22:20 UTC 2017 New revision: 449743 URL: https://svnweb.freebsd.org/changeset/ports/449743 Log: Update to patchlevel 1098 to fix build when libvterm is installed. PR: 222187 Reported by: Oleh Hushchenkov and George L. Yermulnik Changes: head/editors/vim/Makefile head/editors/vim/distinfo
Thanks, Oleh and George! The patch has been committed upstream, and I've updated vim to that patchlevel.
Thank you, Adam!
Thanks, Adam!
And thank you Oleh!