Repository: Homebrew/homebrew-core

Issue #15741: MacVim: Run into error after new formula
Created: 2017-07-18T19:13:02Z
Please always follow these steps:

 Confirmed this is a problem with brew installing one, specific formula (not cask) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/Homebrew/caskroom/homebrew-cask/new
 Ran brew update and retried your prior step?
 Ran brew doctor, fixed all issues and retried your prior step?
 Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
 If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

Hi, I updated Homebrew and MacVim. Immediately, I see error message after running mvim on terminal:
Vim: Caught deadly signal SEGV
Vim: Finished.

The standalone version of MacVim also stopped working, with similar message.
I have attached my brew config output:
HOMEBREW_VERSION: 1.2.4
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: b5529084906af89827f6d9befd613457a1615918
Last commit: 2 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f3c0a237fc5a76c7ae02e2287c6c860f111d2fe0
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.1 build 802
Git: 2.13.3 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.26.0/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby
Java: 1.8.0_131
macOS: 10.12.5-x86_64
Xcode: 8.3.3
CLT: 8.3.2.0.1.1492020469
X11: 2.7.11 => /opt/X11

My brew doctor output is clean.

Duplicate issue #15802: macvim build is broken after python path update
Created: 2017-07-20T10:53:55Z
After python path update macvim formula is broken. After installing macvim from bottle I had this as version:
gvim --version                                                       VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jul 20 2017 12:47:46) MacOS X (unix) version Included patches: 1-648 Compiled by Homebrew Huge version with MacVim GUI.  Features included (+) or not (-): +acl             +find_in_path    -mouse_sysmouse  -tag_any_white +arabic          +float           +mouse_urxvt     +tcl +autocmd         +folding         +mouse_xterm     +termguicolors +balloon_eval    -footer          +multi_byte      +terminfo +browse          +fork()          +multi_lang      +termresponse ++builtin_terms  +fullscreen      -mzscheme        +textobjects +byte_offset     -gettext         +netbeans_intg   +timers +channel         -hangul_input    +num64           +title +cindent         +iconv           +odbeditor       +toolbar +clientserver    +insert_expand   +packages        +transparency +clipboard       +job             +path_extra      +user_commands +cmdline_compl   +jumplist        +perl            +vertsplit +cmdline_hist    +keymap          +persistent_undo +virtualedit +cmdline_info    +lambda          +postscript      +visual +comments        +langmap         +printer         +visualextra +conceal         +libcall         +profile         +viminfo +cryptv          +linebreak       +python          +vreplace +cscope          +lispindent      -python3         +wildignore +cursorbind      +listcmds        +quickfix        +wildmenu +cursorshape     +localmap        +reltime         +windows +dialog_con_gui  -lua             +rightleft       +writebackup +diff            +menu            +ruby            -X11 +digraphs        +mksession       +scrollbind      -xfontset +dnd             +modify_fname    +signs           +xim -ebcdic          +mouse           +smartindent     -xpm +emacs_tags      +mouseshape      +startuptime     -xsmp +eval            +mouse_dec       +statusline      -xterm_clipboard +ex_extra        -mouse_gpm       -sun_workshop    -xterm_save +extra_search    -mouse_jsbterm   +syntax           +farsi           +mouse_netterm   +tag_binary       +file_in_path    +mouse_sgr       +tag_old_static   system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim" Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -F/usr/local/opt/python/Frameworks -framework Python  -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby
It is linked to system python.
I tried to install from source but after checking logs there is something very strange. Config:
checking Python is 2.3 or better... yep checking Python's install prefix... /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7 checking Python's execution prefix... /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7 checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config checking Python's dll name... Python.framework/Versions/2.7/Python 
and then when compile starts:
Starting make in the src directory. If there are problems, cd to the src directory and run make there cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make first /bin/sh install-sh -c -d objects CC="clang -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX    " srcdir=. sh ./osdef.sh creating auto/pathdef.c /usr/bin/perl -e 'unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$_ $_\n" }}' > auto/if_perl.c /usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -prototypes -typemap \ /System/Library/Perl/5.18/ExtUtils/typemap if_perl.xs >> auto/if_perl.c touch objects/.dirstamp cd xxd; CC="clang" CFLAGS="-DMACOS_X_UNIX -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" LDFLAGS="-L. -L/usr/local/lib -L. -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl -framework CoreFoundation -L/usr/local/lib" \
I had to install from bottle and then compile my own version to bypass this problem. I have this in my PATH
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
and
$ which python /usr/local/opt/python/libexec/bin/python

Closing comment (2017-07-20T10:55:16Z): Duplicates #15741.