Homebrew-core: `vim` fails to build from source with option `--with-client-server` when python is installed with `--with-tcl-tk`

Created on 10 Aug 2018  ยท  160Comments  ยท  Source: Homebrew/homebrew-core

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

Please always confirm that you:

  • [x] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question, do so on our Discourse: https://discourse.brew.sh.
  • [x] have a problem with brew installing (or upgradeing or reinstalling) a single, official formula (not cask?) If it's a general brew problem, please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a brew cask problem, please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap โ€” e.g. Homebrew/homebrew-php โ€” problem, please file this issue at the tap.
  • [x] ran brew update and can still reproduce the problem?
  • [x] ran brew doctor, fixed all issues, and can still reproduce the problem?
  • [ ] ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link? (N/A; see the next checklist item.)
  • [x] if brew gist-logs didn't work: (or wasn't applicable) ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why:)

         Upgrade my local, built-from-source copy of vim from v8.1.0202 to v8.1.0250 in the course of going through my normal routine of keeping all of my software tools up to date.

  • What happened (include command output:)

         Homebrew failed to upgrade vim from v8.1.0202 to v8.1.0250. My logs are:

    • here (from when I _did_ set HOMEBREW_BUILD_FROM_SOURCE=1.)
    • here (from when I _didn't._)

    In both cases, the exact point of failure appeared as follows:

    โ‹ฎ
    checking for xmkmf... no
    checking for X... libraries , headers 
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking if X11 header files can be found... no
    configure: error: could not configure X
    /usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
    BuildError: Failed executing: ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
    1. raise
    2. ignore
    3. backtrace
    4. irb
    5. shell
    Choose an action: 1
    โ‹ฎ
    

    This appears to be due to Homebrew's vim build failing the check added in vim/vim@d2a0549 for X11's exported headers and internal libraries.

  • What you expected to happen:

         For Homebrew to successfully build the new version of vim from source and install it in the old version's place.

  • Step-by-step reproduction instructions (by running brew commands:)

         Given that I originally installed vim on my machine --with-client-server, --with-gettext, --with-lua, --with-luajit, --with-override-system-vi, and --with-tcl in both/either of the following cases:

    • _With_ HOMEBREW_BUILD_FROM_SOURCE=1 (not supported with issue resolution:)

      HOMEBREW_BUILD_FROM_SOURCE=1 brew upgrade -vd --build-from-source --cleanup vim
      

      (Note that setting that environment variable as shown above _probably_, as usual and would be expected, doesn't make any difference with respect to this issue, as upgrading vim would not depend on upgrading any of its dependencies since they're all already up to date, but, as usual, I typically set this anyway just for consistency's sake.)

    • _Without_ HOMEBREW_BUILD_FROM_SOURCE=1 (given to show that this issue also occurs under a _supported_ configuration:)

      brew upgrade -vd --build-from-source --cleanup vim
      

First reported upstream as https://github.com/vim/vim/commit/d2a0549#commitcomment-30012833 since I (possibly mistakenly) presumed it was independent of Homebrew, but this may not be the case (build sandbox hijinks, anyoneโ€ฆ?)

CC @brammool, @nuko8

Addendum: Also reproduced with vim v8.1.0300, per a comment below.

outdated

Most helpful comment

@sirgatez I can confirm that when I installed python 3 --with-tcl-tk I also get the error and can't build vim with client server despite having the headers.

All 160 comments

I asked around a little amongst the maintainers and they referred me to this which could potentially be the cause of the issue https://github.com/Homebrew/brew/blob/a985f0a5d0cd7e73ea6cafe842a08aba82cee4b5/Library/Homebrew/shims/super/cc#L240-L241

     I've taken an initial, tentative stab at this in Homebrew/brew#4675, but, per its sole commit's message and the related PR title, it's still a WIP.

@javian @RandomDSdevel That doesn't seem like the right fix, I'm afraid. That line has been present for a long time and we have plenty of depends_on :x11 formulae that are able to find the header files. CC @DomT4 for thoughts here.

Hmmm, superenv added X11 include path back

superenv added:    -pipe -Os -march=core2 -isystem/usr/local/include -isystem/usr/include/libxml2 -isystem/opt/X11/include

@RandomDSdevel, what's the output of ls /opt/X11/include/X11 ?

@maxim-belkin:

     Here you go:

Bryces-HD-1-TB:~ zadmin$ ls -@aHhlO /opt/X11/include/X11/
total 2072
drwxr-xr-x   90 root  wheel  -  3.0K Oct 29  2016 .
drwxr-xr-x   19 root  wheel  -  646B Nov 14  2016 ..
-rw-r--r--    1 root  wheel  -  3.9K Oct 29  2016 CallbackI.h
-rw-r--r--    1 root  wheel  -  3.4K Oct 29  2016 Composite.h
-rw-r--r--    1 root  wheel  -  4.6K Oct 29  2016 CompositeP.h
-rw-r--r--    1 root  wheel  -  3.9K Oct 29  2016 ConstrainP.h
-rw-r--r--    1 root  wheel  -  2.5K Oct 29  2016 Constraint.h
-rw-r--r--    1 root  wheel  -  3.3K Oct 29  2016 ConvertI.h
-rw-r--r--    1 root  wheel  -  2.5K Oct 29  2016 Core.h
-rw-r--r--    1 root  wheel  -  8.4K Oct 29  2016 CoreP.h
-rw-r--r--    1 root  wheel  -  1.3K Oct 29  2016 CreateI.h
-rw-r--r--    1 root  wheel  -  2.8K Oct 26  2016 DECkeysym.h
-rw-r--r--    1 root  wheel  -  4.1K Oct 29  2016 EventI.h
-rw-r--r--    1 root  wheel  -  5.9K Oct 26  2016 HPkeysym.h
-rw-r--r--    1 root  wheel  -  2.1K Oct 29  2016 HookObjI.h
drwxr-xr-x    8 root  wheel  -  272B Oct 29  2016 ICE
-rw-r--r--    1 root  wheel  -  459B Oct 29  2016 ImUtil.h
-rw-r--r--    1 root  wheel  -   12K Oct 29  2016 InitialI.h
-rw-r--r--    1 root  wheel  -   62K Oct 29  2016 Intrinsic.h
-rw-r--r--    1 root  wheel  -  6.4K Oct 29  2016 IntrinsicI.h
-rw-r--r--    1 root  wheel  -  9.4K Oct 29  2016 IntrinsicP.h
-rw-r--r--    1 root  wheel  -  2.5K Oct 29  2016 Object.h
-rw-r--r--    1 root  wheel  -  6.8K Oct 29  2016 ObjectP.h
drwxr-xr-x    4 root  wheel  -  136B Oct 26  2016 PM
-rw-r--r--    1 root  wheel  -  5.4K Oct 29  2016 PassivGraI.h
-rw-r--r--    1 root  wheel  -  2.5K Oct 29  2016 RectObj.h
-rw-r--r--    1 root  wheel  -  6.3K Oct 29  2016 RectObjP.h
-rw-r--r--    1 root  wheel  -  2.9K Oct 29  2016 ResConfigP.h
-rw-r--r--    1 root  wheel  -  3.6K Oct 29  2016 ResourceI.h
drwxr-xr-x    5 root  wheel  -  170B Oct 29  2016 SM
-rw-r--r--    1 root  wheel  -  5.1K Oct 29  2016 SelectionI.h
-rw-r--r--    1 root  wheel  -   17K Oct 29  2016 Shell.h
-rw-r--r--    1 root  wheel  -  212B Oct 29  2016 ShellI.h
-rw-r--r--    1 root  wheel  -   12K Oct 29  2016 ShellP.h
-rw-r--r--    1 root  wheel  -   30K Oct 29  2016 StringDefs.h
-rw-r--r--    1 root  wheel  -  3.9K Oct 26  2016 Sunkeysym.h
-rw-r--r--    1 root  wheel  -  4.2K Oct 29  2016 ThreadsI.h
-rw-r--r--    1 root  wheel  -   17K Oct 29  2016 TranslateI.h
-rw-r--r--    1 root  wheel  -  2.3K Oct 29  2016 VarargsI.h
-rw-r--r--    1 root  wheel  -  2.7K Oct 29  2016 Vendor.h
-rw-r--r--    1 root  wheel  -  3.5K Oct 29  2016 VendorP.h
-rw-r--r--    1 root  wheel  -   20K Oct 26  2016 X.h
-rw-r--r--    1 root  wheel  -   13K Oct 26  2016 XF86keysym.h
-rw-r--r--    1 root  wheel  -   30K Oct 29  2016 XKBlib.h
-rw-r--r--    1 root  wheel  -  3.9K Oct 26  2016 XWDFile.h
-rw-r--r--    1 root  wheel  -  4.5K Oct 26  2016 Xalloca.h
-rw-r--r--    1 root  wheel  -  2.9K Oct 26  2016 Xarch.h
-rw-r--r--    1 root  wheel  -  2.5K Oct 26  2016 Xatom.h
-rw-r--r--    1 root  wheel  -  3.7K Oct 29  2016 Xauth.h
drwxr-xr-x   73 root  wheel  -  2.4K Oct 29  2016 Xaw
drwxr-xr-x   77 root  wheel  -  2.6K Oct 29  2016 Xaw3d
-rw-r--r--    1 root  wheel  -   21K Oct 29  2016 Xcms.h
drwxr-xr-x    3 root  wheel  -  102B Oct 29  2016 Xcursor
-rw-r--r--    1 root  wheel  -  2.3K Oct 26  2016 Xdefs.h
-rw-r--r--    1 root  wheel  -  6.2K Oct 29  2016 Xdmcp.h
drwxr-xr-x    4 root  wheel  -  136B Oct 29  2016 Xft
-rw-r--r--    1 root  wheel  -  7.6K Oct 26  2016 Xfuncproto.h
-rw-r--r--    1 root  wheel  -  2.2K Oct 26  2016 Xfuncs.h
-rw-r--r--    1 root  wheel  -  506B Oct 29  2016 Xlib-xcb.h
-rw-r--r--    1 root  wheel  -   97K Oct 29  2016 Xlib.h
-rw-r--r--    1 root  wheel  -  1.5K Oct 29  2016 XlibConf.h
-rw-r--r--    1 root  wheel  -   40K Oct 29  2016 Xlibint.h
-rw-r--r--    1 root  wheel  -  1.3K Oct 29  2016 Xlocale.h
-rw-r--r--    1 root  wheel  -  5.0K Oct 26  2016 Xmd.h
drwxr-xr-x   25 root  wheel  -  850B Oct 29  2016 Xmu
-rw-r--r--    1 root  wheel  -  4.3K Oct 26  2016 Xos.h
-rw-r--r--    1 root  wheel  -   33K Oct 26  2016 Xos_r.h
-rw-r--r--    1 root  wheel  -  3.0K Oct 26  2016 Xosdefs.h
-rw-r--r--    1 root  wheel  -  7.6K Oct 26  2016 Xpoll.h
-rw-r--r--    1 root  wheel  -   56K Oct 26  2016 Xproto.h
-rw-r--r--    1 root  wheel  -  2.7K Oct 26  2016 Xprotostr.h
-rw-r--r--    1 root  wheel  -  5.8K Oct 29  2016 Xregion.h
-rw-r--r--    1 root  wheel  -   10K Oct 29  2016 Xresource.h
-rw-r--r--    1 root  wheel  -   12K Oct 26  2016 Xthreads.h
-rw-r--r--    1 root  wheel  -  2.9K Oct 29  2016 Xtos.h
drwxr-xr-x    9 root  wheel  -  306B Oct 29  2016 Xtrans
-rw-r--r--    1 root  wheel  -   21K Oct 29  2016 Xutil.h
-rw-r--r--    1 root  wheel  -  1.9K Oct 26  2016 Xw32defs.h
-rw-r--r--    1 root  wheel  -  3.2K Oct 26  2016 Xwindows.h
-rw-r--r--    1 root  wheel  -  2.2K Oct 26  2016 Xwinsock.h
-rw-r--r--    1 root  wheel  -  2.2K Oct 26  2016 ap_keysym.h
drwxr-xr-x   87 root  wheel  -  2.9K Oct  7  2016 bitmaps
-rw-r--r--    1 root  wheel  -  3.0K Oct 29  2016 cursorfont.h
drwxr-xr-x    5 root  wheel  -  170B Oct 26  2016 dri
drwxr-xr-x  153 root  wheel  -  5.1K Oct 29  2016 extensions
drwxr-xr-x   26 root  wheel  -  884B Oct 29  2016 fonts
-rw-r--r--    1 root  wheel  -  2.7K Oct 26  2016 keysym.h
-rw-r--r--    1 root  wheel  -  171K Oct 26  2016 keysymdef.h
-rw-r--r--    1 root  wheel  -   16K Oct 29  2016 xpm.h
-rw-r--r--    1 root  wheel  -  1.7K Oct 29  2016 xshmfence.h

And, for good measure:

Bryces-HD-1-TB:~ zadmin$ tree -al /opt/X11/include/X11/
/opt/X11/include/X11/
โ”œโ”€โ”€ CallbackI.h
โ”œโ”€โ”€ Composite.h
โ”œโ”€โ”€ CompositeP.h
โ”œโ”€โ”€ ConstrainP.h
โ”œโ”€โ”€ Constraint.h
โ”œโ”€โ”€ ConvertI.h
โ”œโ”€โ”€ Core.h
โ”œโ”€โ”€ CoreP.h
โ”œโ”€โ”€ CreateI.h
โ”œโ”€โ”€ DECkeysym.h
โ”œโ”€โ”€ EventI.h
โ”œโ”€โ”€ HPkeysym.h
โ”œโ”€โ”€ HookObjI.h
โ”œโ”€โ”€ ICE
โ”‚ย ย  โ”œโ”€โ”€ ICE.h
โ”‚ย ย  โ”œโ”€โ”€ ICEconn.h
โ”‚ย ย  โ”œโ”€โ”€ ICElib.h
โ”‚ย ย  โ”œโ”€โ”€ ICEmsg.h
โ”‚ย ย  โ”œโ”€โ”€ ICEproto.h
โ”‚ย ย  โ””โ”€โ”€ ICEutil.h
โ”œโ”€โ”€ ImUtil.h
โ”œโ”€โ”€ InitialI.h
โ”œโ”€โ”€ Intrinsic.h
โ”œโ”€โ”€ IntrinsicI.h
โ”œโ”€โ”€ IntrinsicP.h
โ”œโ”€โ”€ Object.h
โ”œโ”€โ”€ ObjectP.h
โ”œโ”€โ”€ PM
โ”‚ย ย  โ”œโ”€โ”€ PM.h
โ”‚ย ย  โ””โ”€โ”€ PMproto.h
โ”œโ”€โ”€ PassivGraI.h
โ”œโ”€โ”€ RectObj.h
โ”œโ”€โ”€ RectObjP.h
โ”œโ”€โ”€ ResConfigP.h
โ”œโ”€โ”€ ResourceI.h
โ”œโ”€โ”€ SM
โ”‚ย ย  โ”œโ”€โ”€ SM.h
โ”‚ย ย  โ”œโ”€โ”€ SMlib.h
โ”‚ย ย  โ””โ”€โ”€ SMproto.h
โ”œโ”€โ”€ SelectionI.h
โ”œโ”€โ”€ Shell.h
โ”œโ”€โ”€ ShellI.h
โ”œโ”€โ”€ ShellP.h
โ”œโ”€โ”€ StringDefs.h
โ”œโ”€โ”€ Sunkeysym.h
โ”œโ”€โ”€ ThreadsI.h
โ”œโ”€โ”€ TranslateI.h
โ”œโ”€โ”€ VarargsI.h
โ”œโ”€โ”€ Vendor.h
โ”œโ”€โ”€ VendorP.h
โ”œโ”€โ”€ X.h
โ”œโ”€โ”€ XF86keysym.h
โ”œโ”€โ”€ XKBlib.h
โ”œโ”€โ”€ XWDFile.h
โ”œโ”€โ”€ Xalloca.h
โ”œโ”€โ”€ Xarch.h
โ”œโ”€โ”€ Xatom.h
โ”œโ”€โ”€ Xauth.h
โ”œโ”€โ”€ Xaw
โ”‚ย ย  โ”œโ”€โ”€ AllWidgets.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSink.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSinkP.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSrc.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSrcP.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiText.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiTextP.h
โ”‚ย ย  โ”œโ”€โ”€ Box.h
โ”‚ย ย  โ”œโ”€โ”€ BoxP.h
โ”‚ย ย  โ”œโ”€โ”€ Cardinals.h
โ”‚ย ย  โ”œโ”€โ”€ Command.h
โ”‚ย ย  โ”œโ”€โ”€ CommandP.h
โ”‚ย ย  โ”œโ”€โ”€ Dialog.h
โ”‚ย ย  โ”œโ”€โ”€ DialogP.h
โ”‚ย ย  โ”œโ”€โ”€ Form.h
โ”‚ย ย  โ”œโ”€โ”€ FormP.h
โ”‚ย ย  โ”œโ”€โ”€ Grip.h
โ”‚ย ย  โ”œโ”€โ”€ GripP.h
โ”‚ย ย  โ”œโ”€โ”€ Label.h
โ”‚ย ย  โ”œโ”€โ”€ LabelP.h
โ”‚ย ย  โ”œโ”€โ”€ List.h
โ”‚ย ย  โ”œโ”€โ”€ ListP.h
โ”‚ย ย  โ”œโ”€โ”€ MenuButtoP.h
โ”‚ย ย  โ”œโ”€โ”€ MenuButton.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSink.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSinkP.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSrc.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSrcP.h
โ”‚ย ย  โ”œโ”€โ”€ Paned.h
โ”‚ย ย  โ”œโ”€โ”€ PanedP.h
โ”‚ย ย  โ”œโ”€โ”€ Panner.h
โ”‚ย ย  โ”œโ”€โ”€ PannerP.h
โ”‚ย ย  โ”œโ”€โ”€ Porthole.h
โ”‚ย ย  โ”œโ”€โ”€ PortholeP.h
โ”‚ย ย  โ”œโ”€โ”€ Repeater.h
โ”‚ย ย  โ”œโ”€โ”€ RepeaterP.h
โ”‚ย ย  โ”œโ”€โ”€ Reports.h
โ”‚ย ย  โ”œโ”€โ”€ Scrollbar.h
โ”‚ย ย  โ”œโ”€โ”€ ScrollbarP.h
โ”‚ย ย  โ”œโ”€โ”€ Simple.h
โ”‚ย ย  โ”œโ”€โ”€ SimpleMenP.h
โ”‚ย ย  โ”œโ”€โ”€ SimpleMenu.h
โ”‚ย ย  โ”œโ”€โ”€ SimpleP.h
โ”‚ย ย  โ”œโ”€โ”€ Sme.h
โ”‚ย ย  โ”œโ”€โ”€ SmeBSB.h
โ”‚ย ย  โ”œโ”€โ”€ SmeBSBP.h
โ”‚ย ย  โ”œโ”€โ”€ SmeLine.h
โ”‚ย ย  โ”œโ”€โ”€ SmeLineP.h
โ”‚ย ย  โ”œโ”€โ”€ SmeP.h
โ”‚ย ย  โ”œโ”€โ”€ StripCharP.h
โ”‚ย ย  โ”œโ”€โ”€ StripChart.h
โ”‚ย ย  โ”œโ”€โ”€ Template.c
โ”‚ย ย  โ”œโ”€โ”€ Template.h
โ”‚ย ย  โ”œโ”€โ”€ TemplateP.h
โ”‚ย ย  โ”œโ”€โ”€ Text.h
โ”‚ย ย  โ”œโ”€โ”€ TextP.h
โ”‚ย ย  โ”œโ”€โ”€ TextSink.h
โ”‚ย ย  โ”œโ”€โ”€ TextSinkP.h
โ”‚ย ย  โ”œโ”€โ”€ TextSrc.h
โ”‚ย ย  โ”œโ”€โ”€ TextSrcP.h
โ”‚ย ย  โ”œโ”€โ”€ Tip.h
โ”‚ย ย  โ”œโ”€โ”€ TipP.h
โ”‚ย ย  โ”œโ”€โ”€ Toggle.h
โ”‚ย ย  โ”œโ”€โ”€ ToggleP.h
โ”‚ย ย  โ”œโ”€โ”€ Tree.h
โ”‚ย ย  โ”œโ”€โ”€ TreeP.h
โ”‚ย ย  โ”œโ”€โ”€ VendorEP.h
โ”‚ย ย  โ”œโ”€โ”€ Viewport.h
โ”‚ย ย  โ”œโ”€โ”€ ViewportP.h
โ”‚ย ย  โ”œโ”€โ”€ XawImP.h
โ”‚ย ย  โ””โ”€โ”€ XawInit.h
โ”œโ”€โ”€ Xaw3d
โ”‚ย ย  โ”œโ”€โ”€ AllWidgets.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSink.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSinkP.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSrc.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiSrcP.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiText.h
โ”‚ย ย  โ”œโ”€โ”€ AsciiTextP.h
โ”‚ย ย  โ”œโ”€โ”€ Box.h
โ”‚ย ย  โ”œโ”€โ”€ BoxP.h
โ”‚ย ย  โ”œโ”€โ”€ Cardinals.h
โ”‚ย ย  โ”œโ”€โ”€ Command.h
โ”‚ย ย  โ”œโ”€โ”€ CommandP.h
โ”‚ย ย  โ”œโ”€โ”€ Dialog.h
โ”‚ย ย  โ”œโ”€โ”€ DialogP.h
โ”‚ย ย  โ”œโ”€โ”€ Form.h
โ”‚ย ย  โ”œโ”€โ”€ FormP.h
โ”‚ย ย  โ”œโ”€โ”€ Grip.h
โ”‚ย ย  โ”œโ”€โ”€ GripP.h
โ”‚ย ย  โ”œโ”€โ”€ Label.h
โ”‚ย ย  โ”œโ”€โ”€ LabelP.h
โ”‚ย ย  โ”œโ”€โ”€ Layout.h
โ”‚ย ย  โ”œโ”€โ”€ LayoutP.h
โ”‚ย ย  โ”œโ”€โ”€ List.h
โ”‚ย ย  โ”œโ”€โ”€ ListP.h
โ”‚ย ย  โ”œโ”€โ”€ MenuButtoP.h
โ”‚ย ย  โ”œโ”€โ”€ MenuButton.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSink.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSinkP.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSrc.h
โ”‚ย ย  โ”œโ”€โ”€ MultiSrcP.h
โ”‚ย ย  โ”œโ”€โ”€ Paned.h
โ”‚ย ย  โ”œโ”€โ”€ PanedP.h
โ”‚ย ย  โ”œโ”€โ”€ Panner.h
โ”‚ย ย  โ”œโ”€โ”€ PannerP.h
โ”‚ย ย  โ”œโ”€โ”€ Porthole.h
โ”‚ย ย  โ”œโ”€โ”€ PortholeP.h
โ”‚ย ย  โ”œโ”€โ”€ Repeater.h
โ”‚ย ย  โ”œโ”€โ”€ RepeaterP.h
โ”‚ย ย  โ”œโ”€โ”€ Reports.h
โ”‚ย ย  โ”œโ”€โ”€ Scrollbar.h
โ”‚ย ย  โ”œโ”€โ”€ ScrollbarP.h
โ”‚ย ย  โ”œโ”€โ”€ Simple.h
โ”‚ย ย  โ”œโ”€โ”€ SimpleMenP.h
โ”‚ย ย  โ”œโ”€โ”€ SimpleMenu.h
โ”‚ย ย  โ”œโ”€โ”€ SimpleP.h
โ”‚ย ย  โ”œโ”€โ”€ Sme.h
โ”‚ย ย  โ”œโ”€โ”€ SmeBSB.h
โ”‚ย ย  โ”œโ”€โ”€ SmeBSBP.h
โ”‚ย ย  โ”œโ”€โ”€ SmeLine.h
โ”‚ย ย  โ”œโ”€โ”€ SmeLineP.h
โ”‚ย ย  โ”œโ”€โ”€ SmeP.h
โ”‚ย ย  โ”œโ”€โ”€ SmeThreeD.h
โ”‚ย ย  โ”œโ”€โ”€ SmeThreeDP.h
โ”‚ย ย  โ”œโ”€โ”€ StripCharP.h
โ”‚ย ย  โ”œโ”€โ”€ StripChart.h
โ”‚ย ย  โ”œโ”€โ”€ Text.h
โ”‚ย ย  โ”œโ”€โ”€ TextP.h
โ”‚ย ย  โ”œโ”€โ”€ TextSink.h
โ”‚ย ย  โ”œโ”€โ”€ TextSinkP.h
โ”‚ย ย  โ”œโ”€โ”€ TextSrc.h
โ”‚ย ย  โ”œโ”€โ”€ TextSrcP.h
โ”‚ย ย  โ”œโ”€โ”€ ThreeD.h
โ”‚ย ย  โ”œโ”€โ”€ ThreeDP.h
โ”‚ย ย  โ”œโ”€โ”€ Tip.h
โ”‚ย ย  โ”œโ”€โ”€ TipP.h
โ”‚ย ย  โ”œโ”€โ”€ Toggle.h
โ”‚ย ย  โ”œโ”€โ”€ ToggleP.h
โ”‚ย ย  โ”œโ”€โ”€ Tree.h
โ”‚ย ย  โ”œโ”€โ”€ TreeP.h
โ”‚ย ย  โ”œโ”€โ”€ VendorEP.h
โ”‚ย ย  โ”œโ”€โ”€ Viewport.h
โ”‚ย ย  โ”œโ”€โ”€ ViewportP.h
โ”‚ย ย  โ”œโ”€โ”€ Xaw3dP.h
โ”‚ย ย  โ”œโ”€โ”€ XawImP.h
โ”‚ย ย  โ””โ”€โ”€ XawInit.h
โ”œโ”€โ”€ Xcms.h
โ”œโ”€โ”€ Xcursor
โ”‚ย ย  โ””โ”€โ”€ Xcursor.h
โ”œโ”€โ”€ Xdefs.h
โ”œโ”€โ”€ Xdmcp.h
โ”œโ”€โ”€ Xft
โ”‚ย ย  โ”œโ”€โ”€ Xft.h
โ”‚ย ย  โ””โ”€โ”€ XftCompat.h
โ”œโ”€โ”€ Xfuncproto.h
โ”œโ”€โ”€ Xfuncs.h
โ”œโ”€โ”€ Xlib-xcb.h
โ”œโ”€โ”€ Xlib.h
โ”œโ”€โ”€ XlibConf.h
โ”œโ”€โ”€ Xlibint.h
โ”œโ”€โ”€ Xlocale.h
โ”œโ”€โ”€ Xmd.h
โ”œโ”€โ”€ Xmu
โ”‚ย ย  โ”œโ”€โ”€ Atoms.h
โ”‚ย ย  โ”œโ”€โ”€ CharSet.h
โ”‚ย ย  โ”œโ”€โ”€ CloseHook.h
โ”‚ย ย  โ”œโ”€โ”€ Converters.h
โ”‚ย ย  โ”œโ”€โ”€ CurUtil.h
โ”‚ย ย  โ”œโ”€โ”€ CvtCache.h
โ”‚ย ย  โ”œโ”€โ”€ DisplayQue.h
โ”‚ย ย  โ”œโ”€โ”€ Drawing.h
โ”‚ย ย  โ”œโ”€โ”€ Editres.h
โ”‚ย ย  โ”œโ”€โ”€ EditresP.h
โ”‚ย ย  โ”œโ”€โ”€ Error.h
โ”‚ย ย  โ”œโ”€โ”€ ExtAgent.h
โ”‚ย ย  โ”œโ”€โ”€ Initer.h
โ”‚ย ย  โ”œโ”€โ”€ Lookup.h
โ”‚ย ย  โ”œโ”€โ”€ Misc.h
โ”‚ย ย  โ”œโ”€โ”€ StdCmap.h
โ”‚ย ย  โ”œโ”€โ”€ StdSel.h
โ”‚ย ย  โ”œโ”€โ”€ SysUtil.h
โ”‚ย ย  โ”œโ”€โ”€ WhitePoint.h
โ”‚ย ย  โ”œโ”€โ”€ WidgetNode.h
โ”‚ย ย  โ”œโ”€โ”€ WinUtil.h
โ”‚ย ย  โ”œโ”€โ”€ Xct.h
โ”‚ย ย  โ””โ”€โ”€ Xmu.h
โ”œโ”€โ”€ Xos.h
โ”œโ”€โ”€ Xos_r.h
โ”œโ”€โ”€ Xosdefs.h
โ”œโ”€โ”€ Xpoll.h
โ”œโ”€โ”€ Xproto.h
โ”œโ”€โ”€ Xprotostr.h
โ”œโ”€โ”€ Xregion.h
โ”œโ”€โ”€ Xresource.h
โ”œโ”€โ”€ Xthreads.h
โ”œโ”€โ”€ Xtos.h
โ”œโ”€โ”€ Xtrans
โ”‚ย ย  โ”œโ”€โ”€ Xtrans.c
โ”‚ย ย  โ”œโ”€โ”€ Xtrans.h
โ”‚ย ย  โ”œโ”€โ”€ Xtransint.h
โ”‚ย ย  โ”œโ”€โ”€ Xtranslcl.c
โ”‚ย ย  โ”œโ”€โ”€ Xtranssock.c
โ”‚ย ย  โ”œโ”€โ”€ Xtransutil.c
โ”‚ย ย  โ””โ”€โ”€ transport.c
โ”œโ”€โ”€ Xutil.h
โ”œโ”€โ”€ Xw32defs.h
โ”œโ”€โ”€ Xwindows.h
โ”œโ”€โ”€ Xwinsock.h
โ”œโ”€โ”€ ap_keysym.h
โ”œโ”€โ”€ bitmaps
โ”‚ย ย  โ”œโ”€โ”€ 1x1
โ”‚ย ย  โ”œโ”€โ”€ 2x2
โ”‚ย ย  โ”œโ”€โ”€ Dashes
โ”‚ย ย  โ”œโ”€โ”€ Down
โ”‚ย ย  โ”œโ”€โ”€ Excl
โ”‚ย ย  โ”œโ”€โ”€ FlipHoriz
โ”‚ย ย  โ”œโ”€โ”€ FlipVert
โ”‚ย ย  โ”œโ”€โ”€ Fold
โ”‚ย ย  โ”œโ”€โ”€ Left
โ”‚ย ย  โ”œโ”€โ”€ Right
โ”‚ย ย  โ”œโ”€โ”€ RotateLeft
โ”‚ย ย  โ”œโ”€โ”€ RotateRight
โ”‚ย ย  โ”œโ”€โ”€ Term
โ”‚ย ย  โ”œโ”€โ”€ Up
โ”‚ย ย  โ”œโ”€โ”€ black
โ”‚ย ย  โ”œโ”€โ”€ black6
โ”‚ย ย  โ”œโ”€โ”€ box6
โ”‚ย ย  โ”œโ”€โ”€ boxes
โ”‚ย ย  โ”œโ”€โ”€ calculator
โ”‚ย ย  โ”œโ”€โ”€ cntr_ptr
โ”‚ย ย  โ”œโ”€โ”€ cntr_ptrmsk
โ”‚ย ย  โ”œโ”€โ”€ cross_weave
โ”‚ย ย  โ”œโ”€โ”€ dimple1
โ”‚ย ย  โ”œโ”€โ”€ dimple3
โ”‚ย ย  โ”œโ”€โ”€ dot
โ”‚ย ย  โ”œโ”€โ”€ dropbar7
โ”‚ย ย  โ”œโ”€โ”€ dropbar8
โ”‚ย ย  โ”œโ”€โ”€ escherknot
โ”‚ย ย  โ”œโ”€โ”€ flagdown
โ”‚ย ย  โ”œโ”€โ”€ flagup
โ”‚ย ย  โ”œโ”€โ”€ flipped_gray
โ”‚ย ย  โ”œโ”€โ”€ gray
โ”‚ย ย  โ”œโ”€โ”€ gray1
โ”‚ย ย  โ”œโ”€โ”€ gray3
โ”‚ย ย  โ”œโ”€โ”€ grid16
โ”‚ย ย  โ”œโ”€โ”€ grid2
โ”‚ย ย  โ”œโ”€โ”€ grid4
โ”‚ย ย  โ”œโ”€โ”€ grid8
โ”‚ย ย  โ”œโ”€โ”€ hlines2
โ”‚ย ย  โ”œโ”€โ”€ hlines3
โ”‚ย ย  โ”œโ”€โ”€ icon
โ”‚ย ย  โ”œโ”€โ”€ keyboard16
โ”‚ย ย  โ”œโ”€โ”€ ldblarrow
โ”‚ย ย  โ”œโ”€โ”€ left_ptr
โ”‚ย ย  โ”œโ”€โ”€ left_ptrmsk
โ”‚ย ย  โ”œโ”€โ”€ letters
โ”‚ย ย  โ”œโ”€โ”€ light_gray
โ”‚ย ย  โ”œโ”€โ”€ mailempty
โ”‚ย ย  โ”œโ”€โ”€ mailemptymsk
โ”‚ย ย  โ”œโ”€โ”€ mailfull
โ”‚ย ย  โ”œโ”€โ”€ mailfullmsk
โ”‚ย ย  โ”œโ”€โ”€ mensetmanus
โ”‚ย ย  โ”œโ”€โ”€ menu10
โ”‚ย ย  โ”œโ”€โ”€ menu12
โ”‚ย ย  โ”œโ”€โ”€ menu16
โ”‚ย ย  โ”œโ”€โ”€ menu6
โ”‚ย ย  โ”œโ”€โ”€ menu8
โ”‚ย ย  โ”œโ”€โ”€ noletters
โ”‚ย ย  โ”œโ”€โ”€ opendot
โ”‚ย ย  โ”œโ”€โ”€ opendotMask
โ”‚ย ย  โ”œโ”€โ”€ plaid
โ”‚ย ย  โ”œโ”€โ”€ rdblarrow
โ”‚ย ย  โ”œโ”€โ”€ right_ptr
โ”‚ย ย  โ”œโ”€โ”€ right_ptrmsk
โ”‚ย ย  โ”œโ”€โ”€ root_weave
โ”‚ย ย  โ”œโ”€โ”€ scales
โ”‚ย ย  โ”œโ”€โ”€ sipb
โ”‚ย ย  โ”œโ”€โ”€ star
โ”‚ย ย  โ”œโ”€โ”€ starMask
โ”‚ย ย  โ”œโ”€โ”€ stipple
โ”‚ย ย  โ”œโ”€โ”€ target
โ”‚ย ย  โ”œโ”€โ”€ terminal
โ”‚ย ย  โ”œโ”€โ”€ tie_fighter
โ”‚ย ย  โ”œโ”€โ”€ vlines2
โ”‚ย ย  โ”œโ”€โ”€ vlines3
โ”‚ย ย  โ”œโ”€โ”€ weird_size
โ”‚ย ย  โ”œโ”€โ”€ wide_weave
โ”‚ย ย  โ”œโ”€โ”€ wingdogs
โ”‚ย ย  โ”œโ”€โ”€ woman
โ”‚ย ย  โ”œโ”€โ”€ xfd_icon
โ”‚ย ย  โ”œโ”€โ”€ xlogo11
โ”‚ย ย  โ”œโ”€โ”€ xlogo16
โ”‚ย ย  โ”œโ”€โ”€ xlogo32
โ”‚ย ย  โ”œโ”€โ”€ xlogo64
โ”‚ย ย  โ””โ”€โ”€ xsnow
โ”œโ”€โ”€ cursorfont.h
โ”œโ”€โ”€ dri
โ”‚ย ย  โ”œโ”€โ”€ xf86dri.h
โ”‚ย ย  โ”œโ”€โ”€ xf86driproto.h
โ”‚ย ย  โ””โ”€โ”€ xf86dristr.h
โ”œโ”€โ”€ extensions
โ”‚ย ย  โ”œโ”€โ”€ EVI.h
โ”‚ย ย  โ”œโ”€โ”€ EVIproto.h
โ”‚ย ย  โ”œโ”€โ”€ MITMisc.h
โ”‚ย ย  โ”œโ”€โ”€ Print.h
โ”‚ย ย  โ”œโ”€โ”€ Printstr.h
โ”‚ย ย  โ”œโ”€โ”€ XEVI.h
โ”‚ย ย  โ”œโ”€โ”€ XI.h
โ”‚ย ย  โ”œโ”€โ”€ XI2.h
โ”‚ย ย  โ”œโ”€โ”€ XI2proto.h
โ”‚ย ย  โ”œโ”€โ”€ XInput.h
โ”‚ย ย  โ”œโ”€โ”€ XInput2.h
โ”‚ย ย  โ”œโ”€โ”€ XIproto.h
โ”‚ย ย  โ”œโ”€โ”€ XKB.h
โ”‚ย ย  โ”œโ”€โ”€ XKBbells.h
โ”‚ย ย  โ”œโ”€โ”€ XKBconfig.h
โ”‚ย ย  โ”œโ”€โ”€ XKBfile.h
โ”‚ย ย  โ”œโ”€โ”€ XKBgeom.h
โ”‚ย ย  โ”œโ”€โ”€ XKBproto.h
โ”‚ย ย  โ”œโ”€โ”€ XKBrules.h
โ”‚ย ย  โ”œโ”€โ”€ XKBsrv.h
โ”‚ย ย  โ”œโ”€โ”€ XKBstr.h
โ”‚ย ย  โ”œโ”€โ”€ XKBui.h
โ”‚ย ย  โ”œโ”€โ”€ XKM.h
โ”‚ย ย  โ”œโ”€โ”€ XKMformat.h
โ”‚ย ย  โ”œโ”€โ”€ XLbx.h
โ”‚ย ย  โ”œโ”€โ”€ XRes.h
โ”‚ย ย  โ”œโ”€โ”€ XResproto.h
โ”‚ย ย  โ”œโ”€โ”€ XShm.h
โ”‚ย ย  โ”œโ”€โ”€ XTest.h
โ”‚ย ย  โ”œโ”€โ”€ Xag.h
โ”‚ย ย  โ”œโ”€โ”€ Xcomposite.h
โ”‚ย ย  โ”œโ”€โ”€ Xcup.h
โ”‚ย ย  โ”œโ”€โ”€ Xdamage.h
โ”‚ย ย  โ”œโ”€โ”€ Xdbe.h
โ”‚ย ย  โ”œโ”€โ”€ Xevie.h
โ”‚ย ย  โ”œโ”€โ”€ Xeviestr.h
โ”‚ย ย  โ”œโ”€โ”€ Xext.h
โ”‚ย ย  โ”œโ”€โ”€ Xfixes.h
โ”‚ย ย  โ”œโ”€โ”€ Xge.h
โ”‚ย ย  โ”œโ”€โ”€ Xinerama.h
โ”‚ย ย  โ”œโ”€โ”€ Xpresent.h
โ”‚ย ย  โ”œโ”€โ”€ Xrandr.h
โ”‚ย ย  โ”œโ”€โ”€ Xrender.h
โ”‚ย ย  โ”œโ”€โ”€ Xv.h
โ”‚ย ย  โ”œโ”€โ”€ XvMC.h
โ”‚ย ย  โ”œโ”€โ”€ XvMClib.h
โ”‚ย ย  โ”œโ”€โ”€ XvMCproto.h
โ”‚ย ย  โ”œโ”€โ”€ Xvlib.h
โ”‚ย ย  โ”œโ”€โ”€ Xvproto.h
โ”‚ย ย  โ”œโ”€โ”€ ag.h
โ”‚ย ย  โ”œโ”€โ”€ agproto.h
โ”‚ย ย  โ”œโ”€โ”€ applewm.h
โ”‚ย ย  โ”œโ”€โ”€ applewmconst.h
โ”‚ย ย  โ”œโ”€โ”€ applewmproto.h
โ”‚ย ย  โ”œโ”€โ”€ bigreqsproto.h
โ”‚ย ย  โ”œโ”€โ”€ bigreqstr.h
โ”‚ย ย  โ”œโ”€โ”€ composite.h
โ”‚ย ย  โ”œโ”€โ”€ compositeproto.h
โ”‚ย ย  โ”œโ”€โ”€ cup.h
โ”‚ย ย  โ”œโ”€โ”€ cupproto.h
โ”‚ย ย  โ”œโ”€โ”€ damageproto.h
โ”‚ย ย  โ”œโ”€โ”€ damagewire.h
โ”‚ย ย  โ”œโ”€โ”€ dbe.h
โ”‚ย ย  โ”œโ”€โ”€ dbeproto.h
โ”‚ย ย  โ”œโ”€โ”€ dmx.h
โ”‚ย ย  โ”œโ”€โ”€ dmxext.h
โ”‚ย ย  โ”œโ”€โ”€ dmxproto.h
โ”‚ย ย  โ”œโ”€โ”€ dpms.h
โ”‚ย ย  โ”œโ”€โ”€ dpmsconst.h
โ”‚ย ย  โ”œโ”€โ”€ dpmsproto.h
โ”‚ย ย  โ”œโ”€โ”€ dri2proto.h
โ”‚ย ย  โ”œโ”€โ”€ dri2tokens.h
โ”‚ย ย  โ”œโ”€โ”€ dri3proto.h
โ”‚ย ย  โ”œโ”€โ”€ evieproto.h
โ”‚ย ย  โ”œโ”€โ”€ extutil.h
โ”‚ย ย  โ”œโ”€โ”€ fontcache.h
โ”‚ย ย  โ”œโ”€โ”€ fontcacheP.h
โ”‚ย ย  โ”œโ”€โ”€ fontcachstr.h
โ”‚ย ย  โ”œโ”€โ”€ ge.h
โ”‚ย ย  โ”œโ”€โ”€ geproto.h
โ”‚ย ย  โ”œโ”€โ”€ lbx.h
โ”‚ย ย  โ”œโ”€โ”€ lbxproto.h
โ”‚ย ย  โ”œโ”€โ”€ mitmiscconst.h
โ”‚ย ย  โ”œโ”€โ”€ mitmiscproto.h
โ”‚ย ย  โ”œโ”€โ”€ multibuf.h
โ”‚ย ย  โ”œโ”€โ”€ multibufconst.h
โ”‚ย ย  โ”œโ”€โ”€ multibufproto.h
โ”‚ย ย  โ”œโ”€โ”€ panoramiXext.h
โ”‚ย ย  โ”œโ”€โ”€ panoramiXproto.h
โ”‚ย ย  โ”œโ”€โ”€ presentproto.h
โ”‚ย ย  โ”œโ”€โ”€ presenttokens.h
โ”‚ย ย  โ”œโ”€โ”€ randr.h
โ”‚ย ย  โ”œโ”€โ”€ randrproto.h
โ”‚ย ย  โ”œโ”€โ”€ record.h
โ”‚ย ย  โ”œโ”€โ”€ recordconst.h
โ”‚ย ย  โ”œโ”€โ”€ recordproto.h
โ”‚ย ย  โ”œโ”€โ”€ recordstr.h
โ”‚ย ย  โ”œโ”€โ”€ render.h
โ”‚ย ย  โ”œโ”€โ”€ renderproto.h
โ”‚ย ย  โ”œโ”€โ”€ saver.h
โ”‚ย ย  โ”œโ”€โ”€ saverproto.h
โ”‚ย ย  โ”œโ”€โ”€ scrnsaver.h
โ”‚ย ย  โ”œโ”€โ”€ secur.h
โ”‚ย ย  โ”œโ”€โ”€ security.h
โ”‚ย ย  โ”œโ”€โ”€ securproto.h
โ”‚ย ย  โ”œโ”€โ”€ shape.h
โ”‚ย ย  โ”œโ”€โ”€ shapeconst.h
โ”‚ย ย  โ”œโ”€โ”€ shapeproto.h
โ”‚ย ย  โ”œโ”€โ”€ shapestr.h
โ”‚ย ย  โ”œโ”€โ”€ shm.h
โ”‚ย ย  โ”œโ”€โ”€ shmproto.h
โ”‚ย ย  โ”œโ”€โ”€ shmstr.h
โ”‚ย ย  โ”œโ”€โ”€ sync.h
โ”‚ย ย  โ”œโ”€โ”€ syncconst.h
โ”‚ย ย  โ”œโ”€โ”€ syncproto.h
โ”‚ย ย  โ”œโ”€โ”€ syncstr.h
โ”‚ย ย  โ”œโ”€โ”€ vldXvMC.h
โ”‚ย ย  โ”œโ”€โ”€ xcmiscproto.h
โ”‚ย ย  โ”œโ”€โ”€ xcmiscstr.h
โ”‚ย ย  โ”œโ”€โ”€ xf86bigfont.h
โ”‚ย ย  โ”œโ”€โ”€ xf86bigfproto.h
โ”‚ย ย  โ”œโ”€โ”€ xf86bigfstr.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dga.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dga1const.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dga1proto.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dga1str.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dgaconst.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dgaproto.h
โ”‚ย ย  โ”œโ”€โ”€ xf86dgastr.h
โ”‚ย ย  โ”œโ”€โ”€ xf86misc.h
โ”‚ย ย  โ”œโ”€โ”€ xf86mscstr.h
โ”‚ย ย  โ”œโ”€โ”€ xf86rush.h
โ”‚ย ย  โ”œโ”€โ”€ xf86rushstr.h
โ”‚ย ย  โ”œโ”€โ”€ xf86vm.h
โ”‚ย ย  โ”œโ”€โ”€ xf86vmode.h
โ”‚ย ย  โ”œโ”€โ”€ xf86vmproto.h
โ”‚ย ย  โ”œโ”€โ”€ xf86vmstr.h
โ”‚ย ย  โ”œโ”€โ”€ xfixesproto.h
โ”‚ย ย  โ”œโ”€โ”€ xfixeswire.h
โ”‚ย ย  โ”œโ”€โ”€ xtestconst.h
โ”‚ย ย  โ”œโ”€โ”€ xtestext1.h
โ”‚ย ย  โ”œโ”€โ”€ xtestext1const.h
โ”‚ย ย  โ”œโ”€โ”€ xtestext1proto.h
โ”‚ย ย  โ”œโ”€โ”€ xtestproto.h
โ”‚ย ย  โ”œโ”€โ”€ xtrapbits.h
โ”‚ย ย  โ”œโ”€โ”€ xtrapddmi.h
โ”‚ย ย  โ”œโ”€โ”€ xtrapdi.h
โ”‚ย ย  โ”œโ”€โ”€ xtrapemacros.h
โ”‚ย ย  โ”œโ”€โ”€ xtraplib.h
โ”‚ย ย  โ”œโ”€โ”€ xtraplibp.h
โ”‚ย ย  โ””โ”€โ”€ xtrapproto.h
โ”œโ”€โ”€ fonts
โ”‚ย ย  โ”œโ”€โ”€ FS.h
โ”‚ย ย  โ”œโ”€โ”€ FSlib.h
โ”‚ย ย  โ”œโ”€โ”€ FSproto.h
โ”‚ย ย  โ”œโ”€โ”€ bdfint.h
โ”‚ย ย  โ”œโ”€โ”€ bitmap.h
โ”‚ย ย  โ”œโ”€โ”€ bufio.h
โ”‚ย ย  โ”œโ”€โ”€ fntfil.h
โ”‚ย ย  โ”œโ”€โ”€ fntfilio.h
โ”‚ย ย  โ”œโ”€โ”€ fntfilst.h
โ”‚ย ย  โ”œโ”€โ”€ font.h
โ”‚ย ย  โ”œโ”€โ”€ fontconf.h
โ”‚ย ย  โ”œโ”€โ”€ fontenc.h
โ”‚ย ย  โ”œโ”€โ”€ fontencc.h
โ”‚ย ย  โ”œโ”€โ”€ fontmisc.h
โ”‚ย ย  โ”œโ”€โ”€ fontproto.h
โ”‚ย ย  โ”œโ”€โ”€ fontshow.h
โ”‚ย ย  โ”œโ”€โ”€ fontstruct.h
โ”‚ย ย  โ”œโ”€โ”€ fontutil.h
โ”‚ย ย  โ”œโ”€โ”€ fontxlfd.h
โ”‚ย ย  โ”œโ”€โ”€ fsmasks.h
โ”‚ย ย  โ”œโ”€โ”€ ft.h
โ”‚ย ย  โ”œโ”€โ”€ ftfuncs.h
โ”‚ย ย  โ”œโ”€โ”€ libxfont2.h
โ”‚ย ย  โ””โ”€โ”€ pcf.h
โ”œโ”€โ”€ keysym.h
โ”œโ”€โ”€ keysymdef.h
โ”œโ”€โ”€ xpm.h
โ””โ”€โ”€ xshmfence.h

13 directories, 528 files

Anything else?

@MikeMcQuaid:

@javian @RandomDSdevel That doesn't seem like the right fix, I'm afraid. That line has been present for a long time and we have plenty of depends_on :x11 formulae that are able to find the header files. โ€ฆ

     Fair enough. I'll close my PR, then?

I assume this is some kind of localised issue (whether to @RandomDSdevel or vim itself) rather than a global problem based off of x11-using stuff going through CI lately and not blowing up. Potentially worth you stepping back through the git history @RandomDSdevel and re-checking recent previous versions to see if those compile as you expect.

_(You're also welcome to put a PR in that turns x11 support on by default to see what happens, which is probably what I'll do later to double check my assumption here. Obviously won't be merging that PR but it may help work out what's going on more thoroughly than running against any one version of macOS or any one localised environment)._

Fair enough. I'll close my PR, then?

@RandomDSdevel Yes, please.

@RandomDSdevel it looks like all the files are there, so I would agree with @DomT4 that this is not a Homebrew/brew bug. I was able to build vim with the options you used:

https://gist.github.com/554a000f526c816a33eb70d0fb892775

@MikeMcQuaid: Done.

@maxim-belkin, @DomT4:

     Hmm, odd. I don't think my XQuartz installation is corrupted, but I can try reinstalling it and testing a vim build after that.

@DomT4:

I assume this is some kind of localised issue (whether to @RandomDSdevel or vim itself) rather than a global problem based off of x11-using stuff going through CI lately and not blowing up. Potentially worth you stepping back through the git history @RandomDSdevel and re-checking recent previous versions to see if those compile as you expect.

     Good idea. I already know vim versions up through v8.1.0202, the last version offered through Homebrew before v8.1.0250, worked, though.

I'm happy for us to keep walking this through with you but since nobody can reproduce the issue I'm going to consider this not a brew or core bug and close the issue out. Happy for people to keep talking as necessary/desired here though.

@DomT4:

     Right. To continue, reinstalling XQuartz via Homebrew Cask by running brew cask reinstall -vd xquartz didn't fix building vim. I'll do a bit more code spelunking to see if there's anything obvious I can uncoverโ€ฆ (Maybe @brammool and/or @nuko8, with whom I was discussing this upstream here, might have some ideas if I don't see anything noteworthyโ€ฆ)

Could you test to download a vim source tarball, run ./configure --with-x and see if you get the same result ?

@javian:

     Nope, configure runs just fine outside Homebrew, puzzlingly enough. Here's the output:

Bryces-HD-1-TB:src zadmin$ ./configure --with-x
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... no
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... no
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... no
checking --enable-tclinterp argument... no
checking --enable-rubyinterp argument... no
checking --enable-cscope argument... no
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... defaulting to yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... no
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... yes
checking for _XdmcpAuthDoIt in -lXdmcp... yes
checking for IceOpenConnection in -lICE... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking if X11 header files implicitly declare return values... no
checking size of wchar_t is 2 bytes... yes
checking --enable-gui argument... yes/auto - automatic GUI support
checking whether or not to look for GTK+ 2... yes
checking whether or not to look for GNOME... no
checking whether or not to look for Motif... yes
checking whether or not to look for Athena... yes
checking whether or not to look for neXtaw... yes
checking whether or not to look for Carbon... yes
checking for Carbon GUI... yes
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes
checking for /proc link to executable... no
checking for CYGWIN or MSYS environment... no
checking whether toupper is broken... no
checking whether __DATE__ and __TIME__ work... yes
checking whether __attribute__((unused)) is allowed... yes
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for unistd.h... (cached) yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking util/debug.h usability... no
checking util/debug.h presence... no
checking for util/debug.h... no
checking util/msg18n.h usability... no
checking util/msg18n.h presence... no
checking for util/msg18n.h... no
checking frame.h usability... no
checking frame.h presence... no
checking for frame.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking sys/access.h usability... no
checking sys/access.h presence... no
checking for sys/access.h... no
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... no
checking for sys/sysinfo.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for sys/ptem.h... no
checking for sys/sysctl.h... yes
checking for pthread_np.h... no
checking for strings.h... (cached) yes
checking whether gcc needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for uint32_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for ino_t... yes
checking for dev_t... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for rlim_t... yes
checking for stack_t... yes
checking whether stack_t has an ss_base field... no
checking --with-tlib argument... empty: automatic terminal library selection
checking for tgetent in -ltinfo... no
checking for tgetent in -lncurses... yes
checking whether we talk terminfo... yes
checking what tgetent() returns for an unknown terminal... non-zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no
checking whether sys/select.h and sys/time.h may both be included... yes
checking for /dev/ptc... no
checking for SVR4 ptys... yes
checking for ptyranges... pqrstuvw / 0123456789abcdef
checking default tty permissions/group... can't determine - assume ptys are world accessible
world
checking return type of signal handlers... void
checking for struct sigcontext... yes
checking getcwd implementation is broken... no
checking for fchdir... yes
checking for fchown... yes
checking for fchmod... yes
checking for fsync... yes
checking for getcwd... yes
checking for getpseudotty... no
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for getrlimit... yes
checking for gettimeofday... yes
checking for getwd... yes
checking for lstat... yes
checking for memset... yes
checking for mkdtemp... yes
checking for nanosleep... yes
checking for opendir... yes
checking for putenv... yes
checking for qsort... yes
checking for readlink... yes
checking for select... yes
checking for setenv... yes
checking for getpgid... yes
checking for setpgid... yes
checking for setsid... yes
checking for sigaltstack... yes
checking for sigstack... no
checking for sigset... yes
checking for sigsetjmp... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigvec... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strftime... yes
checking for stricmp... no
checking for strncasecmp... yes
checking for strnicmp... no
checking for strpbrk... yes
checking for strtol... yes
checking for tgetent... yes
checking for towlower... yes
checking for towupper... yes
checking for iswupper... yes
checking for usleep... yes
checking for utime... yes
checking for utimes... yes
checking for mblen... yes
checking for ftruncate... yes
checking for unsetenv... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for st_blksize... yes
checking whether stat() ignores a trailing slash... no
checking for iconv_open()... yes; with -liconv
checking for nl_langinfo(CODESET)... yes
checking for strtod in -lm... yes
checking for strtod() and other floating point functions... yes
checking for isinf()... yes
checking for isnan()... yes
checking --disable-acl argument... no
checking for acl_get_file in -lposix1e... no
checking for acl_get_file in -lacl... no
checking for POSIX ACL support... yes
checking for acl_get in -lsec... no
checking for Solaris ACL support... no
checking for AIX ACL support... no
checking --disable-gpm argument... no
checking for gpm... no
checking --disable-sysmouse argument... no
checking for sysmouse... no
checking for FD_CLOEXEC... yes
checking for rename... yes
checking for sysctl... yes
checking for sysinfo... not usable
checking for sysinfo.mem_unit... no
checking for sysconf... yes
checking size of int... 4
checking size of long... 8
checking size of time_t... 8
checking size of off_t... 8
checking uint32_t is 32 bits... ok
checking whether memmove handles overlaps... yes
checking whether X_LOCALE needed... yes
checking whether Xutf8SetWMProperties() can be used... yes
checking for _xpg4_setrunelocale in -lxpg4... no
checking how to create tags... ctags -t
checking how to run man with a section nr... man -s
checking --disable-nls argument... no
checking for msgfmt... no
checking for NLS... msgfmt not found - disabled
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen()... yes
checking for dlsym()... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking whether we need macOS frameworks... yes, we need Carbon
checking for GCC 3 or later... yes
checking whether we need -D_FORTIFY_SOURCE=1... yes
checking whether we need to force -D_FILE_OFFSET_BITS=64... no
checking linker --as-needed support... no
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h

Granted, that's not with any of the other options Homebrew adds for me given the ones I give it, but one would hope that there aren't any spooky, cross-option dependencies at play here. (Note that I made sure that this is with the same version of Vim, v8.1.0250, as the one under which I initially encountered this issue even though Homebrew has pulled v8.1.0300 down in the meantime. I'll update this thread when I reproduce the issue with the new release, though I doubt tha'll be a problem โ€” reading through release notes or coarse-grain changelogs like I usually do before running any updates anyway didn't reveal any changes that would affect Vim's configure-time X11 detection logic, AFAICR.) I'll compare copies of src/auto/config.log next.

P. S.: Apologies for the delay.

@javian:

     Yup, the build still fails identically inside Homebrew on my end. Anyway, here're those config.logs I promised. From that earlier out-of-Homebrew test configure of vim v8.1.0250, we have this. On the other hand, from the in-Homebrew test-upgrade attempt for v8.1.0300, I get this. Nothing beyond the expected obvious, but maybe I'm missing something after just a rough skim.

     In all honesty, I admit this one's quite the head-scratcher. Thinking out loud, to review, given, in no particular order, that:

  • Earlier, @maxim-belkin was able to build vim successfully using the exact same options I have set up.
  • CI successfully built Homebrew's default formula configuration for its vim package.
  • The only other change in Vim's configure logic between v8.1.0202 and v8.1.0250 had to do with updating how it handled testing loading Ruby as a dynamic library. (I'm keeping my search narrowed to look between the last known working release and the first known broken release, naturally.)
  • The same broken vim release, v8.1.0250, configures just fine --with-x outside of Homebrew (again, barring any other โ€” hopefully unlikely โ€” environment/configuration interactions.)
  • I've checked the integrity of my XQuartz installation instance, even going so far as to brew cask reinstall it, and we've collectively found nothing amiss with it.
  • IIRC, the relevant part of Homebrew's XQuartz handling hasn't been changed in any recent releases.

This issue has me rather flummoxed. (And that's if I haven't forgotten something either, too.) What other build logs and/or artifacts could/should I root around in for clues?

@maxim-belkin used High Sierra so its not comparable since you are on El Cap. Jenkins did manage to build it without any issues so that would conclude its not totally broken. If you wanted to try and isolate it even more then you could make a copy of the Formula and just use the --with-x option to see if you get the same result still.

     Heh, I _knew_ I'd forget something; added to that summary post I made. Anyway, I'll try your suggestion after I do a test Homebrew build using only the vim formula's --with-client-server option and nothing else that's not on by default.

I'm also having this problem on High Sierra (all updates installed), no issues building an earlier version weeks ago. XQuarts installed and headers and libs /opt/X11/lib/X11 /opt/X11/include/X11, and double checked XCode had all command line updates installed.

Original options used on last successful build:
/usr/local/Cellar/vim/8.1.0202
Built from source on 2018-07-24 at 16:58:56 with: --with-client-server --with-gettext --with-lua --with-luajit --with-python@2 --with-tcl

brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

==> Upgrading 1 outdated package, with result:
vim 8.1.0202 -> 8.1.0300
==> Upgrading vim --with-gettext --with-client-server --with-python@2
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

Attempting to brew against --HEAD also fails with the same error.

brew reinstall vim --with-gettext --with-lua --with-python@2 --with-tcl --HEAD
==> Reinstalling vim --with-gettext --with-client-server --with-python
==> Cloning https://github.com/vim/vim.git
Cloning into '/Users/jbriefma/Library/Caches/Homebrew/vim--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/HEAD-0529583/
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

@javian:

     I've gone and done both of those experiments we discussed earlier, and now the results are in:

  • Using the vim formula from Homebrew/homebrew-core master, but building using only its --with-client-server option, failed.
  • Using this minimal test vim formula and building --with-client-serverโ€ฆsucceeded, surprisingly enough (to _me_, at leastโ€ฆ)

So this confirms that the issue is with Homebrew, or at least with a recent change to the vim formula. To be honest, I hadn't considered that there might have been any commits touching that file between package releases pulled down by Homebrew. I don't remember there being any, but it's something to look for, anyway. (Barring that, I could start looking through Homebrew/brew for bad commits either manually or using git bisect or something similar. I've never used the latter before, but this seems as good a time to get my hands dirty with it as any.)

P. S.: Also: blargh, weird edge cases like this sure are annoyingโ€ฆ

@sirgatez:

     Oh, sorry; didn't see you there, as I was typing a new reply while you were posting. Another pair of eyes is always good to have.

Rolled back vim.rb to last working version.
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
git log --follow -- vim.rb | grep -B 5 'vim.*8.1.0250'
git checkout e30be00671b8c1b43e70573ed9ca8bffa9b3105f vim.rb

Builds without issue
brew install vim --with-gettext --with-lua --with-python@2 --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0250 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0250: 1,832 files, 30.6MB, built in 1 minute 14 seconds

Re-attempted with -s to ensure built from source.

Interestingly, attempting to rebuild the older version with --with-client-server now also fails with the same error as the new version.

brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl -s
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

Followed up with another build without --with-client-server
brew install vim --with-gettext --with-lua --with-python@2 --with-tcl -s
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0250 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0250: 1,832 files, 30.6MB, built in 1 minute 11 seconds

Reverted back to new version
git checkout 4ac852b29531ff43869eefdfd98fe819d8624cd8 vim.rb

brew install vim --with-gettext --with-lua --with-python@2 --with-tcl -s
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
mkcert

==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 1 minute 10 seconds

No issues without --with-client-server

brew install vim --with-gettext --with-lua --with-python@2 --with-tcl --with-client-server -s
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

     I'm ashamed I hadn't thought to look for less recent issues yet; nice detective work, @sirgatez!

@sirgatez could you try rolling back to the .200 version as well ? Op indicated that it changed between .200 and .250.

@javian:

     He already did in this comment from earlier:

โ‹ฎ

Interestingly, attempting to rebuild the older version with --with-client-server now also fails with the same error as the new version.

โ‹ฎ

I looked back to check, and there were, as I had recalled earlier, no changes to the vim formula between the Homebrew package version bumps relevant to this issue, so this confirms (or at least strongly hints) that the issue is with a recent Homebrew release. To continue from a train of thought I laid down earlier, I'll post again when I've tracked down which commit is to blame.

@javian:

     git bisect keeps pointing towards Homebrew/brew#4487, though that doesn't seem right, so I must be doing something wrong. (Here's roughly what I ran:

Bryces-HD-1-TB:~ zadmin$ pushd ./Documents/Development/tmp/Homebrew/Package\ Installation\ Backups/vim/
~/Documents/Development/tmp/Homebrew/Package Installation Backups/vim ~
Bryces-HD-1-TB:vim zadmin$ mv -v "$(brew --cellar vim)/8.1.0202" ./
/usr/local/Cellar/vim/8.1.0202 -> ./8.1.0202
Bryces-HD-1-TB:vim zadmin$ pushd ../../
~/Documents/Development/tmp/Homebrew ~/Documents/Development/tmp/Homebrew/Package Installation Backups/vim ~
Bryces-HD-1-TB:Homebrew zadmin$ mkdir -v ./Troubleshooting
mkdir: created directory './Troubleshooting'
Bryces-HD-1-TB:Homebrew zadmin$ cd ./Troubleshooting/
Bryces-HD-1-TB:Troubleshooting zadmin$ mkdir -v ./Scripts
mkdir: created directory './Scripts'
Bryces-HD-1-TB:Troubleshooting zadmin$ cd ./Scripts/
Bryces-HD-1-TB:Scripts zadmin$ nano --noread ./bisection_script.bash
Bryces-HD-1-TB:Scripts zadmin$ cat ./bisection_script.bash
#!/usr/bin/env bash

HOMEBREW_BUILD_FROM_SOURCE=1 brew install -v --build-from-source vim --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
test_installation_attempt_exit_code="$?"
if [[ -d "$(brew --cellar vim)" ]] && find "$(brew --cellar vim)/" -type d -depth 1; then
  brew uninstall -vd vim
fi
exit "$test_installation_attempt_exit_code"
Bryces-HD-1-TB:Scripts zadmin$ pushd "$(brew --repository)"
/usr/local/Homebrew ~/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts ~/Documents/Development/tmp/Homebrew/Package Installation Backups/vim ~
Bryces-HD-1-TB:Homebrew zadmin$ git bisect start 1.7.2 1.7.0
Bisecting: 203 revisions left to test after this (roughly 8 steps)
[d58607a4499dbdb1e5b0012eb4a38551abb56606] Merge pull request #4590 from reitermarkus/homebrew-color
Bryces-HD-1-TB:Homebrew zadmin$ git bisect run ~/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-10043-igsll8.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/cask/lib:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/d20180826-10045-su5t9e
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.1-106-gd58607a
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: d58607a4499dbdb1e5b0012eb4a38551abb56606
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 100 revisions left to test after this (roughly 7 steps)
[b6e54a06e03ab2affc60b6c70f991e335a84ecbc] Refactor unpack strategies into separate files.
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-11568-1dj709h.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/cask/lib:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/d20180826-11570-4ptmne
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.1-5-gb6e54a0
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: b6e54a06e03ab2affc60b6c70f991e335a84ecbc
Last commit: 5 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 50 revisions left to test after this (roughly 6 steps)
[679eda3155574ddc963d7a551265013ea6f83488] Merge pull request #4516 from reitermarkus/zsh-completion
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-13092-1casq6w.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/cask/lib:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/d20180826-13094-10klme6
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.0-50-g679eda3
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 679eda3155574ddc963d7a551265013ea6f83488
Last commit: 5 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 27 revisions left to test after this (roughly 5 steps)
[f2d823445ec979dd911ce936b4bb96258844057c] ruby.sh: remove linkage cache on upgrade.
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-14617-j7m55f.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/d20180826-14619-twzg4g
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.0-22-gf2d8234
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: f2d823445ec979dd911ce936b4bb96258844057c
Last commit: 6 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 10 revisions left to test after this (roughly 4 steps)
[c8a066260305b28ace3d4a1b2bffef672e463bac] Merge pull request #4489 from reitermarkus/unpack-error
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-16143-qmdsv3.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/vim-20180826-16145-q95rq9
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.0-11-gc8a0662
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: c8a066260305b28ace3d4a1b2bffef672e463bac
Last commit: 6 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 5 revisions left to test after this (roughly 3 steps)
[a6aefb43c57a27dd38370a55e9eba269ed8b8890] Donโ€™t recurse into nested directories.
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-17667-44gptm.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/vim-20180826-17669-1lgdntj
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.0-5-ga6aefb4
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: a6aefb43c57a27dd38370a55e9eba269ed8b8890
Last commit: 6 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 2 revisions left to test after this (roughly 1 step)
[b1a125754fa382e38020550903e3644b9085da06] Merge pull request #4487 from maxim-belkin/handle-cc
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-19193-yv5ab0.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/vim-20180826-19195-1xdvx4n
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.7.0-2-gb1a1257
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: b1a125754fa382e38020550903e3644b9085da06
Last commit: 6 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

Bisecting: 0 revisions left to test after this (roughly 0 steps)
[20001bbbdafd51ce94c9c40930582471f86fadc8] Handle the case when HOMEBREW_CC = cc
running /Users/zadmin/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts/bisection_script.bash
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz
==> Pouring portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180826-20867-1wy10x9.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
==> Verifying vim-8.1.0300.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/vim-20180826-20869-ha4b54
Error: Vim will not link against both Luajit & Lua simultaneously.
Proceeding with Lua.
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/luajit
checking --with-luajit... no
checking for lua... /usr/local/opt/lua/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/luajit/include... no
checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
==> Configuration
HOMEBREW_VERSION: 1.6.14-5-g20001bb
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 20001bbbdafd51ce94c9c40930582471f86fadc8
Last commit: 6 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff315fb574cbdfd76606581b89073eef0e9b3474
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_FORCE_BREWED_CURL: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_UPDATE_TO_TAG: 1
CPU: dual-core 64-bit core2
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/bin/ruby
Clang: 8.0 build 800
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
Java: 10.0.2
macOS: 10.11.6-x86_64
CLT: 8.2.0.0.1.1480973914
Xcode: 8.2.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: vim 8.1.0300 did not build
Logs:
     /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
     /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
READ THIS: https://docs.brew.sh/Troubleshooting

20001bbbdafd51ce94c9c40930582471f86fadc8 is the first bad commit
commit 20001bbbdafd51ce94c9c40930582471f86fadc8
Author: Maxim Belkin <[email protected]>
Date:   Mon Jul 16 13:40:39 2018 -0500

    Handle the case when HOMEBREW_CC = cc

:040000 040000 6d5d52263444dbca74d030b9714bd87afff1d386 8ed54384e38cd3b9ebd2f9045c6d2b37fda5d957 M  Library
bisect run success
Bryces-HD-1-TB:Homebrew zadmin$ git bisect reset
Checking out files: 100% (481/481), done.
Previous HEAD position was 20001bbbd Handle the case when HOMEBREW_CC = cc
Switched to branch 'stable'
Bryces-HD-1-TB:Homebrew zadmin$ dirs -v
 0  /usr/local/Homebrew
 1  ~/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts
 2  ~/Documents/Development/tmp/Homebrew/Package Installation Backups/vim
 3  ~
Bryces-HD-1-TB:Homebrew zadmin$ popd
~/Documents/Development/tmp/Homebrew/Troubleshooting/Scripts ~/Documents/Development/tmp/Homebrew/Package Installation Backups/vim ~
Bryces-HD-1-TB:Scripts zadmin$ popd
~/Documents/Development/tmp/Homebrew/Package Installation Backups/vim ~
Bryces-HD-1-TB:vim zadmin$ mv -v ./8.1.0202 "$(brew --cellar vim)/8.1.0202"
./8.1.0202 -> /usr/local/Cellar/vim/8.1.0202
Bryces-HD-1-TB:vim zadmin$ popd
~

See any mistakes there that could have thrown me and my tooling off? Oh, and I was only looking as far back as Homebrew v1.7.0 because "$(berw --cellar vim)/8.1.0202/INSTALL_RECEIPT.json" says, among other things, that '{"homebrew_version":"1.7.0",โ€ฆ}.')

P. S.:

     A brew upgrade-test command (like the existing brew update-test command, but for brew upgrade, naturally) would have simplified the above somewhat, but that's otherwise orthogonal to this issue. I'd implement it myself, but I'd just be bumbling my way about the brew codebase trying to hack something together with minimal Ruby-fu, so I'm going to punt for now.

I noticed something now. You have checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer whereas I have checking for developer dir using xcode-select... /Library/Developer/CommandLineTools. I don't seem to have xcode (but I have CLT) installed at the moment - I wonder if that could cause an issue.

@javian I have both XCode and the CLT installed.

@javian: As I recall, so do I.

@sirgatez thanks for confirming that. I'll reopen the issue for now.

@javian .200 also built without issues

brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl -s
==> Downloading https://github.com/vim/vim/archive/v8.1.0200.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0200

################################################################## 100.0%

==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0200/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0200 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0200: 1,837 files, 30.6MB, built in 1 minute 20 seconds

This new message shows when building vim. Nice ๐Ÿ‘
Although I think it should mention this appears to also include "Sierra, High Sierra", and seems to specifically appear to be related to the flag "--with-client-server".

I'll have some more testing to post shortly.

vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949

โžœ Formula git:(master) โœ— for commit in $(git log --follow -- vim.rb | grep -B 5 'vim.8.1' | grep -i '^commit ' | sed 's/^[ t]//;s/[ t]*$//' | awk '{print $2}'); do brew update; brew remove vim; git checkout ${commit} vim.rb;vver="$(brew info vim | head -n 1)";echo "Building commit: ${commit} - ${vver}";brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl -s;if [[ $? != 0 ]]; then echo "ERROR: Commit ${commit} - ${vver} failed to build";else; echo "SUCCESS: Commit ${commit} - ${vver} built successfully";fi;done &> ${HOME}/Desktop/vim.log

Results: built with "brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl -s"
4 Errors
15 Success

โžœ ~ cat ~/Desktop/vim.log | grep '^ERROR: Commit|^SUCCESS: Commit'
ERROR: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD failed to build
ERROR: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD failed to build
ERROR: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD failed to build
ERROR: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD failed to build
SUCCESS: Commit 79e6fead47d85eb239cb1d10061bc79134e1b987 - vim: stable 8.1.0202 (bottled), HEAD built successfully
SUCCESS: Commit adf79cbdd307e2b0c568a48c5d833dbee154882b - vim: stable 8.1.0202 (bottled), HEAD built successfully
SUCCESS: Commit 7fbaaecc049793dfa50e0102e21e53fec714dc0a - vim: stable 8.1.0200 (bottled), HEAD built successfully
SUCCESS: Commit 669147c5f6befa4f87e95be6e38d976f2e9d1b33 - vim: stable 8.1.0200 (bottled), HEAD built successfully
SUCCESS: Commit 2eafaaa1a07b4f4b46fcf1996b9d48694188ff3e - vim: stable 8.1.0150 (bottled), HEAD built successfully
SUCCESS: Commit b99670611c96adc5253015c1c578bae07c2d4e2a - vim: stable 8.1.0150 (bottled), HEAD built successfully
SUCCESS: Commit 8f1592d8aaa9833e829b5ebc02093631ae748683 - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit 68fcc643e1e14eb03f61e89fb56be6168b1ccd37 - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit 9136c38c5c3a5e350dd1f9e8dc59bce65beeac1d - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit feaf042ef34736b3d02807911886f95fd0c126ba - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit ead1bc834aab43e66202fc01c9551423d14b1bbe - vim: stable 8.1.0050 (bottled), HEAD built successfully
SUCCESS: Commit ac6a6fb3748b009463e94ce774082ad3dcb79835 - vim: stable 8.1.0050 (bottled), HEAD built successfully
SUCCESS: Commit db3c9c7dfa6b70ab7798bf9f042b854b0a116c7e - vim: stable 8.1.0001 (bottled), HEAD built successfully
SUCCESS: Commit 21b3233afd7f880612cbadfbc3f69d15d3d82f25 - vim: stable 8.1.0001 (bottled), HEAD built successfully
SUCCESS: Commit 7767541b4c4c0c218a76feb6c73e39b21bd25600 - vim: stable 8.1.0001 (bottled), HEAD built successfully

Raw Logs:

Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0200... (1,837 files, 30.6MB)
Building commit: 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinter
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinter
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: 79e6fead47d85eb239cb1d10061bc79134e1b987 - vim: stable 8.1.0202 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0202.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0202

################################################################## 100.0%

==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0202/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinter
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0202 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0202: 1,837 files, 30.6MB, built in 1 minute 20 seconds
SUCCESS: Commit 79e6fead47d85eb239cb1d10061bc79134e1b987 - vim: stable 8.1.0202 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0202... (1,837 files, 30.6MB)
Building commit: adf79cbdd307e2b0c568a48c5d833dbee154882b - vim: stable 8.1.0202 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0202.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0202.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0202/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0202 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0202: 1,837 files, 30.6MB, built in 1 minute 12 seconds
SUCCESS: Commit adf79cbdd307e2b0c568a48c5d833dbee154882b - vim: stable 8.1.0202 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0202... (1,837 files, 30.6MB)
Building commit: 7fbaaecc049793dfa50e0102e21e53fec714dc0a - vim: stable 8.1.0200 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0200.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0200.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0200/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0200 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0200: 1,837 files, 30.6MB, built in 1 minute 9 seconds
SUCCESS: Commit 7fbaaecc049793dfa50e0102e21e53fec714dc0a - vim: stable 8.1.0200 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0200... (1,837 files, 30.6MB)
Building commit: 669147c5f6befa4f87e95be6e38d976f2e9d1b33 - vim: stable 8.1.0200 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0200.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0200.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0200/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0200 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0200: 1,837 files, 30.6MB, built in 1 minute 9 seconds
SUCCESS: Commit 669147c5f6befa4f87e95be6e38d976f2e9d1b33 - vim: stable 8.1.0200 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0200... (1,837 files, 30.6MB)
Building commit: 2eafaaa1a07b4f4b46fcf1996b9d48694188ff3e - vim: stable 8.1.0150 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0150.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0150

################################################################## 100.0%

==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0150/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0150 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0150: 1,790 files, 30.4MB, built in 1 minute 13 seconds
SUCCESS: Commit 2eafaaa1a07b4f4b46fcf1996b9d48694188ff3e - vim: stable 8.1.0150 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0150... (1,790 files, 30.4MB)
Building commit: b99670611c96adc5253015c1c578bae07c2d4e2a - vim: stable 8.1.0150 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0150.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0150.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0150/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0150 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0150: 1,790 files, 30.4MB, built in 1 minute 11 seconds
SUCCESS: Commit b99670611c96adc5253015c1c578bae07c2d4e2a - vim: stable 8.1.0150 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0150... (1,790 files, 30.4MB)
Building commit: 8f1592d8aaa9833e829b5ebc02093631ae748683 - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0100

################################################################## 100.0%

==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100_2/sh
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100_2 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100_2: 1,787 files, 30.2MB, built in 1 minute 13 seconds
SUCCESS: Commit 8f1592d8aaa9833e829b5ebc02093631ae748683 - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100_2... (1,787 files, 30.2MB)
Building commit: 68fcc643e1e14eb03f61e89fb56be6168b1ccd37 - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100_1/sh
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100_1 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100_1: 1,787 files, 30.2MB, built in 1 minute 8 seconds
SUCCESS: Commit 68fcc643e1e14eb03f61e89fb56be6168b1ccd37 - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100_1... (1,787 files, 30.2MB)
Building commit: 9136c38c5c3a5e350dd1f9e8dc59bce65beeac1d - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100: 1,787 files, 30.2MB, built in 1 minute 11 seconds
SUCCESS: Commit 9136c38c5c3a5e350dd1f9e8dc59bce65beeac1d - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100... (1,787 files, 30.2MB)
Building commit: feaf042ef34736b3d02807911886f95fd0c126ba - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100: 1,787 files, 30.2MB, built in 1 minute 11 seconds
SUCCESS: Commit feaf042ef34736b3d02807911886f95fd0c126ba - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100... (1,787 files, 30.2MB)
Building commit: ead1bc834aab43e66202fc01c9551423d14b1bbe - vim: stable 8.1.0050 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0050.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0050

################################################################## 100.0%

==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0050/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0050 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0050: 1,787 files, 30.1MB, built in 1 minute 16 seconds
SUCCESS: Commit ead1bc834aab43e66202fc01c9551423d14b1bbe - vim: stable 8.1.0050 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0050... (1,787 files, 30.1MB)
Building commit: ac6a6fb3748b009463e94ce774082ad3dcb79835 - vim: stable 8.1.0050 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0050.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0050.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0050/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0050 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0050: 1,787 files, 30.1MB, built in 1 minute 16 seconds
SUCCESS: Commit ac6a6fb3748b009463e94ce774082ad3dcb79835 - vim: stable 8.1.0050 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0050... (1,787 files, 30.1MB)
Building commit: db3c9c7dfa6b70ab7798bf9f042b854b0a116c7e - vim: stable 8.1.0001 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0001.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0001

################################################################## 100.0%

==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0001/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0001 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0001: 1,787 files, 30.1MB, built in 1 minute 13 seconds
SUCCESS: Commit db3c9c7dfa6b70ab7798bf9f042b854b0a116c7e - vim: stable 8.1.0001 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0001... (1,787 files, 30.1MB)
Building commit: 21b3233afd7f880612cbadfbc3f69d15d3d82f25 - vim: stable 8.1.0001 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0001.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0001.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0001/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0001 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0001: 1,787 files, 30.1MB, built in 1 minute 8 seconds
SUCCESS: Commit 21b3233afd7f880612cbadfbc3f69d15d3d82f25 - vim: stable 8.1.0001 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0001... (1,787 files, 30.1MB)
Building commit: 7767541b4c4c0c218a76feb6c73e39b21bd25600 - vim: stable 8.1.0001 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0001.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0001.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0001/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0001 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0001: 1,787 files, 30.1MB, built in 1 minute 9 seconds
SUCCESS: Commit 7767541b4c4c0c218a76feb6c73e39b21bd25600 - vim: stable 8.1.0001 (bottled), HEAD built successfully

for commit in $(git log --follow -- vim.rb | grep -B 5 'vim.8.1' | grep -i '^commit ' | sed 's/^[ t]//;s/[ t]*$//' | awk '{print $2}'); do brew update; brew remove vim; git checkout ${commit} vim.rb;vver="$(brew info vim | head -n 1)";echo "Building commit: ${commit} - ${vver}";brew install vim --with-gettext --with-lua --with-python@2 --with-tcl -s;if [[ $? != 0 ]]; then echo "ERROR: Commit ${commit} - ${vver} failed to build";else; echo "SUCCESS: Commit ${commit} - ${vver} built successfully";fi;done &> ${HOME}/Desktop/vim2.log

Results: built with "brew install vim --with-gettext --with-lua --with-python@2 --with-tcl -s"
0 Errors
19 Success

โžœ ~ cat ~/Desktop/vim2.log | grep '^ERROR: Commit|^SUCCESS: Commit'
SUCCESS: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD built successfully
SUCCESS: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD built successfully
SUCCESS: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD built successfully
SUCCESS: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD built successfully
SUCCESS: Commit 79e6fead47d85eb239cb1d10061bc79134e1b987 - vim: stable 8.1.0202 (bottled), HEAD built successfully
SUCCESS: Commit adf79cbdd307e2b0c568a48c5d833dbee154882b - vim: stable 8.1.0202 (bottled), HEAD built successfully
SUCCESS: Commit 7fbaaecc049793dfa50e0102e21e53fec714dc0a - vim: stable 8.1.0200 (bottled), HEAD built successfully
SUCCESS: Commit 669147c5f6befa4f87e95be6e38d976f2e9d1b33 - vim: stable 8.1.0200 (bottled), HEAD built successfully
SUCCESS: Commit 2eafaaa1a07b4f4b46fcf1996b9d48694188ff3e - vim: stable 8.1.0150 (bottled), HEAD built successfully
SUCCESS: Commit b99670611c96adc5253015c1c578bae07c2d4e2a - vim: stable 8.1.0150 (bottled), HEAD built successfully
SUCCESS: Commit 8f1592d8aaa9833e829b5ebc02093631ae748683 - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit 68fcc643e1e14eb03f61e89fb56be6168b1ccd37 - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit 9136c38c5c3a5e350dd1f9e8dc59bce65beeac1d - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit feaf042ef34736b3d02807911886f95fd0c126ba - vim: stable 8.1.0100 (bottled), HEAD built successfully
SUCCESS: Commit ead1bc834aab43e66202fc01c9551423d14b1bbe - vim: stable 8.1.0050 (bottled), HEAD built successfully
SUCCESS: Commit ac6a6fb3748b009463e94ce774082ad3dcb79835 - vim: stable 8.1.0050 (bottled), HEAD built successfully
SUCCESS: Commit db3c9c7dfa6b70ab7798bf9f042b854b0a116c7e - vim: stable 8.1.0001 (bottled), HEAD built successfully
SUCCESS: Commit 21b3233afd7f880612cbadfbc3f69d15d3d82f25 - vim: stable 8.1.0001 (bottled), HEAD built successfully
SUCCESS: Commit 7767541b4c4c0c218a76feb6c73e39b21bd25600 - vim: stable 8.1.0001 (bottled), HEAD built successfully

Raw Logs:

Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 1 minute 10 seconds
SUCCESS: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0300... (1,832 files, 30.6MB)
Building commit: 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 1 minute 9 seconds
SUCCESS: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0300... (1,832 files, 30.6MB)
Building commit: e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0250 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0250: 1,832 files, 30.6MB, built in 1 minute 14 seconds
SUCCESS: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0250... (1,832 files, 30.6MB)
Building commit: fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0250 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0250: 1,832 files, 30.6MB, built in 1 minute 12 seconds
SUCCESS: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0250... (1,832 files, 30.6MB)
Building commit: 79e6fead47d85eb239cb1d10061bc79134e1b987 - vim: stable 8.1.0202 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0202.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0202.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0202/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0202 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0202: 1,837 files, 30.6MB, built in 1 minute 7 seconds
SUCCESS: Commit 79e6fead47d85eb239cb1d10061bc79134e1b987 - vim: stable 8.1.0202 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0202... (1,837 files, 30.6MB)
Building commit: adf79cbdd307e2b0c568a48c5d833dbee154882b - vim: stable 8.1.0202 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0202.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0202.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0202/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0202 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0202: 1,837 files, 30.6MB, built in 1 minute 11 seconds
SUCCESS: Commit adf79cbdd307e2b0c568a48c5d833dbee154882b - vim: stable 8.1.0202 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0202... (1,837 files, 30.6MB)
Building commit: 7fbaaecc049793dfa50e0102e21e53fec714dc0a - vim: stable 8.1.0200 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0200.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0200.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0200/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0200 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0200: 1,837 files, 30.6MB, built in 1 minute 9 seconds
SUCCESS: Commit 7fbaaecc049793dfa50e0102e21e53fec714dc0a - vim: stable 8.1.0200 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0200... (1,837 files, 30.6MB)
Building commit: 669147c5f6befa4f87e95be6e38d976f2e9d1b33 - vim: stable 8.1.0200 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0200.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0200.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0200/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0200 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0200: 1,837 files, 30.6MB, built in 1 minute 11 seconds
SUCCESS: Commit 669147c5f6befa4f87e95be6e38d976f2e9d1b33 - vim: stable 8.1.0200 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0200... (1,837 files, 30.6MB)
Building commit: 2eafaaa1a07b4f4b46fcf1996b9d48694188ff3e - vim: stable 8.1.0150 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0150.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0150.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0150/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0150 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0150: 1,790 files, 30.4MB, built in 1 minute 9 seconds
SUCCESS: Commit 2eafaaa1a07b4f4b46fcf1996b9d48694188ff3e - vim: stable 8.1.0150 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0150... (1,790 files, 30.4MB)
Building commit: b99670611c96adc5253015c1c578bae07c2d4e2a - vim: stable 8.1.0150 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0150.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0150.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0150/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0150 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0150: 1,790 files, 30.4MB, built in 1 minute 12 seconds
SUCCESS: Commit b99670611c96adc5253015c1c578bae07c2d4e2a - vim: stable 8.1.0150 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0150... (1,790 files, 30.4MB)
Building commit: 8f1592d8aaa9833e829b5ebc02093631ae748683 - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100_2/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100_2 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100_2: 1,787 files, 30.2MB, built in 1 minute 11 seconds
SUCCESS: Commit 8f1592d8aaa9833e829b5ebc02093631ae748683 - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100_2... (1,787 files, 30.2MB)
Building commit: 68fcc643e1e14eb03f61e89fb56be6168b1ccd37 - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100_1/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100_1 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100_1: 1,787 files, 30.2MB, built in 1 minute 15 seconds
SUCCESS: Commit 68fcc643e1e14eb03f61e89fb56be6168b1ccd37 - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100_1... (1,787 files, 30.2MB)
Building commit: 9136c38c5c3a5e350dd1f9e8dc59bce65beeac1d - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100: 1,787 files, 30.2MB, built in 1 minute 9 seconds
SUCCESS: Commit 9136c38c5c3a5e350dd1f9e8dc59bce65beeac1d - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100... (1,787 files, 30.2MB)
Building commit: feaf042ef34736b3d02807911886f95fd0c126ba - vim: stable 8.1.0100 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0100.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0100.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0100/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0100 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0100: 1,787 files, 30.2MB, built in 1 minute 13 seconds
SUCCESS: Commit feaf042ef34736b3d02807911886f95fd0c126ba - vim: stable 8.1.0100 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0100... (1,787 files, 30.2MB)
Building commit: ead1bc834aab43e66202fc01c9551423d14b1bbe - vim: stable 8.1.0050 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0050.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0050.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0050/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0050 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0050: 1,787 files, 30.1MB, built in 1 minute 13 seconds
SUCCESS: Commit ead1bc834aab43e66202fc01c9551423d14b1bbe - vim: stable 8.1.0050 (bottled), HEAD built successfully
Updated 1 tap (homebrew/cask).
No changes to formulae.
Uninstalling /usr/local/Cellar/vim/8.1.0050... (1,787 files, 30.1MB)
Building commit: ac6a6fb3748b009463e94ce774082ad3dcb79835 - vim: stable 8.1.0050 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0050.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0050.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0050/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0050 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0050: 1,787 files, 30.1MB, built in 1 minute 11 seconds
SUCCESS: Commit ac6a6fb3748b009463e94ce774082ad3dcb79835 - vim: stable 8.1.0050 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0050... (1,787 files, 30.1MB)
Building commit: db3c9c7dfa6b70ab7798bf9f042b854b0a116c7e - vim: stable 8.1.0001 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0001.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0001.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0001/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0001 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0001: 1,787 files, 30.1MB, built in 1 minute 7 seconds
SUCCESS: Commit db3c9c7dfa6b70ab7798bf9f042b854b0a116c7e - vim: stable 8.1.0001 (bottled), HEAD built successfully
To restore the stashed changes to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core run:
'cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core && git stash pop'
Updated 1 tap (homebrew/core).
No changes to formulae.
Uninstalling /usr/local/Cellar/vim/8.1.0001... (1,787 files, 30.1MB)
Building commit: 21b3233afd7f880612cbadfbc3f69d15d3d82f25 - vim: stable 8.1.0001 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0001.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0001.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0001/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0001 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0001: 1,787 files, 30.1MB, built in 1 minute 9 seconds
SUCCESS: Commit 21b3233afd7f880612cbadfbc3f69d15d3d82f25 - vim: stable 8.1.0001 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0001... (1,787 files, 30.1MB)
Building commit: 7767541b4c4c0c218a76feb6c73e39b21bd25600 - vim: stable 8.1.0001 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0001.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0001.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0001/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --without-x --enable-luainterp
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0001 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0001: 1,787 files, 30.1MB, built in 1 minute 6 seconds
SUCCESS: Commit 7767541b4c4c0c218a76feb6c73e39b21bd25600 - vim: stable 8.1.0001 (bottled), HEAD built successfully

for commit in $(git log --follow -- vim.rb | grep -B 5 'vim.8.1' | grep -i '^commit ' | sed 's/^[ t]//;s/[ t]*$//' | awk '{print $2}' | head -n 4); do brew update; brew remove vim; git checkout ${commit} vim.rb;vver="$(brew info vim | head -n 1)";echo "Building commit: ${commit} - ${vver}";brew install vim --with-client-server -s;if [[ $? != 0 ]]; then echo "ERROR: Commit ${commit} - ${vver} failed to build";else; echo "SUCCESS: Commit ${commit} - ${vver} built successfully";fi;done &> ${HOME}/Desktop/vim3.log

Results: built with "brew install vim --with-client-server -s"
4 Errors
0 Success

โžœ ~ cat ~/Desktop/vim3.log | grep '^ERROR: Commit|^SUCCESS: Commit'
ERROR: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD failed to build
ERROR: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD failed to build
ERROR: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD failed to build
ERROR: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD failed to build

Raw Logs:

To restore the stashed changes to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core run:
'cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core && git stash pop'
Updated 1 tap (homebrew/core).
No changes to formulae.
Uninstalling /usr/local/Cellar/vim/8.1.0001... (1,787 files, 30.1MB)
Building commit: 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --with-x
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --with-x
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --with-x
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD failed to build
Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --with-x
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' https://github.com/Homebrew/homebrew-core/issues/30949
ERROR: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD failed to build

for commit in $(git log --follow -- vim.rb | grep -B 5 'vim.8.1' | grep -i '^commit ' | sed 's/^[ t]//;s/[ t]*$//' | awk '{print $2}' | head -n 4); do brew update; brew remove vim; git checkout ${commit} vim.rb;vver="$(brew info vim | head -n 1)";echo "Building commit: ${commit} - ${vver}";brew install vim -s;if [[ $? != 0 ]]; then echo "ERROR: Commit ${commit} - ${vver} failed to build";else; echo "SUCCESS: Commit ${commit} - ${vver} built successfully";fi;done &> ${HOME}/Desktop/vim3.log

Results: built with "brew install vim -s"
0 Errors
4 Success

โžœ ~ cat ~/Desktop/vim4.log | grep '^ERROR: Commit|^SUCCESS: Commit'
SUCCESS: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD built successfully
SUCCESS: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD built successfully
SUCCESS: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD built successfully
SUCCESS: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD built successfully

Raw Logs:

Already up-to-date.
Error: No such keg: /usr/local/Cellar/vim
Building commit: 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --without-x
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,438 files, 23.4MB, built in 1 minute 4 seconds
SUCCESS: Commit 4b9aa90e83182742e07b5ef018c379713a731877 - vim: stable 8.1.0300 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0300... (1,438 files, 23.4MB)
Building commit: 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --without-x
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,438 files, 23.4MB, built in 1 minute 4 seconds
SUCCESS: Commit 7bcbfdd10ae5d7d9d9ad82517684675c3dd4c409 - vim: stable 8.1.0300 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0300... (1,438 files, 23.4MB)
Building commit: e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --without-x
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0250 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0250: 1,438 files, 23.4MB, built in 1 minute 4 seconds
SUCCESS: Commit e30be00671b8c1b43e70573ed9ca8bffa9b3105f - vim: stable 8.1.0250 (bottled), HEAD built successfully
Already up-to-date.
Uninstalling /usr/local/Cellar/vim/8.1.0250... (1,438 files, 23.4MB)
Building commit: fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD
==> Downloading https://github.com/vim/vim/archive/v8.1.0250.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0250.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0250/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --without-x
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0250 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0250: 1,438 files, 23.4MB, built in 1 minute 6 seconds
SUCCESS: Commit fdc655222d3c84a3dbd60431e5cd988a1ba483ec - vim: stable 8.1.0250 (bottled), HEAD built successfully

It also builds just fine without X

if build.with? "client-server"
#opts << "--with-x" # I commented X out.
else
opts << "--without-x"
end

โžœ Formula git:(master) โœ— brew remove vim;brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl
Error: No such keg: /usr/local/Cellar/vim
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 1 minute 11 seconds

Seems to work fine if I tell configure where to find X11 includes and libs.
if build.with? "client-server"
opts << "--with-x" "--x-includes=/opt/X11/include" "--x-libraries=/opt/X11/lib"
else
opts << "--without-x"
end

โžœ Formula git:(master) โœ— brew edit vim
Editing /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
โžœ Formula git:(master) โœ— brew remove vim;brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl
Error: No such keg: /usr/local/Cellar/vim
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 1 minute 10 seconds

Same if I just tell configure where to find X11 includes. But not the libs.
if build.with? "client-server"
opts << "--with-x" "--x-includes=/opt/X11/include"
else
opts << "--without-x"
end

โžœ Formula git:(master) โœ— brew edit vim
Editing /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
โžœ Formula git:(master) โœ— brew remove vim;brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl
Uninstalling /usr/local/Cellar/vim/8.1.0300... (1,832 files, 30.6MB)
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 1 minute 9 seconds

Seems we at least have a mitigation in place now.

I suspect if the issue may reside in the autoconf configuration used to build configure.

Interesting
https://github.com/vim/vim/blob/master/src/configure.ac:256

dnl If Carbon is found, assume we don't want X11
dnl unless it was specifically asked for (--with-x)
dnl or Motif, Athena or GTK GUI is used.
AC_CHECK_HEADER(Carbon/Carbon.h, CARBON=yes)
if test "x$CARBON" = "xyes"; then
  if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
with_x=no
  fi
fi

fi

The files it's looking for seem to exist:
https://github.com/vim/vim/blob/master/src/configure.ac:2207

dnl Check if the X11 header files are correctly installed. On some systems
dnl Xlib.h includes files that don't exist. On some systems X11/Intrinsic.h
dnl is missing.
AC_MSG_CHECKING(if X11 header files can be found)
cflags_save=$CFLAGS
CFLAGS="$CFLAGS $X_CFLAGS"
AC_TRY_COMPILE([#include

include ], ,

AC_MSG_RESULT(yes),
AC_MSG_RESULT(no); no_x=yes)

CFLAGS=$cflags_save

โžœ ~ ls /opt/X11/include/X11/XLib.h
/opt/X11/include/X11/XLib.h
โžœ ~ ls /opt/X11/include/X11/Intrinsic.h
/opt/X11/include/X11/Intrinsic.h

https://github.com/vim/vim/blob/master/src/configure.ac:2837
if test -z "$SKIP_MOTIF"; then
gui_XXX="/usr/XXX/Motif* /usr/Motif/XXX /usr/XXX /usr/shlib /usr/X11/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif/XXX /local/XXX/Motif /usr/local/Motif/XXX /usr/local/XXX/Motif /usr/local/XXX /usr/local/X11/XXX /usr/local/LessTif/Motif/XXX $MOTIFHOME/XXX"

No references to /opt that I could find anywhere.

But locally usr seems to map X11 to opt anyway.

โžœ ~ ls -la /usr
total 0
drwxr-xr-x@ 12 root wheel 384 Jul 24 16:53 .
drwxr-xr-x 33 root wheel 1056 Jul 26 10:06 ..
lrwxr-xr-x 1 root wheel 8 Jul 24 16:53 X11 -> /opt/X11
lrwxr-xr-x 1 root wheel 8 Jul 24 16:53 X11R6 -> /opt/X11

Seems to work fine if I tell configure where to find X11 includes and libs.
if build.with? "client-server"
opts << "--with-x" "--x-includes=/opt/X11/include" "--x-libraries=/opt/X11/lib"
else
opts << "--without-x"
end

If this works consistently I don't see any reason we wouldn't accept a PR doing this. You'd want to use #{MacOS::X11.include} and #{MacOS::X11.lib} rather than directly passing /opt though.

I had a feeling that motif reference above might have something to do with this. So I tried the following and all built without issue and without needing the X11 include/lib folders specified. "carbon/motif/gtk3/gtk2/gnome2/athena/neXtaw/photon/no/auto/yes"

https://github.com/vim/vim/blob/master/src/configure.ac:2301
[ --enable-gui[=OPTS] X11 GUI. [default=auto] [OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon]], , enable_gui="auto")

if build.with? "client-server" opts << "--with-x" "--enable-gui=<gui>" else opts << "--without-x" end
Looks like use of the --with-x flag may require --enable-gui set to something in order to detect X includes automatically?

I rebuilt with just --with-x, without --enable-gui, and confirmed builds are still broken.

@sirgatez: Title updated.

@sirgatez: Also, thanks for the code pointers!

@sirgatez, @DomT4:

     This is all well and good, but it still doesn't explain:

  1. Why modifying the vim formula like I did before makes --with-client-server work again.
  2. Why vim's configure code seems to find X11 headers and library files fine at first, but then fails later, when it _does_ fail:

    โ‹ฎ
    checking for X... libraries , headers 
    โ‹ฎ
    checking if X11 header files can be found... no
    configure: error: could not configure X
    โ‹ฎ
    

    (At least I _think_ that the first line there means that the relevant tests were performed successfully; they _could_ just mean that they're _about_ to be performed, thoughโ€ฆ)

As such, I'm still leaning towards this being a regression somewhere inside brew, but, again, I've no idea where.

Well...

Why does this work?

69     opts << "--disable-nls" if build.without? "gettext"
70
71     if build.with? "client-server"
72       opts << "--with-x" "--enable-gui=no"
73     else
74       opts << "--without-x"
75     end

But this fails?

69     opts << "--disable-nls" if build.without? "gettext"
70     opts << "--enable-gui=no"
71
72     if build.with? "client-server"
73       opts << "--with-x"
74     else
75       opts << "--without-x"
76     end

....and this also works OO;

69     opts << "--disable-nls" if build.without? "gettext"
 70
 71     if build.with? "client-server"
 72       opts << "--enable-gui=no" "--with-x"
 73     else
 74       opts << "--without-x"
 75     end

And this fails too...

69     opts << "--disable-nls" if build.without? "gettext"
 70
 71     if build.with? "client-server"
 72       opts << "--with-x"
 73     else
 74       opts << "--without-x"
 75     end

Are we somehow losing this option after setting it?

This fails too...

 69     opts << "--disable-nls" if build.without? "gettext"
 70
 71     if build.with? "client-server"
 72       opts << "--with-x"
 73     else
 74       opts << "--without-x"
 75     end
 76
 77     opts << "--enable-gui=no"

```69 opts << "--disable-nls" if build.without? "gettext"
70 opts << "--enable-gui=no"
71
72 if build.with? "client-server"
73 opts << "--with-x"
74 else
75 opts << "--without-x"
76 end


["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no"]
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no", "--with-x"]


["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no"]
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no", "--with-x--enable-gui=no"]

Whaat?

Ok what about....

74 if build.with? "client-server"
75 opts << "--with-x"
76 opts << "--enable-gui=no"
77 else
78 opts << "--without-x"
79 end

we get...

Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no"]
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no", "--with-x", "--enable-gui=no"]
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' (As Well As macOS Sierra and High Sierra) With --with-client-server https://github.com/Homebrew/homebrew-core/issues/30949
```

Ok so setting the argument like I did earlier is actually invalid. Interesting.

Trying:

 74     if build.with? "client-server"
 75       opts << "--with-x"
 76       opts << "--enable-gui=no"
 77       opts << "--x-includes=/opt/X11/include"
 78       opts << "--x-libraries=/opt/X11/lib"
 79     else
 80       opts << "--without-x"
 81     end```
Also fails.

["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no"]
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--enable-gui=no", "--with-x", "--enable-gui=no", "--x-includes=/opt/X11/include", "--x-libraries=/opt/X11/lib"]
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/01.configure:
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries /opt/X11/lib, headers /opt/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' (As Well As macOS Sierra and High Sierra) With --with-client-server https://github.com/Homebrew/homebrew-core/issues/30949
```

But we at least see it got the paths I provided. checking for X... libraries /opt/X11/lib, headers /opt/X11/include

The only thing I can say right now, is that it seems configure isn't detecting the X includes.
But, really --with-client-server doesn't require X so I'm not sure why it's being enabled :-/

Enabling X with a flag and picking a GUI, along with getting it to detect X should be a separate issue.

In my latest build without the --with-x option I see this.

defaulting to: don't HAVE_X11
checking --enable-gui argument... auto - Carbon GUI is outdated - disable GUI support
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes

Based on looking up a few things, we should only need X for client-server if we're not using Mac OS specific process communications.

If X is required for client-server on Mac, it should be indicated as so in brew info.

โžœ ~ brew info vim
vim: stable 8.1.0300 (bottled), HEAD
Vi 'workalike' with many additional features
https://www.vim.org/
Conflicts with:
ex-vi (because vim and ex-vi both install bin/ex and bin/view)
/usr/local/Cellar/vim/8.1.0300 (1,832 files, 30.6MB) *
Built from source on 2018-08-26 at 20:37:29 with: --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/vim.rb
==> Dependencies
Required: perl โœ”, ruby โœ”
Recommended: python โœ”
Optional: gettext โœ”, lua โœ”, luajit โœ”, python@2 โœ”
==> Options
--with-client-server
Enable client/server mode

It looks like without including the +clientserver option we may not even have support for client server enabled with the --with-x option.

If X is required for client-server on Mac, it should be indicated as so in brew info.

Welcome to the reason Homebrew has effectively outlawed option names that don't line up with the dependency/requirements; our dependency resolution system handled them badly.

~> brew info vim --with-client-server
vim: stable 8.1.0300, HEAD
Vi 'workalike' with many additional features
https://www.vim.org/
Conflicts with:
  ex-vi (because vim and ex-vi both install bin/ex and bin/view)
/usr/local/Cellar/vim/8.1.0300 (1,438 files, 23.4MB) *
  Built from source on 2018-08-22 at 17:33:03 with: --with-python@2 --with-lua
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/vim.rb
==> Dependencies
Required: perl โœ”, ruby โœ”
Recommended: python โœ”
Optional: gettext โœ”, lua โœ”, luajit โœ”, python@2 โœ”
==> Requirements
Required: x11 โœ˜

This simple X11 program builds and runs as expected with the same paths.

https://www.geeks3d.com/20120102/programming-tutorial-simple-x11-x-window-code-sample-for-linux-and-mac-os-x/

โžœ Desktop g++ test.cpp -o test -I/opt/X11/include -I/opt/X11/include/X11 -L/opt/X11/lib -L/opt/X11/lib/X11 -lX11
โžœ Desktop ./test

Exporting works for the small program but doesn't seem to help vim's configure.

export CPATH="/opt/X11/include:/opt/X11/include/X11:$CPATH";export LIBRARY_PATH="/opt/X11/lib:/opt/X11/lib/X11:$LIBRARY_PATH"

Desktop g++ test.cpp -o test -lX11

Only using: opts << "--with-x"

โžœ Formula git:(master) โœ— export CPATH="/opt/X11/include:/opt/X11/include/X11:$CPATH";export LIBRARY_PATH="/opt/X11/lib:/opt/X11/lib/X11:$LIBRARY_PATH"
โžœ Formula git:(master) โœ— brew remove vim;brew install vim --with-client-server --with-gettext --with-lua --with-python@2 --with-tcl
Error: No such keg: /usr/local/Cellar/vim
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp"]
["--enable-perlinterp", "--enable-rubyinterp", "--enable-luainterp", "--enable-pythoninterp", "--enable-tclinterp", "--with-x"]
==> make clean
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim/02.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
vim v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' (As Well As macOS Sierra and High Sierra) With --with-client-server https://github.com/Homebrew/homebrew-core/issues/30949
โžœ Formula git:(master) โœ—

I think the issue we're dealing with is here in the configure script.

https://github.com/vim/vim/blob/master/src/configure.ac#L2210

  AC_MSG_CHECKING(if X11 header files can be found)
  cflags_save=$CFLAGS
  CFLAGS="$CFLAGS $X_CFLAGS"
  AC_TRY_COMPILE([#include <X11/Xlib.h>
#include <X11/Intrinsic.h>], ,
    AC_MSG_RESULT(yes),
    AC_MSG_RESULT(no); no_x=yes)
  CFLAGS=$cflags_save

Writing a custom configure script shows the logic above SHOULD be working.

Reference: https://robots.thoughtbot.com/the-magic-behind-configure-make-make-install

configure.am

AC_INIT([test], [0.1], [[email protected]])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_MSG_CHECKING(if XView header files can be found)
AC_TRY_COMPILE([#include <xview/xview.h>], [return 0;], AC_MSG_RESULT(yes), AC_MSG_RESULT(no))

AC_MSG_CHECKING(if X11 header files can be found)
  cflags_save=$CFLAGS
  CFLAGS="$CFLAGS $X_CFLAGS"
  AC_TRY_COMPILE([#include <X11/Xlib.h>
#include <X11/Intrinsic.h>], , AC_MSG_RESULT(yes), AC_MSG_RESULT(no); no_x=yes)

Makefile.am

AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = test
test_SOURCES = test.c

This should build the sample X11 program I showed earlier, but really we don't care about that part yet. Only the logic to check if X11 is installed within configure.

โžœ  work env | grep "^CPATH\|^LIBRARY"
CPATH=/opt/X11/include:/opt/X11/include/X11:/opt/X11/include:/opt/X11/include/X11:/opt/X11/include:/opt/X11/include/X11:
LIBRARY_PATH=/opt/X11/lib:/opt/X11/lib/X11:

โžœ  work autoreconf -fvi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
โžœ  work ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
checking if XView header files can be found... no
checking if X11 header files can be found... yes

And without settings those variables.

โžœ  work ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
checking if XView header files can be found... no
checking if X11 header files can be found... no

None of these seem to help...and they should and do with my prior example :-/

export CFLAGS="-I/opt/X11/include -I/opt/X11/include/X11 -L/opt/X11/lib -L/opt/X11/lib/X11"
export CPATH="/opt/X11/include:/opt/X11/include/X11:$CPATH"
export LIBRARY_PATH="/opt/X11/lib:/opt/X11/lib/X11:$LIBRARY_PATH"

Looking at the vim configure.ac it shouldn't be clobbering any of these but using them.

O...K...

So if I break out of the Brew environment and set the above variables. Configure runs without an X error with:

export CPATH="/opt/X11/include:/opt/X11/include/X11:$CPATH";export LIBRARY_PATH="/opt/X11/lib:/opt/X11/lib/X11:$LIBRARY_PATH";

./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --with-x --x-includes=/opt/X11/include/ --x-libraries=/opt/X11/lib/ --enable-luainterp --with-lua-prefix=/usr/local/opt/lua

Instead I error out with:
checking uint32_t is 32 bits... configure: error: WRONG! uint32_t not defined correctly. :-(

Also works without setting up environment variables above, and without including X options for configure....jeez

โžœ  vim-8.1.0300 pwd
/private/tmp/vim-20180827-77402-vzveu3/vim-8.1.0300

From below log:

checking if X11 header files can be found... yes

โžœ vim-8.1.0300 ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --with-x --x-includes=/opt/X11/include/ --x-libraries=/opt/X11/lib/ --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... gawk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 902000039
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...

  • sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
    Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
    checking for BeOS... no
    checking for QNX... no
    checking for Darwin (Mac OS X)... yes
    checking --disable-darwin argument... no
    checking if Darwin files are there... yes
    checking --with-mac-arch argument... defaulting to current
    checking --with-developer-dir argument... not present
    checking for xcode-select... /usr/bin/xcode-select
    checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking Carbon/Carbon.h usability... yes
    checking Carbon/Carbon.h presence... yes
    checking for Carbon/Carbon.h... yes
    checking AvailabilityMacros.h usability... yes
    checking AvailabilityMacros.h presence... yes
    checking for AvailabilityMacros.h... yes
    checking --with-local-dir argument... Defaulting to /usr/local
    checking --with-vim-name argument... Defaulting to vim
    checking --with-ex-name argument... Defaulting to ex
    checking --with-view-name argument... Defaulting to view
    checking --with-global-runtime argument... no
    checking --with-modified-by argument... no
    checking if character set is EBCDIC... no
    checking --disable-smack argument... no
    checking linux/xattr.h usability... no
    checking linux/xattr.h presence... no
    checking for linux/xattr.h... no
    checking --disable-selinux argument... no
    checking for is_selinux_enabled in -lselinux... no
    checking --with-features argument... Defaulting to huge
    checking --with-compiledby argument... Homebrew
    checking --disable-xsmp argument... no
    checking --disable-xsmp-interact argument... no
    checking --enable-luainterp argument... yes
    checking --with-lua-prefix argument... /usr/local/opt/lua
    checking --with-luajit... no
    checking for lua... /usr/local/bin/lua
    checking Lua version... 5.3
    checking if lua.h can be found in /usr/local/opt/lua/include... no
    checking if lua.h can be found in /usr/local/opt/lua/include/lua5.3... yes
    checking if link with -L/usr/local/opt/lua/lib -llua5.3 is sane... yes
    checking --enable-mzschemeinterp argument... no
    checking --enable-perlinterp argument... yes
    checking for perl... /Users/jbriefma/perl5/perlbrew/perls/perl-5.28.0/bin/perl
    checking Perl version... OK
    checking if compile and link flags for Perl are sane... yes
    checking --enable-pythoninterp argument... yes
    checking --with-python-command argument... no
    checking for python2... /usr/local/bin/python2
    checking Python version... 2.7
    checking Python is 2.3 or better... yep
    checking Python's install prefix... /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7
    checking Python's execution prefix... /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7
    checking Python's configuration directory... /usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
    checking Python's dll name... Python.framework/Versions/2.7/Python
    checking if -pthread should be used... no
    checking if compile and link flags for Python are sane... yes
    checking --enable-python3interp argument... no
    checking if -fPIE can be added for Python... yes
    checking --enable-tclinterp argument... yes
    checking --with-tclsh argument... no
    checking for tclsh8.5... /usr/bin/tclsh8.5
    checking Tcl version... 8.5 - OK
    checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
    checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
    checking --enable-rubyinterp argument... yes
    checking --with-ruby-command argument... defaulting to ruby
    checking for ruby... /usr/local/bin/ruby
    checking Ruby version... OK
    checking Ruby rbconfig... RbConfig
    checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
    checking --enable-cscope argument... yes
    checking --enable-workshop argument... no
    checking --disable-netbeans argument... no
    checking --disable-channel argument... no
    checking for socket in -lsocket... no
    checking for gethostbyname in -lnsl... no
    checking whether compiling with process communication is possible... yes
    checking --enable-terminal argument... yes
    checking --enable-autoservername argument... no
    checking --enable-multibyte argument... yes
    checking --enable-hangulinput argument... no
    checking --enable-xim argument... defaulting to auto
    checking --enable-fontset argument... no
    checking for xmkmf... no
    checking for X... libraries /opt/X11/lib/, headers /opt/X11/include/
    checking whether -R must be followed by a space... neither works
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking if X11 header files can be found... yes
    checking for _XdmcpAuthDoIt in -lXdmcp... yes
    checking for IceOpenConnection in -lICE... yes
    checking for XpmCreatePixmapFromData in -lXpm... yes
    checking if X11 header files implicitly declare return values... no
    checking size of wchar_t is 2 bytes... no
    checking --enable-gui argument... no GUI support
    checking X11/SM/SMlib.h usability... yes
    checking X11/SM/SMlib.h presence... yes
    checking for X11/SM/SMlib.h... yes
    checking for /proc link to executable... no
    checking for CYGWIN or MSYS environment... no
    checking whether toupper is broken... no
    checking whether __DATE__ and __TIME__ work... yes
    checking whether __attribute__((unused)) is allowed... yes
    checking elf.h usability... no
    checking elf.h presence... no
    checking for elf.h... no
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for stdint.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/utsname.h usability... yes
    checking sys/utsname.h presence... yes
    checking for sys/utsname.h... yes
    checking termcap.h usability... yes
    checking termcap.h presence... yes
    checking for termcap.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sgtty.h usability... yes
    checking sgtty.h presence... yes
    checking for sgtty.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for sys/types.h... (cached) yes
    checking termio.h usability... no
    checking termio.h presence... no
    checking for termio.h... no
    checking iconv.h usability... yes
    checking iconv.h presence... yes
    checking for iconv.h... yes
    checking for inttypes.h... (cached) yes
    checking langinfo.h usability... yes
    checking langinfo.h presence... yes
    checking for langinfo.h... yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking for unistd.h... (cached) yes
    checking stropts.h usability... no
    checking stropts.h presence... no
    checking for stropts.h... no
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking sys/resource.h usability... yes
    checking sys/resource.h presence... yes
    checking for sys/resource.h... yes
    checking sys/systeminfo.h usability... no
    checking sys/systeminfo.h presence... no
    checking for sys/systeminfo.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking sys/stream.h usability... no
    checking sys/stream.h presence... no
    checking for sys/stream.h... no
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking libc.h usability... yes
    checking libc.h presence... yes
    checking for libc.h... yes
    checking sys/statfs.h usability... no
    checking sys/statfs.h presence... no
    checking for sys/statfs.h... no
    checking poll.h usability... yes
    checking poll.h presence... yes
    checking for poll.h... yes
    checking sys/poll.h usability... yes
    checking sys/poll.h presence... yes
    checking for sys/poll.h... yes
    checking pwd.h usability... yes
    checking pwd.h presence... yes
    checking for pwd.h... yes
    checking utime.h usability... yes
    checking utime.h presence... yes
    checking for utime.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking libintl.h usability... no
    checking libintl.h presence... no
    checking for libintl.h... no
    checking libgen.h usability... yes
    checking libgen.h presence... yes
    checking for libgen.h... yes
    checking util/debug.h usability... no
    checking util/debug.h presence... no
    checking for util/debug.h... no
    checking util/msg18n.h usability... no
    checking util/msg18n.h presence... no
    checking for util/msg18n.h... no
    checking frame.h usability... no
    checking frame.h presence... no
    checking for frame.h... no
    checking sys/acl.h usability... yes
    checking sys/acl.h presence... yes
    checking for sys/acl.h... yes
    checking sys/access.h usability... no
    checking sys/access.h presence... no
    checking for sys/access.h... no
    checking sys/sysinfo.h usability... no
    checking sys/sysinfo.h presence... no
    checking for sys/sysinfo.h... no
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking wctype.h usability... yes
    checking wctype.h presence... yes
    checking for wctype.h... yes
    checking for sys/ptem.h... no
    checking for sys/sysctl.h... yes
    checking for pthread_np.h... no
    checking for strings.h... (cached) yes
    checking whether gcc needs -traditional... no
    checking for an ANSI C-conforming const... yes
    checking for working volatile... yes
    checking for mode_t... yes
    checking for off_t... yes
    checking for pid_t... yes
    checking for size_t... yes
    checking for uid_t in sys/types.h... yes
    checking for uint32_t... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for ino_t... yes
    checking for dev_t... yes
    checking whether byte ordering is bigendian... no
    checking for inline... inline
    checking for rlim_t... yes
    checking for stack_t... yes
    checking whether stack_t has an ss_base field... no
    checking --with-tlib argument... ncurses
    checking for linking with ncurses library... OK
    checking for tgetent()... yes
    checking whether we talk terminfo... yes
    checking what tgetent() returns for an unknown terminal... non-zero
    checking whether termcap.h contains ospeed... yes
    checking whether termcap.h contains UP, BC and PC... yes
    checking whether tputs() uses outfuntype... no
    checking whether sys/select.h and sys/time.h may both be included... yes
    checking for /dev/ptc... no
    checking for SVR4 ptys... yes
    checking for ptyranges... pqrstuvw / 0123456789abcdef
    checking default tty permissions/group... can't determine - assume ptys are world accessible
    world
    checking return type of signal handlers... void
    checking for struct sigcontext... yes
    checking getcwd implementation is broken... no
    checking for fchdir... yes
    checking for fchown... yes
    checking for fchmod... yes
    checking for fsync... yes
    checking for getcwd... yes
    checking for getpseudotty... no
    checking for getpwent... yes
    checking for getpwnam... yes
    checking for getpwuid... yes
    checking for getrlimit... yes
    checking for gettimeofday... yes
    checking for getwd... yes
    checking for lstat... yes
    checking for memset... yes
    checking for mkdtemp... yes
    checking for nanosleep... yes
    checking for opendir... yes
    checking for putenv... yes
    checking for qsort... yes
    checking for readlink... yes
    checking for select... yes
    checking for setenv... yes
    checking for getpgid... yes
    checking for setpgid... yes
    checking for setsid... yes
    checking for sigaltstack... yes
    checking for sigstack... no
    checking for sigset... yes
    checking for sigsetjmp... yes
    checking for sigaction... yes
    checking for sigprocmask... yes
    checking for sigvec... yes
    checking for strcasecmp... yes
    checking for strerror... yes
    checking for strftime... yes
    checking for stricmp... no
    checking for strncasecmp... yes
    checking for strnicmp... no
    checking for strpbrk... yes
    checking for strtol... yes
    checking for tgetent... yes
    checking for towlower... yes
    checking for towupper... yes
    checking for iswupper... yes
    checking for usleep... yes
    checking for utime... yes
    checking for utimes... yes
    checking for mblen... yes
    checking for ftruncate... yes
    checking for unsetenv... yes
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking for st_blksize... yes
    checking whether stat() ignores a trailing slash... no
    checking for iconv_open()... yes; with -liconv
    checking for nl_langinfo(CODESET)... no
    checking for strtod in -lm... yes
    checking for strtod() and other floating point functions... yes
    checking for isinf()... yes
    checking for isnan()... yes
    checking --disable-acl argument... no
    checking for acl_get_file in -lposix1e... no
    checking for acl_get_file in -lacl... no
    checking for POSIX ACL support... no
    checking for acl_get in -lsec... no
    checking for Solaris ACL support... no
    checking for AIX ACL support... no
    checking --disable-gpm argument... no
    checking for gpm... no
    checking --disable-sysmouse argument... no
    checking for sysmouse... no
    checking for FD_CLOEXEC... not usable
    checking for rename... yes
    checking for sysctl... yes
    checking for sysinfo... not usable
    checking for sysinfo.mem_unit... no
    checking for sysconf... yes
    checking size of int... 4
    checking size of long... 8
    checking size of time_t... 0
    checking size of off_t... 8
    checking uint32_t is 32 bits... configure: error: WRONG! uint32_t not defined correctly.
    โžœ vim-8.1.0300
    ```

No errors with this.

./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
โžœ  vim-8.1.0300 ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... gawk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 902000039
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/lua
checking --with-luajit... no
checking for lua... /usr/local/bin/lua
checking Lua version... 5.3
checking if lua.h can be found in /usr/local/opt/lua/include... no
checking if lua.h can be found in /usr/local/opt/lua/include/lua5.3... yes
checking if link with -L/usr/local/opt/lua/lib -llua5.3 is sane... yes
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /Users/jbriefma/perl5/perlbrew/perls/perl-5.28.0/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... yes
checking --with-python-command argument... no
checking for python2... /usr/local/bin/python2
checking Python version... 2.7
checking Python is 2.3 or better... yep
checking Python's install prefix... /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7
checking Python's execution prefix... /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7
checking Python's configuration directory... /usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
checking Python's dll name... Python.framework/Versions/2.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python are sane... yes
checking --enable-python3interp argument... no
checking if -fPIE can be added for Python... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... yes
checking for _XdmcpAuthDoIt in -lXdmcp... yes
checking for IceOpenConnection in -lICE... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking if X11 header files implicitly declare return values... no
checking size of wchar_t is 2 bytes... yes
checking --enable-gui argument... no GUI support
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes
checking for /proc link to executable... no
checking for CYGWIN or MSYS environment... no
checking whether toupper is broken... no
checking whether __DATE__ and __TIME__ work... yes
checking whether __attribute__((unused)) is allowed... yes
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for unistd.h... (cached) yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking util/debug.h usability... no
checking util/debug.h presence... no
checking for util/debug.h... no
checking util/msg18n.h usability... no
checking util/msg18n.h presence... no
checking for util/msg18n.h... no
checking frame.h usability... no
checking frame.h presence... no
checking for frame.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking sys/access.h usability... no
checking sys/access.h presence... no
checking for sys/access.h... no
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... no
checking for sys/sysinfo.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for sys/ptem.h... no
checking for sys/sysctl.h... yes
checking for pthread_np.h... no
checking for strings.h... (cached) yes
checking whether gcc needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for uint32_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for ino_t... yes
checking for dev_t... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for rlim_t... yes
checking for stack_t... yes
checking whether stack_t has an ss_base field... no
checking --with-tlib argument... ncurses
checking for linking with ncurses library... OK
checking for tgetent()... yes
checking whether we talk terminfo... yes
checking what tgetent() returns for an unknown terminal... non-zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no
checking whether sys/select.h and sys/time.h may both be included... yes
checking for /dev/ptc... no
checking for SVR4 ptys... yes
checking for ptyranges... pqrstuvw / 0123456789abcdef
checking default tty permissions/group... can't determine - assume ptys are world accessible
world
checking return type of signal handlers... void
checking for struct sigcontext... yes
checking getcwd implementation is broken... no
checking for fchdir... yes
checking for fchown... yes
checking for fchmod... yes
checking for fsync... yes
checking for getcwd... yes
checking for getpseudotty... no
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for getrlimit... yes
checking for gettimeofday... yes
checking for getwd... yes
checking for lstat... yes
checking for memset... yes
checking for mkdtemp... yes
checking for nanosleep... yes
checking for opendir... yes
checking for putenv... yes
checking for qsort... yes
checking for readlink... yes
checking for select... yes
checking for setenv... yes
checking for getpgid... yes
checking for setpgid... yes
checking for setsid... yes
checking for sigaltstack... yes
checking for sigstack... no
checking for sigset... yes
checking for sigsetjmp... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigvec... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strftime... yes
checking for stricmp... no
checking for strncasecmp... yes
checking for strnicmp... no
checking for strpbrk... yes
checking for strtol... yes
checking for tgetent... yes
checking for towlower... yes
checking for towupper... yes
checking for iswupper... yes
checking for usleep... yes
checking for utime... yes
checking for utimes... yes
checking for mblen... yes
checking for ftruncate... yes
checking for unsetenv... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for st_blksize... yes
checking whether stat() ignores a trailing slash... no
checking for iconv_open()... yes; with -liconv
checking for nl_langinfo(CODESET)... yes
checking for strtod in -lm... yes
checking for strtod() and other floating point functions... yes
checking for isinf()... yes
checking for isnan()... yes
checking --disable-acl argument... no
checking for acl_get_file in -lposix1e... no
checking for acl_get_file in -lacl... no
checking for POSIX ACL support... yes
checking for acl_get in -lsec... no
checking for Solaris ACL support... no
checking for AIX ACL support... no
checking --disable-gpm argument... no
checking for gpm... no
checking --disable-sysmouse argument... no
checking for sysmouse... no
checking for FD_CLOEXEC... yes
checking for rename... yes
checking for sysctl... yes
checking for sysinfo... not usable
checking for sysinfo.mem_unit... no
checking for sysconf... yes
checking size of int... 4
checking size of long... 8
checking size of time_t... 8
checking size of off_t... 8
checking uint32_t is 32 bits... ok
checking whether memmove handles overlaps... yes
checking whether X_LOCALE needed... yes
checking whether Xutf8SetWMProperties() can be used... yes
checking for _xpg4_setrunelocale in -lxpg4... no
checking how to create tags... ctags -t
checking how to run man with a section nr... man -s
checking --disable-nls argument... no
checking for msgfmt... no
checking for NLS... msgfmt not found - disabled
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen()... yes
checking for dlsym()... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking whether we need macOS frameworks... yes, we need AppKit
checking for GCC 3 or later... yes
checking whether we need -D_FORTIFY_SOURCE=1... yes
checking whether we need to force -D_FILE_OFFSET_BITS=64... no
checking linker --as-needed support... no
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h

Same with x-include options on command line, no errors.

โžœ  vim-8.1.0300 ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-pythoninterp --enable-tclinterp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/lua
configure: loading cache auto/config.cache
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc option to accept ISO C99... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
checking for fgrep... (cached) /usr/bin/grep -F
checking for library containing strerror... (cached) none required
checking for gawk... (cached) gawk
checking for strip... (cached) strip
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for unsigned long long int... (cached) yes
checking for long long int... (cached) yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 902000039
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... (cached) /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for Carbon/Carbon.h... (cached) yes
checking for AvailabilityMacros.h... (cached) yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking for linux/xattr.h... (cached) no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... (cached) no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/local/opt/lua
checking --with-luajit... no
checking for lua... (cached) /usr/local/bin/lua
checking Lua version... (cached) 5.3
checking if lua.h can be found in /usr/local/opt/lua/include... no
checking if lua.h can be found in /usr/local/opt/lua/include/lua5.3... yes
checking if link with -L/usr/local/opt/lua/lib -llua5.3 is sane... yes
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... (cached) /Users/jbriefma/perl5/perlbrew/perls/perl-5.28.0/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... yes
checking --with-python-command argument... no
checking Python version... (cached) 2.7
checking Python is 2.3 or better... yep
checking Python's install prefix... (cached) /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7
checking Python's execution prefix... (cached) /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7
(cached) checking Python's configuration directory... (cached) /usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
(cached) checking Python's dll name... (cached) Python.framework/Versions/2.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python are sane... yes
checking --enable-python3interp argument... no
checking if -fPIE can be added for Python... yes
checking --enable-tclinterp argument... yes
checking --with-tclsh argument... no
checking for tclsh8.5... (cached) /usr/bin/tclsh8.5
checking Tcl version... 8.5 - OK
checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... (cached) /usr/local/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (cached) no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... (cached) libraries /usr/X11/lib, headers /usr/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking if X11 header files can be found... yes
checking for _XdmcpAuthDoIt in -lXdmcp... (cached) yes
checking for IceOpenConnection in -lICE... (cached) yes
checking for XpmCreatePixmapFromData in -lXpm... (cached) yes
checking if X11 header files implicitly declare return values... no
checking size of wchar_t is 2 bytes... (cached) yes
checking --enable-gui argument... no GUI support
checking for X11/SM/SMlib.h... (cached) yes
checking for /proc link to executable... no
checking for CYGWIN or MSYS environment... no
checking whether toupper is broken... (cached) no
checking whether __DATE__ and __TIME__ work... yes
checking whether __attribute__((unused)) is allowed... yes
checking for elf.h... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/utsname.h... (cached) yes
checking for termcap.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sgtty.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for termio.h... (cached) no
checking for iconv.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for langinfo.h... (cached) yes
checking for math.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stropts.h... (cached) no
checking for errno.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/systeminfo.h... (cached) no
checking for locale.h... (cached) yes
checking for sys/stream.h... (cached) no
checking for termios.h... (cached) yes
checking for libc.h... (cached) yes
checking for sys/statfs.h... (cached) no
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for pwd.h... (cached) yes
checking for utime.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for libintl.h... (cached) no
checking for libgen.h... (cached) yes
checking for util/debug.h... (cached) no
checking for util/msg18n.h... (cached) no
checking for frame.h... (cached) no
checking for sys/acl.h... (cached) yes
checking for sys/access.h... (cached) no
checking for sys/sysinfo.h... (cached) no
checking for wchar.h... (cached) yes
checking for wctype.h... (cached) yes
checking for sys/ptem.h... (cached) no
checking for sys/sysctl.h... (cached) yes
checking for pthread_np.h... no
checking for strings.h... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for an ANSI C-conforming const... (cached) yes
checking for working volatile... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for uint32_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for ino_t... (cached) yes
checking for dev_t... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for inline... (cached) inline
checking for rlim_t... (cached) yes
checking for stack_t... (cached) yes
checking whether stack_t has an ss_base field... no
checking --with-tlib argument... ncurses
checking for linking with ncurses library... OK
checking for tgetent()... yes
checking whether we talk terminfo... (cached) yes
checking what tgetent() returns for an unknown terminal... (cached) non-zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no
checking whether sys/select.h and sys/time.h may both be included... yes
checking for /dev/ptc... no
checking for SVR4 ptys... yes
checking for ptyranges... pqrstuvw / 0123456789abcdef
checking default tty permissions/group... (cached) world
checking return type of signal handlers... (cached) void
checking for struct sigcontext... yes
checking getcwd implementation is broken... (cached) no
checking for fchdir... (cached) yes
checking for fchown... (cached) yes
checking for fchmod... (cached) yes
checking for fsync... (cached) yes
checking for getcwd... (cached) yes
checking for getpseudotty... (cached) no
checking for getpwent... (cached) yes
checking for getpwnam... (cached) yes
checking for getpwuid... (cached) yes
checking for getrlimit... (cached) yes
checking for gettimeofday... (cached) yes
checking for getwd... (cached) yes
checking for lstat... (cached) yes
checking for memset... (cached) yes
checking for mkdtemp... (cached) yes
checking for nanosleep... (cached) yes
checking for opendir... (cached) yes
checking for putenv... (cached) yes
checking for qsort... (cached) yes
checking for readlink... (cached) yes
checking for select... (cached) yes
checking for setenv... (cached) yes
checking for getpgid... (cached) yes
checking for setpgid... (cached) yes
checking for setsid... (cached) yes
checking for sigaltstack... (cached) yes
checking for sigstack... (cached) no
checking for sigset... (cached) yes
checking for sigsetjmp... (cached) yes
checking for sigaction... (cached) yes
checking for sigprocmask... (cached) yes
checking for sigvec... (cached) yes
checking for strcasecmp... (cached) yes
checking for strerror... (cached) yes
checking for strftime... (cached) yes
checking for stricmp... (cached) no
checking for strncasecmp... (cached) yes
checking for strnicmp... (cached) no
checking for strpbrk... (cached) yes
checking for strtol... (cached) yes
checking for tgetent... (cached) yes
checking for towlower... (cached) yes
checking for towupper... (cached) yes
checking for iswupper... (cached) yes
checking for usleep... (cached) yes
checking for utime... (cached) yes
checking for utimes... (cached) yes
checking for mblen... (cached) yes
checking for ftruncate... (cached) yes
checking for unsetenv... (cached) yes
checking for _LARGEFILE_SOURCE value needed for large files... (cached) no
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) no
checking for st_blksize... yes
checking whether stat() ignores a trailing slash... (cached) no
checking for iconv_open()... yes; with -liconv
checking for nl_langinfo(CODESET)... yes
checking for strtod in -lm... (cached) yes
checking for strtod() and other floating point functions... yes
checking for isinf()... yes
checking for isnan()... yes
checking --disable-acl argument... no
checking for acl_get_file in -lposix1e... (cached) no
checking for acl_get_file in -lacl... (cached) no
checking for POSIX ACL support... yes
checking for acl_get in -lsec... (cached) no
checking for Solaris ACL support... no
checking for AIX ACL support... no
checking --disable-gpm argument... no
checking for gpm... (cached) no
checking --disable-sysmouse argument... no
checking for sysmouse... (cached) no
checking for FD_CLOEXEC... yes
checking for rename... yes
checking for sysctl... yes
checking for sysinfo... not usable
checking for sysinfo.mem_unit... no
checking for sysconf... yes
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of time_t... (cached) 8
checking size of off_t... (cached) 8
checking uint32_t is 32 bits... ok
checking whether memmove handles overlaps... (cached) yes
checking whether X_LOCALE needed... yes
checking whether Xutf8SetWMProperties() can be used... yes
checking for _xpg4_setrunelocale in -lxpg4... (cached) no
checking how to create tags... ctags -t
checking how to run man with a section nr... man -s
checking --disable-nls argument... no
checking for msgfmt... no
checking for NLS... msgfmt not found - disabled
checking for dlfcn.h... (cached) yes
checking for dlopen()... yes
checking for dlsym()... yes
checking for setjmp.h... (cached) yes
checking whether we need macOS frameworks... yes, we need AppKit
checking for GCC 3 or later... yes
checking whether we need -D_FORTIFY_SOURCE=1... yes
checking whether we need to force -D_FILE_OFFSET_BITS=64... no
checking linker --as-needed support... no
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h
config.status: auto/config.h is unchanged

I guess the question now, is what is so different about a shell provided by Ruby...?

:Edit:
Rather, I should say Homebrew, since Ruby just passed the process the environment Homebrew built.

@sirgatez:

     What changes have there been in superenv, if any, that look like they might be relevant? (I'll look, too, relatively shortly.)

Surprisingly, it appears to be building after a brew update this morning...

@sirgatez I'm glad but confused. There's not been an updated version of brew distributed from what I can tell so what changed ?

Changes that appear relevant include removal of '/opt/X11/lib' from:
CMAKE_LIBRARY_PATH=/opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries

removal of
ACLOCAL_PATH=/usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal

Addition of
HOMEBREW_ISYSTEM_PATHS=/usr/local/include:/usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers

Removal of
CMAKE_INCLUDE_PATH=/usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers

Those are changes I saw from environment dumps from right before ./configure is kicked off within the brew environment.

     system "env > env.out"
     system "sleep 600"
     system "./configure", "--prefix=#{HOMEBREW_PREFIX}",

The commits I picked up this morning

commit 790b5961d160749e64fac5a567226109bca2cc92 (HEAD -> master, origin/master, origin/HEAD)
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 11:42:23 2018 +0000

    octave: update 4.4.1_1 bottle.

commit b383561455d19745b690b68dec7e5557597b9a72
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 11:17:36 2018 +0000

    json11: update 1.0.0 bottle.

commit db6a6be6162f9991ae84a4dca59c4a9c2de47b2c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 14:27:01 2018 +0000

    folly: update 2018.08.27.00 bottle.

commit dce7a5d288e8bce3b490a078ba5914527a9e8f51
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 14:27:01 2018 +0000

    hcloud: update 1.6.1 bottle.

commit 397bbe7ab9f58669ed91a18f1fe8e5809d143dd8
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 14:27:00 2018 +0000

    iso-codes: update 4.0 bottle.

commit e6df7c0af77db2478d72058f882f2686a25c190a
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 14:27:00 2018 +0000

    bwfmetaedit: update 1.3.4 bottle.

commit 68b6fd8a3f09770f2cb44636b4e0beb5603dee23
Author: Leonid Mokrushin <[email protected]>
Date:   Mon Aug 27 13:02:34 2018 +0200

    swi-prolog 7.7.19 (devel)

    Closes #31512.

    Signed-off-by: Chongyu Zhu <[email protected]>

commit febda79c67ef8e1192c8f12d99c0c00d0bbabd4f
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 13:52:58 2018 +0000

    bwfmetaedit: update 1.3.4 bottle.

commit 9a62e10835c49abee39dc775f6c09a177ee3fe2c
Author: MediaArea CI <[email protected]>
Date:   Mon Aug 27 10:59:49 2018 +0000

    bwfmetaedit 1.3.4

    Closes #31519.

    Signed-off-by: Chongyu Zhu <[email protected]>

commit a725b0415f469253d98229102679d8b63dcedc6d
Author: Chongyu Zhu <[email protected]>
Date:   Mon Aug 27 21:31:22 2018 +0800

    zsh-completions 0.28.0

    Closes #31518.

    Signed-off-by: Chongyu Zhu <[email protected]>

commit 053588909a2cee8927a1e51c5003536288419147
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 13:56:29 2018 +0000

    iso-codes: update 4.0 bottle.
    Closes #31516.

    Signed-off-by: Chongyu Zhu <[email protected]>

commit 9df321314a58664eeb4d4fb819d6f64c485aca53
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 13:32:36 2018 +0000

    folly: update 2018.08.27.00 bottle.

commit fa7966279704ac40157db6e5cde5565152a5749a
Author: Chongyu Zhu <[email protected]>
Date:   Mon Aug 27 21:20:40 2018 +0800

    folly 2018.08.27.00

    Closes #31515.

    Signed-off-by: Chongyu Zhu <[email protected]>

commit 8f3696836270f32a0f626db3eb74c778e0f39a7c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 12:19:49 2018 +0000

    hcloud: update 1.6.1 bottle.

commit add71ecea7b034aaffbb6921e5e9a37e419db044
Author: Lukas Kรคmmerling <[email protected]>
Date:   Mon Aug 27 14:08:08 2018 +0200

    hcloud 1.6.1

    Closes #31513.

    Signed-off-by: Chongyu Zhu <[email protected]>

commit 2096a8a445d2b09134a00e6b20037da18e946a30
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:28:39 2018 +0000

    clutter-gtk: update 1.8.4_1 bottle.

commit c66bf581d5a1c767308f909fe60fc7232b8f0f3c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:28:39 2018 +0000

    hdf5: update 1.10.3 bottle.

commit fa8312466e26291b673a37737c788ddce8740243
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:28:39 2018 +0000

    at-spi2-atk: update 2.26.2 bottle.

commit dde67279809586cd3a49157d0c595dc11d0a840a
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:01:29 2018 +0000

    pdftoipe: update 7.2.7_15 bottle.

commit cf50290644e24771a2b4a39a5122cd8fd6b393ac
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:24 2018 +0000

    pcb2gcode: update 1.3.2_4 bottle.

commit 12493d462a65fb188d9b6a8edd8ac07a0fbfb1a7
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:23 2018 +0000

    pazpar2: update 1.13.1 bottle.

commit e77ddb86be50fc79417f14295a4a840d1bf32b9a
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:23 2018 +0000

    pdftoedn: update 0.35.2_2 bottle.

commit c7dd4b3eca7b0208451cdc12358c3975370475af
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:22 2018 +0000

    pcb: update 4.1.2 bottle.

commit ee0eb142ad1cb5be550025bfebf1cb10f3329964
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:22 2018 +0000

    percol: update 0.2.1 bottle.

commit db37a60d58c9903c85e35437cd2ca4b0b97134fd
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:21 2018 +0000

    pdf2svg: update 0.2.3_4 bottle.

commit 5d3001512f43e2333386a9654e55abf0a8e80313
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:21 2018 +0000

    pdf-redact-tools: update 0.1.2 bottle.

commit 372eb4bf72d55f12ad1c395d532ba64c7ce91f22
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:21 2018 +0000

    pbc-sig: update 0.0.8 bottle.

commit a419e0e34ddf37f72268440671f6673188ded3b0
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:20 2018 +0000

    pdfpc: update 4.1.2 bottle.

commit f218ee4833159954b4b0254bdb4bdb9ed205d638
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 06:59:20 2018 +0000

    pdfsandwich: update 0.1.6_1 bottle.

commit c4e3786a753f984634f99cf9613371fd060d7cc5
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 07:19:08 2018 +0000

    prettier: update 1.14.2 bottle.

commit 726b922a217c18942e46f26c9f36ae67366698d0
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 07:19:08 2018 +0000

    eslint: update 5.4.0 bottle.

commit 0fea0409de20b04885b47ecea977bc63c9d9dc0a
Author: Chongyu Zhu <[email protected]>
Date:   Mon Aug 27 15:07:43 2018 +0800

    Revert "prettier: update 1.14.2 bottle."

    This reverts commit 6151aa4e5ec2dab576ff4dd43600f7e076105785.

commit 10b4fc5aab68bb094d91f0d4ec9225d8a5e45d79
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:23 2018 +0000

    yelp-tools: update 3.28.0_1 bottle.

commit 2f95732d5abe2a0375f96ffd9bc38496df9288ed
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:23 2018 +0000

    zbackup: update 1.4.4_7 bottle.

commit 820f8777cd7e7d40833a69857bbaba74f7856d79
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:23 2018 +0000

    xboard: update 4.9.1_2 bottle.

commit d3ca147cba6aee7dad4998508fabef54e8d4a1a5
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:22 2018 +0000

    zim: update 0.68_1 bottle.

commit 3485f115eaa65d025231953ed03d44987d310020
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:22 2018 +0000

    zyre: update 2.0.0 bottle.

commit d30959dbcd4f7762d7feda5c0462f1e8d729f08b
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:21 2018 +0000

    yafc: update 1.3.7_2 bottle.

commit c6c1aee4d4191a21b2c75c6970dbb6abbe428afd
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:21 2018 +0000

    yazpp: update 1.6.5 bottle.

commit a161cec09031102f20b8b1f1a97b38020804e2e4
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:21 2018 +0000

    xsane: update 0.999_3 bottle.

commit 311afb8864ebbbdc24642f8aa9463f1a0a647cd2
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:20 2018 +0000

    zssh: update 1.5c bottle.

commit 6be29933dc5b0ec4b663a4c1beb83bfc21c3e691
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:20 2018 +0000

    yosys: update 0.7_1 bottle.

commit 2e9545e51fd28d5cf3ae6e69f623f7e33df34505
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:19 2018 +0000

    zurl: update 1.9.1 bottle.

commit e1ebec7d84c99a93518fa9fef56497968f6439ba
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:40:19 2018 +0000

    zebra: update 2.1.4 bottle.

commit 1ed2f68b10b68783eed81afdc121a11dd805e306
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:35:26 2018 +0000

    watson: update 1.6.0 bottle.

commit de1ed3a250c8afdd4fc83f7ec0d20d87776d5613
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:35:26 2018 +0000

    wakatime-cli: update 8.0.3 bottle.

commit 5cd354aa9aee58f3dc6d5466e846d06b91c1e3de
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:35:25 2018 +0000

    whatmp3: update 3.8_2 bottle.
commit 1ca8e2fd3cab2e80e4dcfdd2e44e5317cc52df03
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:26 2018 +0000

    urh: update 2.2.3 bottle.

commit d0bee6e03b972b1460ca92ce70a5f7f0ce144797
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:25 2018 +0000

    vdirsyncer: update 0.16.7 bottle.

commit 3f9ced3d45bd7db40c2272a446f78f0b539fba84
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:25 2018 +0000

    vimpc: update 0.09.1_1 bottle.

commit c0844c63a5e6acc390416e5704659bb74ee0ce69
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:24 2018 +0000

    varnish@4: update 4.1.10 bottle.

commit 27cee11fbb62b799447f6febeea9cbd3119a323f
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:24 2018 +0000

    vit: update 1.2_1 bottle.

commit 91b127ffb8e460d81498e22c04a0e339257ec84c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:24 2018 +0000

    upscaledb: update 2.2.0_9 bottle.

commit c1d33089616366a2a5aad918d51a80b3e2cc354d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:23 2018 +0000

    visp: update 3.1.0_1 bottle.

commit bc245e6efc7e3368c0fb18b8ef3c007c8baf937e
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 05:27:23 2018 +0000

    vsts-cli: update 0.1.2 bottle.

commit a87f6cb19f3b0374bed16e236fef7ccf68ada944
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:54 2018 +0000

    ubertooth: update 2018-08-R1 bottle.

commit f242528567745c8d53dd875728d4dcf3f42dfb74
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:53 2018 +0000

    twoping: update 4.2 bottle.

commit 041b1c1e07255dc78c4c8f0a81f9fd1ce6a690e7
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:53 2018 +0000

    twarc: update 1.5.1 bottle.

commit 9123c639e4cc01d8d424d34a1019dbd3c0363eb3
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:52 2018 +0000

    twine-pypi: update 1.11.0 bottle.

commit 3fc9e3d1cbe3dac3026bbee8c96830e8bcbe4c0b
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:52 2018 +0000

    translate-toolkit: update 2.3.0 bottle.
commit 4e2b2ebfe001d705026c88a8f26044b7c95d8cee
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:52 2018 +0000

    trezor-agent: update 0.9.2_1 bottle.

commit 1039aab3c54efed754392f44e1ebae9607137d01
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:51 2018 +0000

    trash-cli: update 0.17.1.14 bottle.

commit 338fc1b75f1854c23042cc8e3e1c38b8d82aca81
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:51 2018 +0000

    tvnamer: update 2.4 bottle.

commit 90409af9092c9a441c5dfd7941f755c8c1e21182
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:04:50 2018 +0000

    twtxt: update 1.2.3_3 bottle.

commit c99bdbd92799ed71ccd408212bf4bbbedeb6486d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:40 2018 +0000

    theharvester: update 2.7 bottle.

commit 330fa6b8d225e6eac849fbf6c04122298a2aafb3
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:40 2018 +0000

    tarsnapper: update 0.4 bottle.

commit 9b9c47299dc9f140c6347e458225ebbe60d85307
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:40 2018 +0000

    tarsnap-gui: update 1.0.1 bottle.

commit f894a63a1158071460492f0190c45da0add86093
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:39 2018 +0000

    tectonic: update 0.1.8_1 bottle.

commit d8e7d98471d32db4b7d5513c3861d73d55488dbe
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:39 2018 +0000

    traefik: update 1.6.5 bottle.

commit 796612839df72b82846c94b2bd74de1e1da336e4
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:39 2018 +0000

    taisei: update 1.2_1 bottle.

commit b8ce8fc0f0cca35fb8e3c64a728562dd9f62be66
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:38 2018 +0000

    template-glib: update 3.28.0 bottle.

commit 1982abdcbecc41c852c9686cb0d4f0b373cc786d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:38 2018 +0000

    tepl: update 4.2.0 bottle.

commit eaaeb5c6624340ca0d043593d9b0b78ef2e0fafb
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:37 2018 +0000

    todoman: update 3.4.0_1 bottle.

commit b649bc3aa8467ae38d5872a06cd98803db8b239c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:17:37 2018 +0000

    tnote: update 0.2.1 bottle.

commit 09a34ad86b39c9cb29313ac4a26d3be3b2bb89cf
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:29:21 2018 +0000

    sylpheed: update 3.7.0_1 bottle.

commit dfa23af984ce68b5218b204d925b231ef3b5b377
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:29:20 2018 +0000

    synfig: update 1.0.2_5 bottle.

commit 9417ff172ef495152cfd180904f380e6fa01b826
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:29:20 2018 +0000

    suil: update 0.10.0_1 bottle.

commit 6c22eb35bc0c205c15e378198f4dc1819f1db040
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:29:19 2018 +0000

    supersonic: update 0.9.4_8 bottle.

commit 861493aa9f8aa2c8f4f391315fb6fbf6a6ce6895
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:20:01 2018 +0000

    statik: update 0.21.2 bottle.

commit 0eeeb58c0fa4b08609425049765114da8b4a7bea
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:20:01 2018 +0000

    sshconfigfs: update 0.3 bottle.

commit 790f8565cb413fdc00dd1a14c50ba1e738ebb49a
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:20:01 2018 +0000

    sshguard: update 2.2.0_1 bottle.

commit 2815000f4d32537dbcfaa9076da4ea0d6c1cfd6c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:20:00 2018 +0000

    stoken: update 0.92 bottle.

commit d064e2e7cee9287308377115b995f7e3425110c9
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:20:00 2018 +0000

    sslmate: update 1.6.0 bottle.

commit faf57b07358eb474ab4495d0c1c5e8bcd9a65f94
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:20:00 2018 +0000

    sratom: update 0.6.0 bottle.

commit c9c923c734c0a1733d8de895efaf74b3d996b7d5
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:19:59 2018 +0000

    subliminal: update 2.0.5 bottle.

commit 30a0afacd7cb89852ac87e6015010e80625078fe
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:19:59 2018 +0000

    stormpath-cli: update 0.1.3 bottle.

commit 20e97ab8d6eee349e5fc69c46357256870ed3897
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:19:59 2018 +0000

    submarine: update 0.1.7b_1 bottle.

commit a72376aae937aebffcc949056d5ffcd5186bffe3
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:58 2018 +0000

    spatialite-gui: update 1.7.1_4 bottle.

commit 84bf49355d7121bccf9bcc48970a23e336762a1f
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:58 2018 +0000

    sqlparse: update 0.2.4 bottle.

commit c2b8de9d09c26150b974c6ce5c30e6566630f706
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:58 2018 +0000

    spades: update 3.12.0 bottle.

commit 1b5852d67f1267eae122634520d7110a15691a51
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:57 2018 +0000

    simple-tiles: update 0.6.1_2 bottle.

commit da95cd24137c473dfae1309a4be7248cce08d5d4
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:57 2018 +0000

    snapcraft: update 2.42_1 bottle.

commit 9b8e0e8233b56ed8f0c3f6145820d0786109776f
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:57 2018 +0000

    spatialite-tools: update 4.3.0_2 bottle.

commit a3f01fa171a71497c44489522d8c416959abbe3a
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:52:56 2018 +0000

    simple-obfs: update 0.0.5_1 bottle.

commit 5ca71c05c203b22ad8139f7b712f9e62717c022e
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:35:12 2018 +0000

    sceptre: update 1.4.1 bottle.

commit b721e6a69b5bf8648750e7ba85507c9af1b3f1fa
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:35:12 2018 +0000

    scour: update 0.37 bottle.

commit fff6d1cd48bd0c746f3ea2e1ccb0704d9546eecf
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:35:11 2018 +0000

    sickbeard: update 507 bottle.

commit 155d43addc453cf4f1c3eb39894c7e3b55253e26
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:35:11 2018 +0000

    shocco: update 1.0 bottle.

commit 0cb705d0ecb752915d24316253032eab023a2f03
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:35:11 2018 +0000

    silk: update 3.17.2 bottle.

commit bc37a537268b0f7eff64fabfc5195ab056f0211e
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 02:35:10 2018 +0000

    simgrid: update 3.20 bottle.

commit 3d589013d7136d81253d95c85cb952cae6948149
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:00:39 2018 +0000

    rst-lint: update 1.1.3 bottle.

commit 2f894e805f68339e6800502faef2b87dea5242b2
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:00:39 2018 +0000

    riemann-client: update 1.10.3 bottle.

commit 6008c67ad484e0011d0b7fadb265d04032a7203d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:00:38 2018 +0000

    s6: update 2.7.2.0 bottle.

commit cbb420bdd4c291204b2daf5a5e2f94ee523913d1
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:00:38 2018 +0000

    robot-framework: update 3.0.4 bottle.

commit 0d10de930a6c39b1311ceb196d755197cff41f09
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:00:37 2018 +0000

    saldl: update 40 bottle.

commit ba840d1f6bb3a032c960d837474004cbaac7ba22
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:45 2018 +0000

    quasi88: update 0.6.4 bottle.

commit 531ef43c214fba8050861b90229b5f8136505831
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:44 2018 +0000

    reclass: update 1.4.1 bottle.

commit 6eec3172fe9dddad24fe2877fd000d35b83949df
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:44 2018 +0000

    qdae: update 0.0.10 bottle.

commit 39970cea5f5963ba72b5416a9415f3d8c8ffac4d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:43 2018 +0000

    redex: update 2017.10.31_1 bottle.

commit 4ae6396f1dce33f2424d5f5e7ef82a0afae6a98c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:43 2018 +0000

    queequeg: update 0.91 bottle.

commit fd38675ffa3a8bf74e4d425e7a730f9982d34446
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:43 2018 +0000

    qmmp: update 1.2.2 bottle.

commit 2352440e04be5ce86dd21ee9c7c864e3d9a39102
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:42 2018 +0000

    restview: update 2.9.1 bottle.

commit 5f7d0a57bc9a2f77fb61bc2f4c9cf377b493b9c4
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:42 2018 +0000

    remarshal: update 0.8.0 bottle.

commit d365e62e8f820d39acca69e590a07bc510363071
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:40:42 2018 +0000

    recon-ng: update 4.9.3 bottle.

commit 726ecba5f2424dd21ca3f2bc3991d987e28dda74
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:48 2018 +0000

    python-markdown: update 2.6.11 bottle.

commit 93c9e923a9dcbb9623f81c196c51d7045558391c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:47 2018 +0000

    pygitup: update 1.5.0_1 bottle.

commit f6ad349172f7004073e1d660d08a3c16b1e02794
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:47 2018 +0000

    pygtksourceview: update 2.10.1_3 bottle.

commit 506c027cbd796f62fa2c10a2f2c956336555d690
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:47 2018 +0000

    proxytunnel: update 1.9.1 bottle.

commit 6dec91206a991803090537dadc96fd1fe5374b63
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:46 2018 +0000

    [email protected]: update 2.6.1 bottle.

commit a57f1ad67f6e6ea5d18e43c38d7ef03125f466c7
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:46 2018 +0000

    pytouhou: update 634_5 bottle.

commit c440d8fa80459cfb7eb0c6e83357242a5f23d64d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:45 2018 +0000

    [email protected]: update 3.1.0 bottle.

commit 1f21fbe61514861413a74770fb7b8effc004ba78
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:45 2018 +0000

    pybind11: update 2.2.3 bottle.

commit 2a233e2ce691d23d0ce4775d5c697651765fac7e
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:45 2018 +0000

    pygtkglext: update 1.1.0_3 bottle.

commit 33d3e7ca35a78ec07ce8751651bf1fdb1e2193ec
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:44 2018 +0000

    pyvim: update 2.0.22 bottle.

commit 8655fc37516078156b388524b3067452d4716793
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:35:44 2018 +0000

    pyinvoke: update 1.1.1 bottle.

commit 6151aa4e5ec2dab576ff4dd43600f7e076105785
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:13 2018 +0000

    prettier: update 1.14.2 bottle.

commit c73729654acee99d6b6926d6d44173ea7644ef95
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:13 2018 +0000

    pike: update 8.0.610 bottle.

commit 112f77e17a15e930044409338861e9463b5414f4
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:12 2018 +0000

    pius: update 2.2.6 bottle.

commit 142b6930f3bc728d3378f240fe3793a4493d684c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:12 2018 +0000

    prefixsuffix: update 0.6.9_1 bottle.

commit 49e60f0ba50d100c3040a96d1ac732866ff52462
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:12 2018 +0000

    protobuf-swift: update 4.0.4 bottle.

commit 760ee43d2cbb88241441e24dede745a91a7f008b
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:11 2018 +0000

    pioneers: update 15.5 bottle.

commit ca4201527d8856aaefa93a0d2cb0dfa68bb461d2
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:11 2018 +0000

    plplot: update 5.13.0_5 bottle.

commit 4fb05114f15f708a79eb40fc2f8511a92db47458
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:10 2018 +0000

    pidgin: update 2.13.0_2 bottle.

commit dff5ebadc59b8f51187438b7f6ec326cc2ac2ea5
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 01:51:10 2018 +0000

    pqiv: update 2.10.4_1 bottle.

commit b31941ffbb5b23c59f3244d01f7d137e3d672fde
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:51 2018 +0000

    paps: update 0.7.0 bottle.

commit fe8a934d42d8ddd6ea7736229ec6bce682e3b101
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:51 2018 +0000

    oscats: update 0.6_2 bottle.

commit 1eeac9e5cf52ece8d4b24f778b348c7688e4edcf
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:50 2018 +0000

    pastebinit: update 1.5_1 bottle.

commit fa00ba6b28e8e68cc91cb4dd83aea040e51da453
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:50 2018 +0000

    osrm-backend: update 5.18.0 bottle.

commit 7419429839e2e434f756ab974ab39c3b5c6024af
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:50 2018 +0000

    passpie: update 1.6.0_1 bottle.

commit 2692a8d35c90ca5a2886687340ed93dc4b8e3e5e
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:49 2018 +0000

    packetbeat: update 6.2.4 bottle.

commit b4ffc885fb710a0f0f6e7211b45fd6d95165c7d5
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:49 2018 +0000

    pam_yubico: update 2.26 bottle.

commit 2ddb00e25a35e9ac53c3d2ab24b3c909649c6c0b
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:25:48 2018 +0000

    osm-pbf: update 1.3.3_5 bottle.

commit 8418868c48c2ae4ad53594e3094de9f355202b8e
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:34:55 2018 +0000

    offlineimap: update 7.2.1 bottle.

commit 9a33316c9cbdcb68b94f4ef981f9e9d61a6749e0
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:34:54 2018 +0000

    notmuch: update 0.27 bottle.

commit 52045cbc6c31d6c823cb1f20f0e06cdaa29292fc
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:34:54 2018 +0000

    nrpe: update 3.2.1 bottle.

commit 7db72253f198da0be2342ea6dc7d8933493baa99
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:34:53 2018 +0000

    nordugrid-arc: update 5.0.2 bottle.

commit 25e0ca0319b0989d7b4af9c451eb7fb4f7428add
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:34:53 2018 +0000

    onepass: update 0.2.1_1 bottle.

commit 86148c62c3f514905acfc05960a192ac339c1aec
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:13 2018 +0000

    nanopb-generator: update 0.3.9.1 bottle.

commit ecfbf78463c9793feb04d01ec1fd22f40f46a0a6
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:12 2018 +0000

    ncmpc: update 0.30_1 bottle.

commit c390831702d82532508e932776f8a5a8e356fd8d
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:12 2018 +0000

    mypy: update 0.620 bottle.

commit e955b8f70bac7ea5e8041876c90f092cf9399bd6
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:11 2018 +0000

    node@8: update 8.11.4 bottle.

commit 9c0599130398d0006fc9de74ba920fdedb7a7aee
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:11 2018 +0000

    nicotine-plus: update 1.4.1_2 bottle.

commit 2d6d0c58fa817f017cb47d81699c391a0cbcd6d0
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:11 2018 +0000

    nanomsgxx: update 0.2_2 bottle.

commit 714f6788d58575d6ce4786605e97a20f414c1840
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:10 2018 +0000

    ncmpcpp: update 0.8.2_1 bottle.

commit 47d202d01c03d81cc41e5dd8dd7407553d1de630
Author: BrewTestBot <[email protected]>
Date:   Sun Aug 26 23:33:10 2018 +0000

    nedit: update 5.7 bottle.

commit 6abe79e0c8d51d5af2006862e19cac07e6c05fe5
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:23 2018 +0000

    mps-youtube: update 0.2.8_3 bottle.

commit f5da9a058775c110c3235f79891fdd6f6bd5f6ac
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:23 2018 +0000

    midgard2: update 12.09_1 bottle.

commit 88d4c3d7f04e86e65d3b88e5570af75def921862
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:22 2018 +0000

    mkvtomp4: update 1.3_1 bottle.

commit 5e5eee5398d7c8ddad6b96820c3263c15b31babe
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:22 2018 +0000

    mftrace: update 1.2.19_2 bottle.

commit cbdc99660b143f964ff7f7ddeaa390e2a28b6d0e
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:21 2018 +0000

    muttils: update 1.3 bottle.

commit f09519483df266b618f8c56e27d442e5e82fe79f
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:21 2018 +0000

    mpir: update 3.0.0 bottle.

commit 51a44ddf9ff46b545c0ee256ea383421124faec0
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:21 2018 +0000

    mvtools: update 20 bottle.

commit f90a72d8ee06c66e683117645b16c091d6ebdebc
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:20 2018 +0000

    mplayershell: update 0.9.3 bottle.

commit 8aadce049f62329ff5671a651f913c2a0f5aeabf
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:20 2018 +0000

    mpdscribble: update 0.22_1 bottle.

commit af0473e9f9c3c13e02bb468919b0950e084bcb16
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:19 2018 +0000

    mpdas: update 0.4.5 bottle.

commit ff8a3970e69bc9b25bcfe31523b8bf5b93268a32
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 00:02:19 2018 +0000

    msitools: update 0.98 bottle.

commit fc4cf8cfcf26a3a8c6006e0456dd07f69ffd401a
Author: commitay <[email protected]>
Date:   Mon Aug 27 11:42:30 2018 +1000

    [email protected]: use canonical repository URLs

commit ac69c0d2140b71265c15ac6e0805ef71682082fa
Author: commitay <[email protected]>
Date:   Mon Aug 27 11:42:30 2018 +1000

    [email protected]: use canonical repository URLs

commit 7c740ee076dba1a11f1b7ec6c221b83443fc3438
Author: commitay <[email protected]>
Date:   Mon Aug 27 11:42:29 2018 +1000

    [email protected]: use canonical repository URLs

commit 2b7ef8583cf7167cd75bc027f15680b8e5191f1a
Author: commitay <[email protected]>
Date:   Mon Aug 27 11:42:29 2018 +1000

    protobuf: use canonical repository URLs

commit eeb1b73753e5306001bedd8eb864cfd2e47b08db
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 04:06:35 2018 +0000

    ncview: update 2.1.7_7 bottle.

commit 087799afd244b72ff3c88965cd12732b316525bb
Author: Dominyk Tiller <[email protected]>
Date:   Mon Aug 27 04:50:51 2018 +0100

    ncview: revision for hdf5

    Closes #31508.

    Signed-off-by: Dominyk Tiller <[email protected]>

commit c97cab991c91a7f164dc57b4dd674422aa07dca0
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:36 2018 +0000

    pdal: update 1.7.2_1 bottle.

commit 8d5bb4a38bc87ac0b0f25286c76c3aff08f4bba2
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:35 2018 +0000

    gmt: update 5.4.4_1 bottle.

commit 3e49781079b8c45d8aa6fcb48186fc612e3edcf1
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:35 2018 +0000

    sratoolkit: update 2.9.2_1 bottle.

commit bc6d0b03fd06459757bc056bdca3563a227123bd
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:35 2018 +0000

    nco: update 4.7.6_1 bottle.

commit f013a5d798a17b3455484351d961b9fd48ee292d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:34 2018 +0000

    octave: update 4.4.1_1 bottle.

commit 3615b37c90a7b71bcb5597793e79a11ed8d9571b
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:34 2018 +0000

    flann: update 1.9.1_5 bottle.

commit bcad4b2f6602515780be033672ba6e0dbad477cd
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:34 2018 +0000

    vtk: update 8.1.1_1 bottle.

commit 50edd39962e42491058157e24fce3b0d443f959c
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:33 2018 +0000

    caffe: update 1.0_3 bottle.

commit 73712b5115e81491fc249ab5f83e47f8f286d82b
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:33 2018 +0000

    libbi: update 1.4.2_1 bottle.

commit 42070f11d2236be005a785797ec9aa36222e205f
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:33 2018 +0000

    kallisto: update 0.44.0_2 bottle.

commit 41d49057f2eb444ba10bb070c23bdc793acf4971
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:32 2018 +0000

    hdf5: update 1.10.3 bottle.

commit cba4b0f6fb6798611a4b7b756f19d8a6dc9f49af
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:32 2018 +0000

    dartsim: update 6.6.1_2 bottle.

commit bffb50aa66627dd396f7994d63360217b2fabc9d
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:31 2018 +0000

    gmt@4: update 4.5.18_1 bottle.

commit a8775e0d24c7828ac005929b7ed63b55fd729436
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:31 2018 +0000

    dynare: update 4.5.6_2 bottle.

commit 95bffc37b4ff3d183078b9732c91c2b520b23b40
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:31 2018 +0000

    armadillo: update 9.100.5_1 bottle.

commit 9966a2cd118614ecb83840cc561600b0860bc1ad
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:30 2018 +0000

    netcdf: update 4.6.1_3 bottle.

commit 8eeb0edf8959e2e85b0f0564c36b41c24fd20bf2
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:30 2018 +0000

    pcl: update 1.8.1_4 bottle.

commit 15600217e2b55662d22ba6ab3b02dd722c7c49a7
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:30 2018 +0000

    field3d: update 1.7.2_7 bottle.

commit 2faf908463153cb03b1ea1e4b2ee123e49d8df47
Author: BrewTestBot <[email protected]>
Date:   Mon Aug 27 03:13:29 2018 +0000

    libmatio: update 1.5.12_2 bottle.

commit 10a0d7d02c59417d9135001dbd3dc501f021f68f
Author: Dominyk Tiller <[email protected]>
Date:   Sun Aug 26 19:00:41 2018 +0100

    dartsim: revision for hdf5

    Closes #31411.

    Signed-off-by: Dominyk Tiller <[email protected]>

~For clarity, I don't think it was a change to the vim.rb formula because I had edited the version I have checked out. And brew updates don't seem clobber edited formulas.~

~Instead I think it was a change within how brew prepares the environments.~

Opps, nevermind. Looks like an oops on my side, no changes. My config had an entry from earlier testing that I missed. :-P Sorry about that.

And on that note about environment, I see no considerable differences between the last buildable version and the current failing one. The only difference appears to be the tmp folder used and versions.

HEAD <> 79e6fead47d85eb239cb1d10061bc79134e1b987

Comparing

โžœ  ~ diff ~/Desktop/work/junk.sh ~/Desktop/work/junk1.sh
19c19
< HOMEBREW_ERROR_PIPE=/private/tmp/homebrew20180827-58929-argv9a/socket
---
> HOMEBREW_ERROR_PIPE=/private/tmp/homebrew20180827-65619-1o2eopy/socket
44c44
< PWD=/private/tmp/vim-20180827-59306-obrqby/vim-8.1.0300
---
> PWD=/private/tmp/vim-20180827-66019-dr5ecr/vim-8.1.0202
52c52
< HOME=/private/tmp/vim-20180827-59306-obrqby/vim-8.1.0300/.brew_home
---
> HOME=/private/tmp/vim-20180827-66019-dr5ecr/vim-8.1.0202/.brew_home
73c73
< HOMEBREW_FORMULA_PREFIX=/usr/local/Cellar/vim/8.1.0300
---
> HOMEBREW_FORMULA_PREFIX=/usr/local/Cellar/vim/8.1.0202

We do have these changes in the configure.ac file during the same window of time ๐Ÿค”

โžœ  work diff configure.ac_old configure.ac_new
74a75,77
> dnl Keep original value to check later.
> with_x_arg="$with_x"
>
1955a1959,1961
>     if test -z "$libruby_soname"; then
>       libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG[['LIBRUBY_SO']]"`
>     fi
2285a2292,2296
> dnl Check if --with-x was given but it doesn't work.
> if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
>     AC_MSG_ERROR([could not configure X])
> fi
>

Still fails the same when attempting to run configure for 8.1.300 with configure.ac from 8.1.0202 HEAD<>79e6fead47d85eb239cb1d10061bc79134e1b987

Checking out Homebrew for commit 79e6fead47d85eb239cb1d10061bc79134e1b987, and vim.rb from HEAD results in the same failure...

     The only commit/PR I can find in Homebrew/brew (by commit message, at least) since the last known good version of Homebrew with respect to this issue (v1.7.0) that might possibly have anything to do with this issue is #4666, "X11Requirement: Recent X11 client is sufficient", but this is unlikely to be relevant here, as it's only changing a requirement version check and not modifying any other X11 requirement handling.

@sirgatez:

We do have these changes in the configure.ac file during the same window of time ๐Ÿค”

โžœ  work diff configure.ac_old configure.ac_new
74a75,77
> dnl Keep original value to check later.
> with_x_arg="$with_x"
>
1955a1959,1961
>       if test -z "$libruby_soname"; then
>         libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG[['LIBRUBY_SO']]"`
>       fi
2285a2292,2296
> dnl Check if --with-x was given but it doesn't work.
> if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
>     AC_MSG_ERROR([could not configure X])
> fi
>

     I doubt the Ruby library check changes are related, as our build logs don't show any issues with vim's build infrastructure finding the relevant filesystem entities. Additionally, it wouldn't make sense for that new X11 detection logic to get triggered if Homebrew passed vim its configure options correctly to begin with, like before. (Edit: Never mind, see below; this may have been broken all along!)

     I'm going to try building vim v8.1.0300 under my local Homebrew instance after I temporarily roll the latter back to v1.7.0 in a little while. I'll report back when that's done.

     (As an aside, I've been keeping the commit containing my minimal, stripped-down test vim formula rebased against master both locally and on GitHub's copy of my fork, but I can stop pushing to the latter if that starts to get a bit too noisy.)

     With respect to my earlier statement:

     I'm going to try building vim v8.1.0300 under my local Homebrew instance after I temporarily roll the latter back to v1.7.0 in a little while. I'll report back when that's done.

running that experiment did not work as expected (it failed instead.) Here's what happened:

  • In a new, spare Terminal tab:

    Bryces-HD-1-TB:~ zadmin$ cd "$(brew --repository)"
    Bryces-HD-1-TB:Homebrew zadmin$ git checkout 1.7.0
    Checking out files: 100% (438/438), done.
    Note: checking out '1.7.0'.
    
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
    
     git checkout -b <new-branch-name>
    
    HEAD is now at 7e8fb9a0f Merge pull request #4481 from reitermarkus/unpack-strategies
    
  • In my primary Terminal tab:

    Bryces-HD-1-TB:~ zadmin$ HOMEBREW_BUILD_FROM_SOURCE=1 brew upgrade -vd --build-from-source vim
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
    ==> Upgrading 1 outdated package, with result:
    vim 8.1.0300
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/perl.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ruby.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lua.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/luajit.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/[email protected]
    ==> Upgrading vim --with-override-system-vi --with-gettext --with-client-server --with-lua --with-tcl --with-luajit
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ex-vi.rb
    /usr/bin/sandbox-exec -f /private/tmp/homebrew20180827-14856-b1qeau.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --debug --with-override-system-vi --with-gettext --with-client-server --with-lua --with-tcl --with-luajit
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/perl.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ruby.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lua.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/luajit.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
    ==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
    Already downloaded: /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz
    ==> Verifying vim-8.1.0300.tar.gz checksum
    tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0300.tar.gz -C /private/tmp/vim-20180827-14858-16qh7e5
    Error: Vim will not link against both Luajit & Lua simultaneously.
    Proceeding with Lua.
    ==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
    configure: creating cache auto/config.cache
    checking whether make sets $(MAKE)... yes
    checking for gcc... clang
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether clang accepts -g... yes
    checking for clang option to accept ISO C89... none needed
    checking for clang option to accept ISO C99... none needed
    checking how to run the C preprocessor... clang -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for library containing strerror... none required
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking for strip... strip
    checking for ANSI C header files... yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking for unsigned long long int... yes
    checking for long long int... yes
    checking if the compiler supports trailing commas... yes
    checking if the compiler supports C++ comments... yes
    checking --enable-fail-if-missing argument... no
    checking for clang version... 800000042
    checking if clang supports -fno-strength-reduce... no
    configure: checking for buggy tools...
    - sh is  'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
    Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
    checking for BeOS... no
    checking for QNX... no
    checking for Darwin (Mac OS X)... yes
    checking --disable-darwin argument... no
    checking if Darwin files are there... yes
    checking --with-mac-arch argument... defaulting to current
    checking --with-developer-dir argument... not present
    checking for xcode-select... /usr/bin/xcode-select
    checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking Carbon/Carbon.h usability... yes
    checking Carbon/Carbon.h presence... yes
    checking for Carbon/Carbon.h... yes
    checking AvailabilityMacros.h usability... yes
    checking AvailabilityMacros.h presence... yes
    checking for AvailabilityMacros.h... yes
    checking --with-local-dir argument... Defaulting to /usr/local
    checking --with-vim-name argument... Defaulting to vim
    checking --with-ex-name argument... Defaulting to ex
    checking --with-view-name argument... Defaulting to view
    checking --with-global-runtime argument... no
    checking --with-modified-by argument... no
    checking if character set is EBCDIC... no
    checking --disable-smack argument... no
    checking linux/xattr.h usability... no
    checking linux/xattr.h presence... no
    checking for linux/xattr.h... no
    checking --disable-selinux argument... no
    checking for is_selinux_enabled in -lselinux... no
    checking --with-features argument... Defaulting to huge
    checking --with-compiledby argument... Homebrew
    checking --disable-xsmp argument... no
    checking --disable-xsmp-interact argument... no
    checking --enable-luainterp argument... yes
    checking --with-lua-prefix argument... /usr/local/opt/luajit
    checking --with-luajit... no
    checking for lua... /usr/local/opt/lua/bin/lua
    checking Lua version... 5.3
    checking if lua.h can be found in /usr/local/opt/luajit/include... no
    checking if lua.h can be found in /usr/local/opt/luajit/include/lua5.3... no
    checking --enable-mzschemeinterp argument... no
    checking --enable-perlinterp argument... yes
    checking for perl... /usr/local/opt/perl/bin/perl
    checking Perl version... OK
    checking if compile and link flags for Perl are sane... yes
    checking --enable-pythoninterp argument... no
    checking --enable-python3interp argument... yes
    checking --with-python3-command argument... no
    checking for python3... /usr/local/opt/python/bin/python3
    checking Python version... 3.7
    checking Python is 3.0 or better... yep
    checking Python's abiflags... m
    checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
    checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
    checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
    checking Python3's dll name... Python.framework/Versions/3.7/Python
    checking if -pthread should be used... no
    checking if compile and link flags for Python 3 are sane... yes
    checking if -fPIE can be added for Python3... yes
    checking --enable-tclinterp argument... yes
    checking --with-tclsh argument... no
    checking for tclsh8.5... /usr/bin/tclsh8.5
    checking Tcl version... 8.5 - OK
    checking for location of Tcl include... /System/Library/Frameworks/Tcl.framework/Headers/tcl.h
    checking for location of tclConfig.sh script... /System/Library/Frameworks/Tcl.framework/tclConfig.sh
    checking --enable-rubyinterp argument... yes
    checking --with-ruby-command argument... defaulting to ruby
    checking for ruby... /usr/local/opt/ruby/bin/ruby
    checking Ruby version... OK
    checking Ruby rbconfig... RbConfig
    checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
    checking --enable-cscope argument... yes
    checking --enable-workshop argument... no
    checking --disable-netbeans argument... no
    checking --disable-channel argument... no
    checking for socket in -lsocket... no
    checking for gethostbyname in -lnsl... no
    checking whether compiling with process communication is possible... yes
    checking --enable-terminal argument... yes
    checking --enable-autoservername argument... no
    checking --enable-multibyte argument... yes
    checking --enable-hangulinput argument... no
    checking --enable-xim argument... defaulting to auto
    checking --enable-fontset argument... no
    checking for xmkmf... no
    checking for X... libraries , headers 
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking if X11 header files can be found... no
    configure: error: could not configure X
    /usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
    BuildError: Failed executing: ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
    1. raise
    2. ignore
    3. backtrace
    4. irb
    5. shell
    Choose an action: 1
    ==> Kept temporary files
    Temporary files retained at /private/tmp/vim-20180827-14858-16qh7e5
    
    ==> Formula
    Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
    ==> Configuration
    HOMEBREW_VERSION: 1.7.0
    ORIGIN: https://github.com/Homebrew/brew.git
    HEAD: 7e8fb9a0f8ab5e841763ec6c7fefa72a8462b594
    Last commit: 6 weeks ago
    Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
    Core tap HEAD: a3c840e75be7f631ae8e85654cc032f31578d129
    Core tap last commit: 44 minutes ago
    HOMEBREW_PREFIX: /usr/local
    HOMEBREW_BUILD_FROM_SOURCE: 1
    HOMEBREW_CASK_OPTS: --appdir=/Applications --prefpanedir=/Library/PreferencePanes --colorpickerdir=/Library/ColorPickers --dictionarydir=/Library/Dictionaries --servicedir=/Library/Services --qlplugindir=/Library/QuickLook --fontdir=/Library/Fonts --input_methoddir=/Library/Input\ Methods --screen_saverdir=/Library/Screen\ Savers --internet_plugindir=/Library/Internet\ Plug\-Ins
    HOMEBREW_DEV_CMD_RUN: 1
    HOMEBREW_FORCE_BREWED_CURL: 1
    HOMEBREW_GITHUB_API_TOKEN: set
    HOMEBREW_NO_AUTO_UPDATE: 1
    HOMEBREW_UPDATE_TO_TAG: 1
    CPU: dual-core 64-bit core2
    Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
    Clang: 8.0 build 800
    Git: 2.17.0 => /usr/local/bin/git
    Curl: 7.60.0 => /usr/local/opt/curl/bin/curl
    Java: 10.0.2
    macOS: 10.11.6-x86_64
    CLT: 8.2.0.0.1.1480973914
    Xcode: 8.2.1
    XQuartz: 2.7.11 => /opt/X11
    ==> ENV
    HOMEBREW_CC: clang
    HOMEBREW_CXX: clang++
    MAKEFLAGS: -j2
    CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/sqlite:/usr/local/opt/tcl-tk:/usr/local/opt/gettext:/usr/local
    CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
    CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
    CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks
    PKG_CONFIG_PATH: /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/tcl-tk/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/lua/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig
    PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
    HOMEBREW_BUILD_FROM_SOURCE: 1
    ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
    PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin
    
    Error: vim 8.1.0300 did not build
    Logs:
        /Users/zadmin/Library/Logs/Homebrew/vim/00.options.out
        /Users/zadmin/Library/Logs/Homebrew/vim/01.configure
        /Users/zadmin/Library/Logs/Homebrew/vim/01.configure.cc
    READ THIS: https://docs.brew.sh/Troubleshooting
    
    These open issues may also help:
    `vim` v8.1.0250 and v8.1.0300 Fail to Build From Source and Install Under OS X v10.11.6 'El Capitan' (As Well As macOS Sierra and High Sierra) With `--with-client-server` https://github.com/Homebrew/homebrew-core/issues/30949
    
  • Cleaning up afterward back in that other, spare Terminal tab (to reset brew state:)

    Bryces-HD-1-TB:Homebrew zadmin$ git checkout stable
    Checking out files: 100% (438/438), done.
    Previous HEAD position was 7e8fb9a0f Merge pull request #4481 from reitermarkus/unpack-strategies
    Switched to branch 'stable'
    

This is curious; I thought this was a brew bug, but maybe it's a vim formula bug we're overlooking? I'll take another look at Git history and related diffs in a moment. (Never mind, see below, both later on in this post and in my next thread reply.) For reference, doing the same under this older brew version after checking out a copy of the vim formula from 79e6fea works as expected (after temporarily backing up my old installation:)

Bryces-HD-1-TB:~ zadmin$ HOMEBREW_BUILD_FROM_SOURCE=1 brew install -vd --build-from-source vim
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/perl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ruby.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lua.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/luajit.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/[email protected]
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ex-vi.rb
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180827-16938-1hzfkci.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb --verbose --debug
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/perl.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ruby.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
==> Downloading https://github.com/vim/vim/archive/v8.1.0202.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.1.0202
/usr/local/opt/curl/bin/curl -q --show-error --user-agent Homebrew/1.7.0 (Macintosh; Intel Mac OS X 10.11.6) curl/7.60.0 --fail --location --remote-time --continue-at - --output /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0202.tar.gz.incomplete https://codeload.github.com/vim/vim/tar.gz/v8.1.0202
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.1M    0 13.1M    0     0  1036k      0 --:--:--  0:00:12 --:--:-- 2220k
==> Verifying vim-8.1.0202.tar.gz checksum
tar xf /Users/zadmin/Library/Caches/Homebrew/vim-8.1.0202.tar.gz -C /private/tmp/vim-20180827-16940-1g9bi4y
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0202/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-python3interp --disable-nls --enable-gui=no --without-x
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 800000042
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... yes
checking for perl... /usr/local/opt/perl/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... yes
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking for python3... /usr/local/opt/python/bin/python3
checking Python version... 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... m
checking Python's install prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's execution prefix... /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7
checking Python's configuration directory... /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
checking Python3's dll name... Python.framework/Versions/3.7/Python
checking if -pthread should be used... no
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes
checking --enable-tclinterp argument... no
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /usr/local/opt/ruby/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
defaulting to: don't HAVE_X11
checking --enable-gui argument... no GUI support
checking X11/SM/SMlib.h usability... no
checking X11/SM/SMlib.h presence... no
checking for X11/SM/SMlib.h... no
checking for /proc link to executable... no
checking for CYGWIN or MSYS environment... no
checking whether toupper is broken... no
checking whether __DATE__ and __TIME__ work... yes
checking whether __attribute__((unused)) is allowed... yes
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for unistd.h... (cached) yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking util/debug.h usability... no
checking util/debug.h presence... no
checking for util/debug.h... no
checking util/msg18n.h usability... no
checking util/msg18n.h presence... no
checking for util/msg18n.h... no
checking frame.h usability... no
checking frame.h presence... no
checking for frame.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking sys/access.h usability... no
checking sys/access.h presence... no
checking for sys/access.h... no
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... no
checking for sys/sysinfo.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for sys/ptem.h... no
checking for sys/sysctl.h... yes
checking for pthread_np.h... no
checking for strings.h... (cached) yes
checking whether clang needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for uint32_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for ino_t... yes
checking for dev_t... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for rlim_t... yes
checking for stack_t... yes
checking whether stack_t has an ss_base field... no
checking --with-tlib argument... ncurses
checking for linking with ncurses library... OK
checking for tgetent()... yes
checking whether we talk terminfo... yes
checking what tgetent() returns for an unknown terminal... non-zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no
checking whether sys/select.h and sys/time.h may both be included... yes
checking for /dev/ptc... no
checking for SVR4 ptys... yes
checking for ptyranges... pqrstuvw / 0123456789abcdef
checking default tty permissions/group... can't determine - assume ptys are world accessible
world
checking return type of signal handlers... void
checking for struct sigcontext... yes
checking getcwd implementation is broken... no
checking for fchdir... yes
checking for fchown... yes
checking for fchmod... yes
checking for fsync... yes
checking for getcwd... yes
checking for getpseudotty... no
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for getrlimit... yes
checking for gettimeofday... yes
checking for getwd... yes
checking for lstat... yes
checking for memset... yes
checking for mkdtemp... yes
checking for nanosleep... yes
checking for opendir... yes
checking for putenv... yes
checking for qsort... yes
checking for readlink... yes
checking for select... yes
checking for setenv... yes
checking for getpgid... yes
checking for setpgid... yes
checking for setsid... yes
checking for sigaltstack... yes
checking for sigstack... no
checking for sigset... yes
checking for sigsetjmp... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigvec... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strftime... yes
checking for stricmp... no
checking for strncasecmp... yes
checking for strnicmp... no
checking for strpbrk... yes
checking for strtol... yes
checking for tgetent... yes
checking for towlower... yes
checking for towupper... yes
checking for iswupper... yes
checking for usleep... yes
checking for utime... yes
checking for utimes... yes
checking for mblen... yes
checking for ftruncate... yes
checking for unsetenv... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for st_blksize... yes
checking whether stat() ignores a trailing slash... no
checking for iconv_open()... yes; with -liconv
checking for nl_langinfo(CODESET)... yes
checking for strtod in -lm... yes
checking for strtod() and other floating point functions... yes
checking for isinf()... yes
checking for isnan()... yes
checking --disable-acl argument... no
checking for acl_get_file in -lposix1e... no
checking for acl_get_file in -lacl... no
checking for POSIX ACL support... yes
checking for acl_get in -lsec... no
checking for Solaris ACL support... no
checking for AIX ACL support... no
checking --disable-gpm argument... no
checking for gpm... no
checking --disable-sysmouse argument... no
checking for sysmouse... no
checking for FD_CLOEXEC... yes
checking for rename... yes
checking for sysctl... yes
checking for sysinfo... not usable
checking for sysinfo.mem_unit... no
checking for sysconf... yes
checking size of int... 4
checking size of long... 8
checking size of time_t... 8
checking size of off_t... 8
checking uint32_t is 32 bits... ok
checking whether memmove handles overlaps... yes
checking for _xpg4_setrunelocale in -lxpg4... no
checking how to create tags... ctags -t
checking how to run man with a section nr... man -s
checking --disable-nls argument... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen()... yes
checking for dlsym()... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking whether we need macOS frameworks... yes, we need AppKit
checking for GCC 3 or later... yes
checking whether we need -D_FORTIFY_SOURCE=1... yes
checking whether we need to force -D_FILE_OFFSET_BITS=64... no
checking linker --as-needed support... no
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h
==> make
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   -DMACOS_X -DMACOS_X_DARWIN    " srcdir=. sh ./osdef.sh
touch objects/.dirstamp
creating auto/pathdef.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_encoding.o libvterm/src/encoding.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_keyboard.o libvterm/src/keyboard.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_mouse.o libvterm/src/mouse.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_parser.o libvterm/src/parser.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_pen.o libvterm/src/pen.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_screen.o libvterm/src/screen.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_state.o libvterm/src/state.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_unicode.o libvterm/src/unicode.c
clang -c -I. -Ilibvterm/include -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -DINLINE="" -DVSNPRINTF=vim_vsnprintf -DIS_COMBINING_FUNCTION=utf_iscomposing_uint -DWCWIDTH_FUNCTION=utf_uint2cells -o objects/term_vterm.o libvterm/src/vterm.c
/usr/local/opt/perl/bin/perl -e 'unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$_ $_\n" }}' > auto/if_perl.c
/usr/local/opt/perl/bin/perl /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/ExtUtils/xsubpp -prototypes -typemap \
        /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/ExtUtils/typemap if_perl.xs >> auto/if_perl.c
clang -c -I. -DPERL_DARWIN -mmacosx-version-min=10.11 -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV  -I/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE  -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/if_perlsfio.o if_perlsfio.c
clang -c -I. -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -fPIE  -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/if_python3.o if_python3.c
clang -c -I. -I/usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0 -I/usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0/x86_64-darwin15 -DRUBY_VERSION=25 -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/if_ruby.o if_ruby.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/os_macosx.o os_macosx.m
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/os_mac_conv.o os_mac_conv.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/netbeans.o netbeans.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/channel.o channel.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/charset.o charset.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/json.o json.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/main.o main.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/memfile.o memfile.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/message.o message.c
cd xxd; CC="clang" CFLAGS="-DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" LDFLAGS="-L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib" \
        /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
clang -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -DUNIX -o xxd xxd.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/arabic.o arabic.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/beval.o beval.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/buffer.o buffer.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/blowfish.o blowfish.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/crypt.o crypt.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/crypt_zip.o crypt_zip.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/dict.o dict.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/diff.o diff.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/digraph.o digraph.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/edit.o edit.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/eval.o eval.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/evalfunc.o evalfunc.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ex_cmds.o ex_cmds.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ex_cmds2.o ex_cmds2.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ex_docmd.o ex_docmd.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ex_eval.o ex_eval.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ex_getln.o ex_getln.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/farsi.o farsi.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/fileio.o fileio.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/fold.o fold.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/getchar.o getchar.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/hardcopy.o hardcopy.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/hashtab.o hashtab.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/if_cscope.o if_cscope.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/if_xcmdsrv.o if_xcmdsrv.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/list.o list.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/mark.o mark.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/memline.o memline.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/menu.o menu.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/misc1.o misc1.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/misc2.o misc2.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/move.o move.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/mbyte.o mbyte.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/normal.o normal.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ops.o ops.c
clang -c -I.  -DPERL_DARWIN -mmacosx-version-min=10.11 -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV  -I/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE   -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -fPIE -I/usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0 -I/usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0/x86_64-darwin15 -DRUBY_VERSION=25  -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/option.o option.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/os_unix.o os_unix.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/pathdef.o auto/pathdef.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/popupmnu.o popupmnu.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/pty.o pty.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/quickfix.o quickfix.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/regexp.o regexp.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/screen.o screen.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/search.o search.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/sha256.o sha256.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/spell.o spell.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/spellfile.o spellfile.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/syntax.o syntax.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/tag.o tag.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/term.o term.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/terminal.o terminal.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/ui.o ui.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/undo.o undo.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/userfunc.o userfunc.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/window.o window.c
clang -c -I. -DPERL_DARWIN -mmacosx-version-min=10.11 -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV  -I/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE  -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/if_perl.o auto/if_perl.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        version.c -o objects/version.o
 env LD_RUN_PATH=/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib    -o vim objects/arabic.o objects/beval.o objects/buffer.o objects/blowfish.o objects/crypt.o objects/crypt_zip.o objects/dict.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/evalfunc.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/farsi.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o  objects/if_cscope.o objects/if_xcmdsrv.o objects/list.o objects/mark.o objects/memline.o objects/menu.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/pty.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/sha256.o objects/spell.o objects/spellfile.o objects/syntax.o objects/tag.o objects/term.o objects/terminal.o objects/ui.o objects/undo.o objects/userfunc.o objects/version.o objects/window.o  objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o   objects/if_perl.o objects/if_perlsfio.o  objects/if_python3.o  objects/if_ruby.o objects/os_macosx.o objects/os_mac_conv.o  objects/netbeans.o objects/channel.o  objects/charset.o objects/json.o objects/main.o objects/memfile.o objects/message.o        -lm  -lncurses -liconv -framework AppKit   -mmacosx-version-min=10.11 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE -lperl -lpthread -ldl -lm -lutil -lc  -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -ldl -framework CoreFoundation  -lruby.2.5.1 -lpthread -lgmp -ldl -lobjc    
link.sh: OK, linking works, let's try omitting a few libraries.
link.sh: See auto/link.log for details.
link.sh: Trying to omit the iconv library...
link.sh: Vim DOES need the iconv library.
link.sh: Trying to omit the perl library...
link.sh: Vim DOES need the perl library.
link.sh: Trying to omit the dl library...
link.sh: Vim doesn't need the dl library!
link.sh: Trying to omit the dl library...
link.sh: Vim doesn't need the dl library!
link.sh: Trying to omit the dl library...
link.sh: Vim doesn't need the dl library!
link.sh: Trying to omit the pthread library...
link.sh: Vim doesn't need the pthread library!
link.sh: Trying to omit the pthread library...
link.sh: Vim doesn't need the pthread library!
link.sh: Trying to omit the m library...
link.sh: Vim doesn't need the m library!
creating auto/pathdef.c
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o objects/pathdef.o auto/pathdef.c
link.sh: Using auto/link.sed file to omit a few libraries
 env LD_RUN_PATH=/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib    -o vim objects/arabic.o objects/beval.o objects/buffer.o objects/blowfish.o objects/crypt.o objects/crypt_zip.o objects/dict.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/evalfunc.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/farsi.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o  objects/if_cscope.o objects/if_xcmdsrv.o objects/list.o objects/mark.o objects/memline.o objects/menu.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/pty.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/sha256.o objects/spell.o objects/spellfile.o objects/syntax.o objects/tag.o objects/term.o objects/terminal.o objects/ui.o objects/undo.o objects/userfunc.o objects/version.o objects/window.o  objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o   objects/if_perl.o objects/if_perlsfio.o  objects/if_python3.o  objects/if_ruby.o objects/os_macosx.o objects/os_mac_conv.o  objects/netbeans.o objects/channel.o  objects/charset.o objects/json.o objects/main.o objects/memfile.o objects/message.o        -lncurses -liconv -framework AppKit   -mmacosx-version-min=10.11 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation  -lruby.2.5.1 -lgmp -lobjc    
link.sh: Linked fine with a few libraries omitted
==> make install prefix=/usr/local/Cellar/vim/8.1.0202 STRIP=/usr/bin/true
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 install
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/bin
chmod 755 /usr/local/Cellar/vim/8.1.0202/bin
if test -f /usr/local/Cellar/vim/8.1.0202/bin/vim; then \
      mv -f /usr/local/Cellar/vim/8.1.0202/bin/vim /usr/local/Cellar/vim/8.1.0202/bin/vim.rm; \
      rm -f /usr/local/Cellar/vim/8.1.0202/bin/vim.rm; \
    fi
cp vim /usr/local/Cellar/vim/8.1.0202/bin
/usr/bin/true /usr/local/Cellar/vim/8.1.0202/bin/vim
chmod 755 /usr/local/Cellar/vim/8.1.0202/bin/vim
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim
cp vimtutor /usr/local/Cellar/vim/8.1.0202/bin/vimtutor
chmod 755 /usr/local/Cellar/vim/8.1.0202/bin/vimtutor
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/doc
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/doc
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/print
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/print
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/colors
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/colors
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/syntax
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/syntax
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indent
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indent
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugin
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugin
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/dist
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/dist
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/xml
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/xml
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/plugin
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/plugin
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tutor
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tutor
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/spell
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/spell
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/compiler
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/compiler
/bin/sh ./installman.sh install /usr/local/Cellar/vim/8.1.0202/share/man/man1 "" /usr/local/Cellar/vim/8.1.0202/share/vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81 /usr/local/Cellar/vim/8.1.0202/share/vim ../runtime/doc 644 vim vimdiff evim
creating /usr/local/Cellar/vim/8.1.0202/share/man/man1
installing /usr/local/Cellar/vim/8.1.0202/share/man/man1/vim.1
installing /usr/local/Cellar/vim/8.1.0202/share/man/man1/vimtutor.1
installing /usr/local/Cellar/vim/8.1.0202/share/man/man1/vimdiff.1
installing /usr/local/Cellar/vim/8.1.0202/share/man/man1/evim.1
cd ../runtime/doc; if test -z "" -a -f tags; then \
        mv -f tags tags.dist; fi
generating help tags
/usr/local/Cellar/vim/8.1.0202/bin/vim -u NONE -esX -c "helptags ++t ." -c quit
cd ../runtime/doc; \
        files=`ls *.txt tags`; \
        files="$files `ls *.??x tags-?? 2>/dev/null || true`"; \
        cp $files  /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/doc; \
        cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/doc; \
        chmod 644 $files
cp  ../runtime/doc/*.pl /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/doc
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/doc/*.pl
cd ../runtime/doc; if test -f tags.dist; then mv -f tags.dist tags; fi
cp ../runtime/menu.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/menu.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/menu.vim
cp ../runtime/synmenu.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/synmenu.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/synmenu.vim
cp ../runtime/delmenu.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/delmenu.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/delmenu.vim
cp ../runtime/defaults.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/defaults.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/defaults.vim
cp ../runtime/evim.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/evim.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/evim.vim
cp ../runtime/mswin.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/mswin.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/mswin.vim
cp ../runtime/rgb.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/rgb.txt
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/rgb.txt
cp ../runtime/bugreport.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/bugreport.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/bugreport.vim
cp ../runtime/vimrc_example.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/vimrc_example.vim
cp ../runtime/gvimrc_example.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/gvimrc_example.vim
cp ../runtime/filetype.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/filetype.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/filetype.vim
cp ../runtime/ftoff.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftoff.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftoff.vim
cp ../runtime/scripts.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/scripts.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/scripts.vim
cp ../runtime/ftplugin.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugin.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugin.vim
cp ../runtime/ftplugof.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugof.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugof.vim
cp ../runtime/indent.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indent.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indent.vim
cp ../runtime/indoff.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indoff.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indoff.vim
cp ../runtime/optwin.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/optwin.vim
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/optwin.vim
cd ../runtime/print; cp *.ps /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/print
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/print; chmod 644 *.ps
cd ../runtime/colors; cp -r *.vim tools README.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/colors
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/colors; chmod 755 tools
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/colors; chmod 644 *.vim README.txt tools/*.vim
cd ../runtime/syntax; cp *.vim README.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/syntax
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/syntax; chmod 644 *.vim README.txt
cd ../runtime/indent; cp *.vim README.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indent
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/indent; chmod 644 *.vim README.txt
cd ../runtime/autoload; cp *.vim README.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload; chmod 644 *.vim README.txt
cd ../runtime/autoload/dist; cp *.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/dist
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/dist; chmod 644 *.vim
cd ../runtime/autoload/xml; cp *.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/xml
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/autoload/xml; chmod 644 *.vim
cd ../runtime/plugin; cp *.vim README.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/plugin
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/plugin; chmod 644 *.vim README.txt
cd ../runtime/ftplugin; cp *.vim README.txt logtalk.dict /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugin
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/ftplugin; chmod 644 *.vim README.txt
cd ../runtime/compiler; cp *.vim README.txt /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/compiler
cd /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/compiler; chmod 644 *.vim README.txt
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros
cp -r ../runtime/macros/* /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros
chmod 755 `find /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros -type d -print`
chmod 644 `find /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros -type f -print`
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros/less.sh
cvs=`find /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/macros \( -name CVS -o -name AAPDIR -o -name "*.info" \) -print`; \
          if test -n "$cvs"; then \
         rm -rf $cvs; \
          fi
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/pack
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/pack
cp -r ../runtime/pack/* /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/pack
chmod 755 `find /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/pack -type d -print`
chmod 644 `find /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/pack -type f -print`
cp ../runtime/tutor/README* ../runtime/tutor/tutor* /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tutor
rm -f /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tutor/*.info
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tutor/*
if test -f ../runtime/spell/en.latin1.spl; then \
      cp ../runtime/spell/*.spl ../runtime/spell/*.sug ../runtime/spell/*.vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/spell; \
      chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/spell/*.spl /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/spell/*.sug /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/spell/*.vim; \
    fi
cd /usr/local/Cellar/vim/8.1.0202/bin; ln -s vim ex
cd /usr/local/Cellar/vim/8.1.0202/bin; ln -s vim view
cd /usr/local/Cellar/vim/8.1.0202/bin; ln -s vim rvim
cd /usr/local/Cellar/vim/8.1.0202/bin; ln -s vim rview
cd /usr/local/Cellar/vim/8.1.0202/bin; ln -s vim vimdiff
/bin/sh ./installml.sh install "" \
        /usr/local/Cellar/vim/8.1.0202/share/man/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
creating link /usr/local/Cellar/vim/8.1.0202/share/man/man1/ex.1
creating link /usr/local/Cellar/vim/8.1.0202/share/man/man1/view.1
creating link /usr/local/Cellar/vim/8.1.0202/share/man/man1/rvim.1
creating link /usr/local/Cellar/vim/8.1.0202/share/man/man1/rview.1
/bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools
chmod 755 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools
if test -f /usr/local/Cellar/vim/8.1.0202/bin/xxd; then \
      mv -f /usr/local/Cellar/vim/8.1.0202/bin/xxd /usr/local/Cellar/vim/8.1.0202/bin/xxd.rm; \
      rm -f /usr/local/Cellar/vim/8.1.0202/bin/xxd.rm; \
    fi
cp xxd/xxd /usr/local/Cellar/vim/8.1.0202/bin
/usr/bin/true /usr/local/Cellar/vim/8.1.0202/bin/xxd
chmod 755 /usr/local/Cellar/vim/8.1.0202/bin/xxd
/bin/sh ./installman.sh xxd /usr/local/Cellar/vim/8.1.0202/share/man/man1 "" /usr/local/Cellar/vim/8.1.0202/share/vim /usr/local/Cellar/vim/8.1.0202/share/vim/vim81 /usr/local/Cellar/vim/8.1.0202/share/vim ../runtime/doc 644 vim vimdiff evim
installing /usr/local/Cellar/vim/8.1.0202/share/man/man1/xxd.1
cp -r ../runtime/tools/* /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools
cvs=`find /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools \( -name CVS -o -name AAPDIR \) -print`; \
          if test -n "$cvs"; then \
         rm -rf $cvs; \
          fi
chmod 644 /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools/*
perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$perlpath+" ../runtime/tools/efm_perl.pl >/usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools/efm_perl.pl
awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$awkpath+" ../runtime/tools/mve.awk >/usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools/mve.awk; if test -z "$awkpath"; then \
        awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$awkpath+" ../runtime/tools/mve.awk >/usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools/mve.awk; if test -z "$awkpath"; then \
        awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$awkpath+" ../runtime/tools/mve.awk >/usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools/mve.awk; fi; fi
chmod 755 `grep -l "^#!" /usr/local/Cellar/vim/8.1.0202/share/vim/vim81/tools/*`
if test -n ""; then \
        /bin/sh install-sh -c -d /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor/48x48/apps /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/32x32/apps \
        /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/16x16/apps /usr/local/Cellar/vim/8.1.0202/share/applications; \
    fi
if test -d /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor/48x48/apps -a -w /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor/48x48/apps \
        -a ! -f /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor/48x48/apps/gvim.png; then \
       cp ../runtime/vim48x48.png /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor/48x48/apps/gvim.png; \
       if test -z "" -a -x "" \
           -a -w /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor \
           -a -f /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor/index.theme; then \
         -q /usr/local/Cellar/vim/8.1.0202/share/icons/hicolor; \
       fi \
    fi
if test -d /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/32x32/apps -a -w /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/32x32/apps \
        -a ! -f /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/32x32/apps/gvim.png; then \
       cp ../runtime/vim32x32.png /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/32x32/apps/gvim.png; \
    fi
if test -d /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/16x16/apps -a -w /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/16x16/apps \
        -a ! -f /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/16x16/apps/gvim.png; then \
       cp ../runtime/vim16x16.png /usr/local/Cellar/vim/8.1.0202/share/icons/locolor/16x16/apps/gvim.png; \
    fi
if test -d /usr/local/Cellar/vim/8.1.0202/share/applications -a -w /usr/local/Cellar/vim/8.1.0202/share/applications; then \
       cp ../runtime/vim.desktop \
        ../runtime/gvim.desktop \
        /usr/local/Cellar/vim/8.1.0202/share/applications; \
       if test -z "" -a -x ""; then \
           -q /usr/local/Cellar/vim/8.1.0202/share/applications; \
       fi \
    fi
==> Cleaning
Fixing /usr/local/Cellar/vim/8.1.0202/bin/vim permissions from 755 to 555
Fixing /usr/local/Cellar/vim/8.1.0202/bin/vimtutor permissions from 755 to 555
Fixing /usr/local/Cellar/vim/8.1.0202/bin/xxd permissions from 755 to 555
==> Finishing up
ln -s ../Cellar/vim/8.1.0202/bin/ex ex
ln -s ../Cellar/vim/8.1.0202/bin/rview rview
ln -s ../Cellar/vim/8.1.0202/bin/rvim rvim
ln -s ../Cellar/vim/8.1.0202/bin/view view
ln -s ../Cellar/vim/8.1.0202/bin/vim vim
ln -s ../Cellar/vim/8.1.0202/bin/vimdiff vimdiff
ln -s ../Cellar/vim/8.1.0202/bin/vimtutor vimtutor
ln -s ../Cellar/vim/8.1.0202/bin/xxd xxd
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/evim.1 evim.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/ex.1 ex.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/rview.1 rview.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/rvim.1 rvim.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/view.1 view.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/vim.1 vim.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/vimdiff.1 vimdiff.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/vimtutor.1 vimtutor.1
ln -s ../../../Cellar/vim/8.1.0202/share/man/man1/xxd.1 xxd.1
ln -s ../Cellar/vim/8.1.0202/share/vim vim
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180827-22215-cxemx6.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/postinstall.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb -vd --build-from-source
/usr/local/Homebrew/Library/Homebrew/postinstall.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gmp.rb
==> Summary
๐Ÿบ  /usr/local/Cellar/vim/8.1.0202: 1,434 files, 23.4MB, built in 6 minutes 8 seconds

(That's roughly two to three times longer than usual, but I think I know what memory-hogging process to blame for thatโ€ฆ) Notice the line stating, "defaulting to: don't HAVE_X11," above; this confirms an earlier suspicion I had, but which I only ventured mentioning when I initially reported this issue upstream when I thought it could be their regression, that --with-client-server has been broken all along, regardless of of what happens with vim's --with-x configure option, in brew, and nobody noticed.

There's not been an update to the vim formula since May around the time 8.1 was released.

4b9aa90e83 vim: update 8.1.0300 bottle.
7bcbfdd10a vim 8.1.0300
e30be00671 vim: update 8.1.0250 bottle.
fdc655222d vim 8.1.0250
79e6fead47 vim: update 8.1.0202 bottle.
adf79cbdd3 vim 8.1.0202
7fbaaecc04 vim: update 8.1.0200 bottle.
669147c5f6 vim 8.1.0200
2eafaaa1a0 vim: update 8.1.0150 bottle.
b99670611c vim 8.1.0150
8f1592d8aa vim: update 8.1.0100_2 bottle.
1d572db8e5 vim: revision for python
68fcc643e1 vim: update 8.1.0100_1 bottle.
8cb52c0cc5 vim: revision for perl
9136c38c5c vim: update 8.1.0100 bottle.
feaf042ef3 vim 8.1.0100
ead1bc834a vim: update 8.1.0050 bottle.
ac6a6fb374 vim 8.1.0050
db3c9c7dfa vim: update 8.1.0001 bottle.
e5ebdd927d vim: tweak lua handling
21b3233afd vim: update 8.1.0001 bottle.
7767541b4c vim 8.1.0001
db3aca96cf vim: update 8.0.1850 bottle.

Would you mind start using gists instead of typing it all into the issue ? Its getting heavy and it doesn't help overlooking what's going on =)

     Nope, none of us missed anything the first time around when looking at diffs: as noted before, the only things that have changed between formula revisions under scrutiny are versions, download URLs, and source/bottle checksums. I was thinking that maybe some commit could have inadvertently removed 'depends_on :x11 if build.with? "client-server"' from vim.rb when nobody was looking, but, no, it's still there.

@javian:

     I usually delete old Gists pretty soon after I don't personally need them later (treating them sort of like temporary files,) but I can dump things into my Homebrew logs repository and link to them there. (I also edited one of my recent posts to add a bit more context outside of code-blob excerpts, so that might help.)

@javian:

There's not been an update to the vim formula since May around the time 8.1 was released. โ€ฆ

     Yeah, I just wanted to umptuple-check to make sure I wasn't being scatterbrained and losing my marbles or something silly memory-related like thatโ€ฆ

So can we can sum this up and describe what conclusions have been made so far ?

     Right. Here's what we know:

  • Building and installing vim v8.1.0202 (and earlier) --with-client-server works under Homebrew v1.7.0 and earlier, but, as is now apparent, with vim's configure script ignoring the --with-x option that Homebrew then passes it because it can't find any X11 headers or library files.
  • Building and installing at least vim versions 8.1.0250 and later (probably starting with vim v8.1.0215, which introduced the stricter test for X11 header and library asset existence and usability,) --wth-client-server fails under at least Homebrew v1.7.2.
  • Building and installing vim v8.1.0300 fails under both Homebrew versions 1.7.0 and 1.7.2 (and probably others.)
  • Earlier troubleshooting by both myself and @sirgatez involving temporary surgery on the vim formula to various degrees indicates that something in Homebrew's DSL handling and environment setup may be a bit flaky regardless of how much any problems there ever had to do with this issue beyond that at all. Depending on what is changed in of the formula's source code, vim might or might not be able to find X11 headers and library files without their locations being explicitly specified in-formula. As far as we know, explicitly specifying those paths always works.

I think that's everything.

That sounds correct. But, the interesting thing is that .300 fails to build under older vim circa 202 (https://github.com/Homebrew/homebrew-core/commit/79e6fead47d85eb239cb1d10061bc79134e1b987), and more interesting is that 202 builds just fine under the latest version of brew when using the same config file from .300.

That part has be scratching my head. If it was the config file causing the issue then it should have resolved when I swapped the 202 file into 300 vim. Same, if it were a brew version specific between these two times swapping the 300 config back to the older version of time should have build successfully.

Instead I think like @RandomDSdevel said earlier, that something has been broken for a while and only recently did it start failing. We still don't understand what the catalyst is that causes the failure, let alone the root cause.

I was assuming the issue was somehow specific to the configure.ac file in Vim and the latest Brew environment used, since the failure occurs there.

But it seems like it could be more related to the environment, and not involving configure.ac at all. I'm just not sure how yet.

@RandomDSdevel I think a piece that's missing is that it is only certain systems is affected. The brew bot and I and @maxim-belkin can build it without issues.

@javian:

     But is that --with-client-server? (I know you tested things that way and CI never does, but I can't recall what @maxim-belkin did off of the top of my head.) (Addendum: Scrolling up confirms that @maxim-belkin did test --with-client-server โ€” or, rather, with all the same options I've have set.)

@RandomDSdevel yes I can build it without issues on two different machines.

โžœ  ~ brew reinstall -s --with-client-server vim
==> Reinstalling vim --with-client-server
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/xxx/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ  /usr/local/Cellar/vim/8.1.0300: 1,438 files, 23.5MB, built in 2 minutes 23 seconds
โžœ  ~

     Do you have another machine or a VM on which you can install both Xcode and the Command-Line Tools and try again? I remember that being a difference you noted between my and @sirgatez's setup and yours, @javian.

I'll see if I can try however the CI testbot does have both the CLT and Xcode installed which also was able to compile without issues.

This stripped formula seems to be the trick. Python seem to be the culprit for me.
I do not know why yet...

class Vim5 < Formula
  desc "Vi 'workalike' with many additional features"
  homepage "https://www.vim.org/"
  # vim should only be updated every 50 releases on multiples of 50
  url "file:////Users/jbriefma/Desktop/work/broke-vim/vim-8.1.0300t3.tar.gz"
  sha256 "e3064dbc51140c68d7b064c247787510ee6178a6a19d448b9ab976c7cf300c28"
  head "https://github.com/vim/vim.git"

  #depends_on "python" => :recommended if build.without? "python@2" # Removal stops X Include error
  depends_on :x11

  def install

    opts = ["--disable-nls", "--enable-gui=no", "--with-x"]

    system "./configure", "--prefix=#{HOMEBREW_PREFIX}",
                          "--mandir=#{man}",
                          "--enable-multibyte",
                          "--with-tlib=ncurses",
                          "--enable-cscope",
                          "--enable-terminal",
                          "--with-compiledby=Homebrew",
                          *opts
  end
end
# With Python dependency
โžœ  broke-vim brew install --build-from-source ./vim5.rb
==> Downloading file:////Users/jbriefma/Desktop/work/broke-vim/vim-8.1.0300t3.ta
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim5--3.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim5/3/share/man
Last 15 lines from /Users/jbriefma/Library/Logs/Homebrew/vim5/01.configure:
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... no
configure: error: could not configure X

Do not report this issue to Homebrew/brew or Homebrew/core!
# Without Python dependency
โžœ  broke-vim brew install --build-from-source ./vim5.rb
==> Downloading file:////Users/jbriefma/Desktop/work/broke-vim/vim-8.1.0300t3.ta
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim5--3.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim5/3/share/man
Error: Empty installation

Log from above config which was successful
/Users/jbriefma/Library/Logs/Homebrew/vim5/01.configure

2018-08-28 23:12:32 -0700

./configure
--prefix=/usr/local
--mandir=/usr/local/Cellar/vim5/3/share/man
--enable-multibyte
--with-tlib=ncurses
--enable-cscope
--enable-terminal
--with-compiledby=Homebrew
--disable-nls
--enable-gui=no
--with-x

configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang option to accept ISO C99... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for strip... strip
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking if the compiler supports trailing commas... yes
checking if the compiler supports C++ comments... yes
checking --enable-fail-if-missing argument... no
checking for clang version... 902000039
checking if clang supports -fno-strength-reduce... no
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.' - probably OK.
checking for BeOS... no
checking for QNX... no
checking for Darwin (Mac OS X)... yes
checking --disable-darwin argument... no
checking if Darwin files are there... yes
checking --with-mac-arch argument... defaulting to current
checking --with-developer-dir argument... not present
checking for xcode-select... /usr/bin/xcode-select
checking for developer dir using xcode-select... /Applications/Xcode.app/Contents/Developer
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Carbon/Carbon.h usability... yes
checking Carbon/Carbon.h presence... yes
checking for Carbon/Carbon.h... yes
checking AvailabilityMacros.h usability... yes
checking AvailabilityMacros.h presence... yes
checking for AvailabilityMacros.h... yes
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... no
checking linux/xattr.h presence... no
checking for linux/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... no
checking --with-features argument... Defaulting to huge
checking --with-compiledby argument... Homebrew
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... no
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... no
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... no
checking --enable-tclinterp argument... no
checking --enable-rubyinterp argument... no
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking --disable-channel argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling with process communication is possible... yes
checking --enable-terminal argument... yes
checking --enable-autoservername argument... no
checking --enable-multibyte argument... yes
checking --enable-hangulinput argument... no
checking --enable-xim argument... defaulting to auto
checking --enable-fontset argument... no
checking for xmkmf... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if X11 header files can be found... yes
checking for _XdmcpAuthDoIt in -lXdmcp... yes
checking for IceOpenConnection in -lICE... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking if X11 header files implicitly declare return values... no
checking size of wchar_t is 2 bytes... no
checking --enable-gui argument... no GUI support
checking X11/SM/SMlib.h usability... yes
checking X11/SM/SMlib.h presence... yes
checking for X11/SM/SMlib.h... yes
checking for /proc link to executable... no
checking for CYGWIN or MSYS environment... no
checking whether toupper is broken... no
checking whether __DATE__ and __TIME__ work... yes
checking whether __attribute__((unused)) is allowed... yes
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for unistd.h... (cached) yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking util/debug.h usability... no
checking util/debug.h presence... no
checking for util/debug.h... no
checking util/msg18n.h usability... no
checking util/msg18n.h presence... no
checking for util/msg18n.h... no
checking frame.h usability... no
checking frame.h presence... no
checking for frame.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking sys/access.h usability... no
checking sys/access.h presence... no
checking for sys/access.h... no
checking sys/sysinfo.h usability... no
checking sys/sysinfo.h presence... no
checking for sys/sysinfo.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for sys/ptem.h... no
checking for sys/sysctl.h... yes
checking for pthread_np.h... no
checking for strings.h... (cached) yes
checking whether clang needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for uint32_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for ino_t... yes
checking for dev_t... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for rlim_t... yes
checking for stack_t... yes
checking whether stack_t has an ss_base field... no
checking --with-tlib argument... ncurses
checking for linking with ncurses library... OK
checking for tgetent()... yes
checking whether we talk terminfo... yes
checking what tgetent() returns for an unknown terminal... non-zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no
checking whether sys/select.h and sys/time.h may both be included... yes
checking for /dev/ptc... no
checking for SVR4 ptys... yes
checking for ptyranges... pqrstuvw / 0123456789abcdef
checking default tty permissions/group... can't determine - assume ptys are world accessible
world
checking return type of signal handlers... void
checking for struct sigcontext... yes
checking getcwd implementation is broken... no
checking for fchdir... yes
checking for fchown... yes
checking for fchmod... yes
checking for fsync... yes
checking for getcwd... yes
checking for getpseudotty... no
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for getrlimit... yes
checking for gettimeofday... yes
checking for getwd... yes
checking for lstat... yes
checking for memset... yes
checking for mkdtemp... yes
checking for nanosleep... yes
checking for opendir... yes
checking for putenv... yes
checking for qsort... yes
checking for readlink... yes
checking for select... yes
checking for setenv... yes
checking for getpgid... yes
checking for setpgid... yes
checking for setsid... yes
checking for sigaltstack... yes
checking for sigstack... no
checking for sigset... yes
checking for sigsetjmp... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigvec... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strftime... yes
checking for stricmp... no
checking for strncasecmp... yes
checking for strnicmp... no
checking for strpbrk... yes
checking for strtol... yes
checking for tgetent... yes
checking for towlower... yes
checking for towupper... yes
checking for iswupper... yes
checking for usleep... yes
checking for utime... yes
checking for utimes... yes
checking for mblen... yes
checking for ftruncate... yes
checking for unsetenv... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for st_blksize... yes
checking whether stat() ignores a trailing slash... no
checking for iconv_open()... yes; with -liconv
checking for nl_langinfo(CODESET)... yes
checking for strtod in -lm... yes
checking for strtod() and other floating point functions... yes
checking for isinf()... yes
checking for isnan()... yes
checking --disable-acl argument... no
checking for acl_get_file in -lposix1e... no
checking for acl_get_file in -lacl... no
checking for POSIX ACL support... yes
checking for acl_get in -lsec... no
checking for Solaris ACL support... no
checking for AIX ACL support... no
checking --disable-gpm argument... no
checking for gpm... no
checking --disable-sysmouse argument... no
checking for sysmouse... no
checking for FD_CLOEXEC... yes
checking for rename... yes
checking for sysctl... yes
checking for sysinfo... not usable
checking for sysinfo.mem_unit... no
checking for sysconf... yes
checking size of int... 4
checking size of long... 8
checking size of time_t... 8
checking size of off_t... 8
checking uint32_t is 32 bits... ok
checking whether memmove handles overlaps... yes
checking whether X_LOCALE needed... yes
checking whether Xutf8SetWMProperties() can be used... yes
checking for _xpg4_setrunelocale in -lxpg4... no
checking how to create tags... ctags -t
checking how to run man with a section nr... man -s
checking --disable-nls argument... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen()... yes
checking for dlsym()... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking whether we need macOS frameworks... yes, we need AppKit
checking for GCC 3 or later... yes
checking whether we need -D_FORTIFY_SOURCE=1... yes
checking whether we need to force -D_FILE_OFFSET_BITS=64... no
checking linker --as-needed support... no
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h

I can confirm removing the Python2 and Python3 dependencies and options, resolves the issue with X11 includes not being detected...? lol ๐Ÿคฃ

Trying to build with either Python dependency results in the X11 include error.

 32   depends_on "perl"
 33   depends_on "ruby"
 34   #depends_on "python" => :recommended if build.without? "python@2"
 35   depends_on "gettext" => :optional
 36   depends_on "lua" => :optional
 37   depends_on "luajit" => :optional
 38   #depends_on "python@2" => :optional

 55     #(LANGUAGES_OPTIONAL + LANGUAGES_DEFAULT).each do |language|
 56     #  feature = { "python" => "python3", "python@2" => "python" }
 57     #  if build.with? language
 58     #    opts << "--enable-#{feature.fetch(language, language)}interp"
 59     #  end
 60     #end
 61
 62     #if opts.include?("--enable-pythoninterp") && opts.include?("--enable-      python3interp")
 63       # only compile with either python or python@2 support, but not both
 64       # (if vim74 is compiled with +python3/dyn, the Python[3] library          lookup segfaults
 65       # in other words, a command like ":py3 import sys" leads to a SEGV)
 66     #  opts -= %w[--enable-python3interp]
 67     #end
โžœ  ~ brew edit vim
Editing /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
โžœ  ~ brew install vim --with-client-server --with-gettext --with-lua  --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/jbriefma/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/shar
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ  /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.5MB, built in 1 minute 14 seconds

I have no issues installing with Python support either

โžœ  ~ brew reinstall -s vim --with-python@2 --with-client-server
==> Reinstalling vim --with-client-server --with-python@2
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/javian/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ  /usr/local/Cellar/vim/8.1.0300: 1,438 files, 23.5MB, built in 3 minutes 33 seconds
โžœ  ~

so its a good find for you but hasn't explained what's causing the issue.

โžœ  ~ brew reinstall vim --with-client-server --with-gettext --with-lua  --with-tcl
==> Reinstalling vim --with-gettext --with-client-server --with-python@2 --with-lua --with-tcl
==> Installing vim --with-gettext --with-client-server --with-python@2 --with-lua --with-tcl
==> Downloading https://github.com/vim/vim/archive/v8.1.0300.tar.gz
Already downloaded: /Users/javian/Library/Caches/Homebrew/vim--8.1.0300.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0300/share/man --enable-multibyte
==> make
==> make install prefix=/usr/local/Cellar/vim/8.1.0300 STRIP=/usr/bin/true
๐Ÿบ  /usr/local/Cellar/vim/8.1.0300: 1,832 files, 30.6MB, built in 2 minutes 50 seconds
โžœ  ~

Are you using any python options ?

For vim, it appears to default to building with Python3 if no options are specified, but it also occurs if I use the flag to build with Python2.

I built Python3 and Python2 with the --with-tcl-tk flag. Both were recently rebuilt.

/usr/local/Cellar/python/3.7.0 (9,336 files, 160.2MB) *
  Built from source on 2018-07-24 at 16:32:39 with: --with-tcl-tk
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb

/usr/local/Cellar/python@2/2.7.15_1 (7,514 files, 122.4MB) *
  Built from source on 2018-07-24 at 16:24:30 with: --with-tcl-tk
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]

@RandomDSdevel have you had a chance to try removing Python as a dependency and option from vim? Does it successfully build with X for you as well?

@sirgatez I can confirm that when I installed python 3 --with-tcl-tk I also get the error and can't build vim with client server despite having the headers.

@javian Sweet, I think we're getting REALLY close now :-D

So just building vim without options when python is built with --tcl-tk seems to be sufficient to make it stop at the X11 header files in the configure process (confirmed it on another machine).

@sirgatez:

@RandomDSdevel have you had a chance to try removing Python as a dependency and option from vim? Does it successfully build with X for you as well?

     Sorry, haven't had a chance to check yet. I'll let you know when I've tried. That does sound like a solid lead, though!

@sirgatez:

     I can now also confirm that modifying the vim formula to remove anything related to Python 2/3 support allows for Vim to be built and installed from within Homebrew even when this is done --with-client-server (with X11.)

     For the record, my Python installations were built and installed as follows:

  • Python 2.x:

    Bryces-HD-1-TB:~ zadmin$ brew info python@2
    python@2: stable 2.7.15 (bottled), HEAD
    Interpreted, interactive, object-oriented programming language
    https://www.python.org/
    /usr/local/Cellar/python@2/2.7.15_1 (7,516 files, 122.5MB) *
     Built from source on 2018-06-20 at 23:49:47 with: --with-tcl-tk
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]
    ==> Dependencies
    Build: pkg-config โœ”, sphinx-doc โœ”
    Required: gdbm โœ”, openssl โœ”, readline โœ”, sqlite โœ”
    Optional: tcl-tk โœ”
    ==> Options
    --with-tcl-tk
    Use Homebrew's Tk instead of macOS Tk (has optional Cocoa and threads support)
    --HEAD
    Install HEAD version
    ==> Caveats
    Pip and setuptools have been installed. To update them
     pip install --upgrade pip setuptools
    
    You can install Python packages with
     pip install <package>
    
    They will install into the site-package directory
     /usr/local/lib/python2.7/site-packages
    
    See: https://docs.brew.sh/Homebrew-and-Python
    
  • Python 3.x:

    Bryces-HD-1-TB:~ zadmin$ brew info python
    python: stable 3.7.0 (bottled), HEAD
    Interpreted, interactive, object-oriented programming language
    https://www.python.org/
    /usr/local/Cellar/python/3.7.0 (9,337 files, 160.3MB) *
     Built from source on 2018-06-30 at 23:20:09 with: --with-tcl-tk
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb
    ==> Dependencies
    Build: pkg-config โœ”, sphinx-doc โœ”
    Required: gdbm โœ”, openssl โœ”, readline โœ”, sqlite โœ”, xz โœ”
    Optional: tcl-tk โœ”
    ==> Options
    --with-tcl-tk
    Use Homebrew's Tk instead of macOS Tk (has optional Cocoa and threads support)
    --HEAD
    Install HEAD version
    ==> Caveats
    Python has been installed as
     /usr/local/bin/python3
    
    Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
    `python3`, `python3-config`, `pip3` etc., respectively, have been installed into
     /usr/local/opt/python/libexec/bin
    
    If you need Homebrew's Python 2.7 run
     brew install python@2
    
    Pip, setuptools, and wheel have been installed. To update them run
     pip3 install --upgrade pip setuptools wheel
    
    You can install Python packages with
     pip3 install <package>
    They will install into the site-package directory
     /usr/local/lib/python3.7/site-packages
    
    See: https://docs.brew.sh/Homebrew-and-Python
    

@RandomDSdevel right so you also have python with tcl-tk support. Has this setup worked for the both of you previously or is the tcl-tk something new on your system(s) ?

Yes, this would be my normal build. I've been using it for several years at this point I believe.

@javian:

     Same as @sirgatez here, though perhaps for not as long.

Ok, so the we've confirmed that. So we can also say that the situation is the same with Python 2 & 3 right ? I can't see that the python formula has changed really but it might be worth trying to roll that back a bit.

All: I hadn't yet, but I'm going to delete my test vim formula now that we know what the problem is here.

Belated addendum: Done.

@javian:

โ€ฆSo we can also say that the situation is the same with Python 2 & 3 right ? I can't see that the python formula has changed really but it might be worth trying to roll that back a bit.

     The only changes that I see having been made to any Python version available through Homebrew have been:

  • For Python 3, per its formula history:

    • Formula/bottle and in-formula resource version bumps.

    • A build fix related to supporting the upcoming macOS 10.14 'Mojave.'

  • For Python 2, per its formula history (GitHub took too long to generate this one for me, so I used brew log python@2 locally for it:)

    • The same as above (that is:



      • Formula/bottle and in-formula resource version bumps.


      • A build fix related to supporting the upcoming macOS 10.14 'Mojave.')



I haven't yet had time to test troubleshooting Python formula options but can try that before the week is out, I think.

@javian:

     I've now confirmed that vim builds fine for me when brew install* is passed its --with-client-server option and either python or python@2 is built without its --with-tcl-tk option, as well. I wonder what building and installing vim with its --with-client-server option when either version of Python is built _with_ its --with-tcl-tk option changes? I bet there's a Ruby step-intoโ€“debugging tool I could try and use to debug thisโ€ฆ


* Done after moving my old vim and Python installations out of the way, hence no brew upgrade ever being involved. I've put things back the way they were, vim being built against Python 3.x and all, for the time being now, though.

What i can see https://github.com/vim/vim/blob/master/src/auto/configure#L8755-L8778 is causing the error but it might just well be in the python part of the configure script.

You could try to add some debugging code to configure to see if you can figure it out https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Debugging.html

     Well, if, instead of a package-managerโ€“independent vim build-configuration issue, this turns out to be an issue with building vim using Homebrew, then maybe pry-byebug could help with debugging thisโ€ฆ?

@javian:

     I thought I'd follow my last train of though and start by tracing through Homebrew's Ruby code to see if anything goes wrong while its setting up its invocation of vim's configure script, but, If I try inserting the following lines:

require 'pry'

binding.pry

at the top of Library/Homebrew/brew.rb, I get the following error when doing a trial run of brew upgrade for vim:

/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- pry (LoadError)
        from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/Homebrew/Library/Homebrew/brew.rb:1:in `<main>'

(I get the same error if I add require 'pry-byebug' just underneath require 'pry' and right before binding.pry. Though, In any case, perhaps that's a bit too heavy-handed of an approach, and there's some scope more limited where I could do something of this sort successfullyโ€ฆ?) Running brew irb --pry without first making this modification works fine, though, and I was able to get it to install pry-byebug into Homebrw's portable Ruby's gem set by executing gem-install pry-byebug at its Pry prompt. How would I start stepping through Homebrew's internals using pry-byebug?

@javian:

     I also tried starting brew.rb directly from a command-line invocation of pry, but I wasn't able to get that working quite right either. I was able to launch the Pry shell, but kept getting informational error/warning messages saying that the tool couldn't find parts of its implementation. (It asked if I'd run binding.pry yet, which you obviously have to do from within a Ruby file; the nested Pry session generated by doing this from inside its shell doesn't keep any files open from the outer session.)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

     Go away, stale-bot; I'm still waiting for a response from @javian.

@RandomDSdevel Sorry I would not know how to perform that debugging since I've never done it myself. I'm sure the clue has to be somewhere in the configure script of vim which where I would start looking.

@javian:

     Since builds outside of Homebrew, as well as some inside of it with some formula changes have worked, though, I've been wanting/trying, like I keep saying, to take a look at what sort of environment Homebrew sets up for vim's build system. Maybe I'll ask on Discourse how I might properly set up a Pry session to introspect brew while it's running. (I doubt not being able to do this is a Homebrew bug; I'd be surprised if there wasn't a place to put a 'binding.pry' statement _somewhere_, though it hasn't quite occurred to me just where that might _be_ as of yet. Alternatively, perhaps there's some invocation method I haven't come up with yet.)

@liranp:

     No, our issue is with vim's build system not finding XQuartz; your issue looks unrelated.

@javian:

     I've started a Discourse thread asking for help with my debugging approach here.

@javian:

     Per a new reply I've added to that Discourse thread I created, I think I've figured this out! Here goesโ€ฆ

@javian:

     Here's what I see when I ask Pry to tell me what additional options Homebrew is attempting to pass vim's 'configure' script from the 'opts' variable in which it has stored them when building the package with my personal default formula options:

โ‹ฎ
From: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb @ line 121 Formulary::FormulaNamespace51c1d04ee106ca8a07bdc14cdae2453e::Vim#install:

    116:     # the right place (HOMEBREW_PREFIX/share/vim/{vimrc,vimfiles}) for
    117:     # system vimscript files. We specify the normal installation prefix
    118:     # when calling "make install".
    119:     # Homebrew will use the first suitable Perl & Ruby in your PATH if you
    120:     # build from source. Please don't attempt to hardcode either.
 => 121:     system "./configure", "--prefix=#{HOMEBREW_PREFIX}",
    122:                           "--mandir=#{man}",
    123:                           "--enable-multibyte",
    124:                           "--with-tlib=ncurses",
    125:                           "--enable-cscope",
    126:                           "--enable-terminal",

[1] brew(#<Formulary::FormulaNamespace51c1d04ee106ca8a07bdc14cdae2453e::Vim>)> opts
=> ["--enable-perlinterp",
 "--enable-rubyinterp",
 "--enable-luainterp",
 "--enable-tclinterp",
 "--enable-python3interp",
 "--enable-gui=no",
 "--with-x",
 "--enable-luainterp",
 "--with-lua-prefix=/usr/local/opt/luajit"]
โ‹ฎ

I see nothing odd about anything related to X11 or vim's client/server functionality in general here. What I _do_ see, though, is that the package's formula's logic (both as run through here during execution and as inspected manually later) for handling its '--with-lua' and '--with-luajit' options might be just a _little_ bit inter-entangled where it shouldn't be. (Note that, when installing the vim formula both --with-lua and --with-luajit โ€” among what are, again, my other personal default options, that is, though this may occur with just the two options in question as well even though I haven't checked this yet โ€”, Homebrew gives vim's 'configure' script its '--with-luainterp' option twice. Additionally, the same logic involved here forgets to set the argument for vim's 'configure' script's '--with-lua-prefix' switch back to what it is before Homebrew asserted that it couldn't build with both of those options at the same time and fell back to only doing so '--with-lua.') That can all be fixed separately, though. I'm still debugging vim's 'configure' script itself, so I'll tell you when I've managed to tease anything noteworthy out of doing that. (Sorry for being so slow hereโ€ฆ)

     OK, _now_ we can add yet _another_ wrinkle to this issue's list of them: as of at least Homebrew v1.8.0, vim's 'configure' script runs successfully when I do:

brew install --interactive -vd --build-from-source vim --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl

and, since passing those formula options really doesn't actually _do_ anything when you build a formula in interactive mode, passing it the same options Homebrew would. Non-interactive builds still fail, though.

@javian:

     For reference and to add to my earlier partial 'configure' option dump from Homebrew's view of things, here's what Pry says my 'PATH' is during another run of the exact same kind of build as I used for that earlier comment:

โ‹ฎ
From: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb @ line 121 Formulary::FormulaNamespace51c1d04ee106ca8a07bdc14cdae2453e::Vim#install:

    116:     # the right place (HOMEBREW_PREFIX/share/vim/{vimrc,vimfiles}) for
    117:     # system vimscript files. We specify the normal installation prefix
    118:     # when calling "make install".
    119:     # Homebrew will use the first suitable Perl & Ruby in your PATH if you
    120:     # build from source. Please don't attempt to hardcode either.
 => 121:     system "./configure", "--prefix=#{HOMEBREW_PREFIX}",
    122:                           "--mandir=#{man}",
    123:                           "--enable-multibyte",
    124:                           "--with-tlib=ncurses",
    125:                           "--enable-cscope",
    126:                           "--enable-terminal",

[1] brew(#<Formulary::FormulaNamespace51c1d04ee106ca8a07bdc14cdae2453e::Vim>)> ENV["PATH"]
=> "/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin:/usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin"
โ‹ฎ

(Those first two entries were added as part of setting up my Pry invocation from within the vim formula's source, I believe, but everything else should be identical.)

     I thought there might be a way to fix this issue by solving whatever was blocking vim from implicitly finding the sources it needs to finish configuring its build without any help in the form of 'configure' flags, but I have yet to think of _anything_ relevant to poke at and do so with. At this rate, it's _far_ past time (๐Ÿคฆโ€โ™‚๏ธ) for me to just go ahead and try @DomT4's recommendation from earlier; I'd be surprised if it didn't work.

     (Another aside: vim also seems to be building against the system Tcl-Tk instead of Homebrw's, but, like the other nonโ€“XQuartz-related quirk I spotted, solving that is an orthogonal issue.)

     Aaaaandโ€ฆthat doesn't work?!? Hmm, maybe there's a difference between the installation results of the XQuartz cask and upstream's PKG installerโ€ฆ? (I don't think there should be, but you never knowโ€ฆ) I'll try uninstalling the former and using the latter instead to see if that works.

     Oโ€ฆ_kay?_ _That_ didn't work out, _either._ Guess I'm off to look and see what the difference(s) between an interactive and non-interactive in-Homebrew installation are.

@javian:

     (_Mimes banging his head against the wall._) OK, so I _think_ I've now come to my senses again: this _is_ likely a 'PATH' issue, as, under brew install -vd --build-from-source --interactive vim --with-client-server --with-gettext --with-lua --with-luajit --with-override-system-vi --with-tcl, running printenv PATH produces:

/usr/local/texlive/2018/bin/x86_64-darwin:/opt/X11/bin:/usr/local/opt/python@2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

This is what I normally have in place outside of Homebrew, as set in my shell profile. (An initial, accidentally slightly cursory search of brew's source showed that doing an interactive installation doesn't automatically disable the build sandbox, so I was at first confused as to why this would be the case, but then I later figured it out; it's because going through with such an installation directs control flow through the following pieces of code inside brew:

  1. Library/Homebrew/formula_installer.rb, line 744:

    โ‹ฎ
           sandbox.allow_write_path(ENV["HOME"]) if ARGV.interactive?
    โ‹ฎ
    
  2. Library/Homebrew/build.rb, lines 122โ€“137

    โ‹ฎ
           if ARGV.git?
             system "git", "init"
             system "git", "add", "-A"
           end
           if ARGV.interactive?
             ohai "Entering interactive mode"
             puts "Type `exit' to return and finalize the installation"
             puts "Install to this prefix: #{formula.prefix}"
    
             if ARGV.git?
               puts "This directory is now a git repo. Make your changes and then use:"
               puts "  git diff | pbcopy"
               puts "to copy the diff to the clipboard."
             end
    
             interactive_shell(formula)
    โ‹ฎ
    
  3. Library/Homebrew/utils.rb, lines 164โ€“181:

    โ‹ฎ
    def interactive_shell(f = nil)
     unless f.nil?
       ENV["HOMEBREW_DEBUG_PREFIX"] = f.prefix
       ENV["HOMEBREW_DEBUG_INSTALL"] = f.full_name
     end
    
     if ENV["SHELL"].include?("zsh") && ENV["HOME"].start_with?(HOMEBREW_TEMP.resolved_path.to_s)
       FileUtils.mkdir_p ENV["HOME"]
       FileUtils.touch "#{ENV["HOME"]}/.zshrc"
     end
    
     Process.wait fork { exec ENV["SHELL"] }
    
     return if $CHILD_STATUS.success?
     raise "Aborted due to non-zero exit status (#{$CHILD_STATUS.exitstatus})" if $CHILD_STATUS.exited?
    
     raise $CHILD_STATUS.inspect
    end
    โ‹ฎ
    

The extra sandbox provision being in effect and allowing the execed shell to pick up your PATH thus explains the discrepancy.) Conversely, if I insert:

system "printenv", "PATH"

into the vim formula right before where its 'install' method calls the package's 'configure' script, one sees this flash past during a non-interactive in-Homebrew installation attempt:

==> printenv PATH
/usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

(The path Homebrew uses during such a build, among other environment details, is, of course, printed as debugging output after said build fails if it does. Why I overlooked _that_ small detail and went to insert the extra debugging statement inside the vim formula itself, I'm not sure; _maybe_ I've been staring at all of this for too long by nowโ€ฆ? :man_facepalming:) _Any_-way, I need to look through and see what mischievous little filesystem entity or entities further to the front of this other 'PATH' could possibly be interfering with vim's build system finding its X11-related dependencies.

This issue thread is starting to become unmanageable. @RandomDSdevel can you give a one-paragraph summary of the issue?

If the title is correct, and the issue is limited to non default options of both vim and python, we're probably going _not_ to fix it, as it affects too few users.

@fxcoudert:

This issue thread is starting to become unmanageable. @RandomDSdevel can you give a one-paragraph summary of the issue?

โ‹ฎ

     Agreed; sure, I'll put one together soon.

โ‹ฎ

If the title is correct, and the issue is limited to non default options of both vim and python, we're probably going _not_ to fix it, as it affects too few users.

     Sure, that's fine, but I still have at least one other idea left for a PR to fix this, so I'd prefer trying to stage that locally myself before submitting it, regardless, if you wouldn't mind?

@fxcoudert:

     As requested, here's that updated summary of what we know up to this point:

  1. Building and installing vim v8.1.0202 (and earlier) --with-client-server, --with-gettext, --with-lua, --with-luajit, --with-override-system-vi, and --with-tcl against a Homebrew Python 3 installation initially built --with-tcl-tk partly 'works' under Homebrew v1.7.0 and earlier, but, as has become apparent, with vim's configure script ignoring the --with-x option that Homebrew then passes it because it can't find any X11 headers or library files.

    (Note: This definitively worked before any further releases were tagged and made, but reverting _back_ to the Homebrew version in question and making such a build attempt may or may not work, depending on environment/Git details I never quite figured out myself.)

  2. Building and installing at least vim versions 8.1.0250 and later (probably starting with vim v8.1.0215, which introduced the stricter test for X11 header and library asset existence and usability,) in this same manner fails under at least Homebrew v1.7.2 (and likely v1.7.1 as well.) (This was confirmed by both myself and @sirgatez.)
  3. Building vim from HEAD like this under relatively recent Homebrew versions (presumably v1.7.1 and later?) also fails. (@sirgatez confirmed this.)
  4. Building vim v8.1.0202, the last known working version, with these same options now also fails under relatively recent Homebrew versions (presumably v1.7.1 and later?) instead of working as it did before. (This was pointed out by @sirgatez.)
  5. Doing the same with more recent versions of vim, but building using only its Homebrew formula's '--with-client-server' option and no others, fails. (I tested this.)
  6. Doing a similar stable build, but against a Homebrew Python 3 installation either poured from a bottle or built with no options, succeeds. (This was confirmed by at least CI, @maxim-belkin, and, later, myself.)
  7. Doing the same while removing or commenting out all mentions of at least any version of Python from the vim formula works fine.
  8. Doing the same against a Homebrew Python 3 installation initially built --with-tcl-tk, but experimenting, as @sirgatez did, with having the vim formula pass its associated package's configure script its '--enable-gui=no' option at one point or another, sometimes works and sometimes fails.
  9. Doing the same against a Homebrew Python 3 installation initially built --with-tcl-tk, but explicitly passing vim's configure script the X include and library paths it needs instead of having it deduce them has been known to work most of the time. (@sirgatez tested this, but I was curiously unable to reproduce it for one reason or another; I may try fiddling with this again.)
  10. As of at least Homebrew v1.8.0, vim's 'configure' script runs successfully when invoked from within Homebrew's interactive build shell in the same way as brew would invoke it non-interactively. (This is due to 'PATH' differences.) (I tested this.)
  11. ./configureing vim outside of Homebrew from an upstream tarball using only that script's --with-x option succeeds.
  12. Both @sirgatez and I have both Xcode and its command-line tools package installed.
  13. It doesn't matter whether one installs XQuartz either via Homebrew Cask or using its bare upstream installer; build attempts go through as described here regardless.
  14. Finally, this issue is again, per both point 10 above and an earlier comment of mine, likely 'PATH'-related.

In addition, I've also noticed the following, unrelated curiosities lurking inside the vim formula, to be investigated/repaired separately later:

  1. Its logic for handling its '--with-lua' and '--with-luajit' options might be just a _little_ bit inter-entangled where it shouldn't be: when installing vim both --with-lua and --with-luajit โ€” among what are, again, my other personal default options, that is, though this may occur with just the two options in question as well even though I haven't checked this yet โ€”, Homebrew gives vim's 'configure' script its '--with-luainterp' option twice. Additionally, the same logic involved here forgets to set the argument for vim's 'configure' script's '--with-lua-prefix' switch back to what it is before Homebrew asserted that it couldn't build with both of those options at the same time and fell back to only doing so '--with-lua.')
  2. The formula also seems to be building vim against the system Tcl-Tk instead of Homebrew's.

Anybody please let me know if you have any questions about any of this.

Thanks @RandomDSdevel for the summary, hopefully it will help if other people encounter the error. I don't think we're going to leave this issue open, as the problem is fairly limited (and option combinations are not something we actively support). But feel free to continue the discussion here!

@fxcoudert:

     If, after backing up my current vim installation, I try to brew install vim under Homebrew v1.8.2, then the 'PATH' inside the brew build environment hosting this installation attempt's invocation of vim's configure script is:

PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

On the other hand, if I do the same after applying the following (admittedly tentative and likely hopelessly naรฏve and coarse-grained) change to brew's source:

diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index a47fbcbc7..2bd5ec76b 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -105,8 +105,8 @@ module Superenv
     path = PATH.new(Superenv.bin)

     # Formula dependencies can override standard tools.
-    path.append(deps.map(&:opt_bin))
     path.append(homebrew_extra_paths)
+    path.append(deps.map(&:opt_bin))
     path.append("/usr/bin", "/bin", "/usr/sbin", "/sbin")

     # Homebrew's apple-gcc42 will be outside the PATH in superenv,

then the resulting 'PATH' is:

PATH: /usr/local/opt/python/libexec/bin:/usr/local/Homebrew/Library/Homebrew/shims/mac/super:/opt/X11/bin:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/usr/bin:/bin:/usr/sbin:/sbin

A result more along the lines of what I was expecting to hack together would be something more like:

PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/opt/X11/bin:/usr/local/opt/perl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/tcl-tk/bin:/usr/local/opt/python/libexec/bin:/usr/local/opt/python/bin:/usr/local/opt/gettext/bin:/usr/local/opt/lua/bin:/usr/local/opt/luajit/bin:/usr/bin:/bin:/usr/sbin:/sbin

Not that I'm sure that this would help at _all_, but seeing Python's opt_libexec path at the front as shown earlier makes me wonderโ€ฆ; shouldn't it be placed in there just before Formula["python"].opt_bin, like in my example 'PATH,' instead? It's not immediately obvious why this wouldn't be the case; where might that be set?

@fxcoudert:

     I've added slightly paraphrased versions of my earlier explanations of those orthogonal oddities I noticed before to my latest summary post now.

@fxcoudert:

     This (also hastily-conceived) change:

diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index a47fbcbc7..f14f1c0ac 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -102,11 +102,12 @@ module Superenv
   end

   def determine_path
-    path = PATH.new(Superenv.bin)
+    path = PATH.new

     # Formula dependencies can override standard tools.
     path.append(deps.map(&:opt_bin))
     path.append(homebrew_extra_paths)
+    path.append(Superenv.bin)
     path.append("/usr/bin", "/bin", "/usr/sbin", "/sbin")

     # Homebrew's apple-gcc42 will be outside the PATH in superenv,

doesn't help matters, either.

@fxcoudert:

     There don't happen to be any other places inside superenv's code (or brew's in general, for that matter,) that tweak the build environment's 'PATH' beyond what I've seen so far, do there?

@fxcoudert:

     I ran a --no-sandbox install attempt just to reassure myself that we could rule the sandbox out as related to this issue's cause, and said attempt still failed, so we can.

@fxcoudert:

     _Wait_ a minute, the vim formula has the following line at the very beginning of its install member function:

โ‹ฎ
  def install
    ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"
    โ‹ฎ

Now _how_ could I have missed/overlooked _that?_ ๐Ÿคฆโ€โ™‚๏ธ After some rearrangement of what superenv sets up as its 'PATH' as part of its 'determine_path' function to bring its results in line with what I believe one would expect as stated in an earlier post (which I have staged locally and on my personal 'brew' fork and will soon submit as a separate PR,) changing this code to have it iterate through the pre-existing 'PATH' until it finds a spot closer to where Python's 'opt_bin' is added (either* between all Requirements' and Dependencies' 'opt_bin's or just above Python's 'opt_bin' in priority) and then inserting this 'opt_libexec' directory _there_ should do the trick here, I think. I'm not terribly familiar with what an idiomatic way to do this in Ruby might look like though, so my first pass at a PR in the spirit of what I've just described hereโ€ฆ_might_ look just a _tad_ messy (apologies in advance.)

* The former could be easier to get to, but the latter feels more correct to me.

@fxcoudert:

     I've decided to hold off on submitting the changes I mentioned in my last post as PRs for now since they didn't solve the issue. Meanwhile, you can, for reference, see them here and here, respectively.

@fxcoudert:

     I don't know if this will help anything, but I'm placing it here just in case it might lead anywhere productive. Anyway, I thought I'd poke at a couple of things and post the results of doing them here for posterity. First, I ran another test build of vim inside Homebrew without any of my changes applied, expecting it to fail, just to get a better look at the resulting error message from vim's 'configure' logs, namely:

โ‹ฎ
configure:8755: checking if X11 header files can be found
configure:8771: clang -c -g -O2    -DMACOS_X -DMACOS_X_DARWIN conftest.c >&5
In file included from conftest.c:36:
/opt/X11/include/X11/Intrinsic.h:1172:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1316:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1383:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1390:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1414:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1466:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1489:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1563:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1584:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1595:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1606:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1621:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1636:3: error: expected function body after function declarator
) _X_SENTINEL(0);
  ^
/opt/X11/include/X11/Intrinsic.h:1855:3: error: expected function body after function declarator
) _X_ATTRIBUTE_PRINTF(2,3);
  ^
14 errors generated.
configure:8771: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define UNIX 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_UNSIGNED_LONG_LONG_INT 1
| #define HAVE_LONG_LONG_INT 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_AVAILABILITYMACROS_H 1
| #define FEAT_HUGE 1
| #define USE_XSMP_INTERACT 1
| #define FEAT_PERL 1
| #define FEAT_PYTHON3 1
| #define FEAT_TCL 1
| #define FEAT_RUBY 1
| #define FEAT_CSCOPE 1
| #define FEAT_NETBEANS_INTG 1
| #define FEAT_JOB_CHANNEL 1
| #define FEAT_TERMINAL 1
| #define FEAT_MBYTE 1
| /* end confdefs.h.  */
| #include <X11/Xlib.h>
| #include <X11/Intrinsic.h>
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:8775: result: no
configure:9012: error: could not configure X
โ‹ฎ

Note that I've already confirmed that this same error also occurs even with my changes applied, so there must be something more involved here than just the PATH.
     Second, I collected information about what files are used by both an in-Homebrew build attempt and an out-of-Homebrew one as follows:

  1. In another Terminal tab, I copied the '/usr/bin/opensnoop DTrace script somewhere with a new name of 'opensnoop-with-subprocess-following' and then, in its line reading:

    โ‹ฎ
           (OPT_pid == 1 && PID == pid) ? self->ok = 1 : 1;
    โ‹ฎ
    

    replaced 'PID == pid' with '(PID == pid || progenyof(PID)).'

  2. I then ran:

    bash -l -c 'echo $$; kill -SIGSTOP $$; HOMEBREW_BUILD_FROM_SOURCE=1 exec brew upgrade -vd --build-from-source vim'
    

    in a previous Terminal tab. (Running without setting 'HOMEBREW_BUILD_FROM_SOURCE' will undoubtedly produce near-identical results, but, as usual, I left its definition there to be consistent with how I typically run Homebrew on my machine even though, in this case, it doesn't really change things since all dependencies are already available.)

  3. Next, I saved the PID resulting from the previous step to the clipboard, then ran:

    sudo ./opensnoop-with-subprocess-following -p "$PID_SAVED_TO_CLIPBOARD"
    

    back in the tab in whose working directory I'd stashed that modified Dtrace script, teeing the resulting output into a file for later perusal.

  4. Switching back to the Terminal tab I had in use for running the commands intended to be debugged, I then ran 'fg %1.'

  5. Once this had completed, I switched back to the tab hosting the 'opensnoop-with-subprocess-following' job and killed it with Control-C, as it would understandably produce no more output.

  6. I then repeated steps 2โ€“5 above, but:

    • replacing 'HOMEBREW_BUILD_FROM_SOURCE=1 exec brew upgrade -vd --build-from-source vim' with:

      ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.1.0500/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --enable-terminal --with-compiledby=Homebrew --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-python3interp --enable-gui=no --with-x --enable-luainterp --with-lua-prefix=/usr/local/opt/luajit
      

    (as this is, verbatim, the 'configure' command that brew failed to run) from within vim's source as dumped in a temporary directory by 'brew unpack vim' and

    • using a different file for the DTrace script's output.

Searching through the in-Homebrew build attempt's resulting file access logs for mentions of X11 yields:

  501   7190 git            4 .git/refs/heads/fix-X11-PATH-ordering 
  501   7190 git            4 .git/refs/remotes/RandomDSdevel/fix-X11-PATH-ordering 
  501   7190 git            3 .git/refs/heads/fix-X11-PATH-ordering 
  501   7190 git            3 .git/refs/heads/fix-X11-PATH-ordering 
  501   7944 clang         -1 /opt/X11/include/gethostuuid_private.h 
  501   7944 clang         -1 /opt/X11/include/freetype2/gethostuuid_private.h 
  501   7955 clang         -1 /opt/X11/include/gethostuuid_private.h 
  501   7955 clang         -1 /opt/X11/include/freetype2/gethostuuid_private.h 
  501   7955 clang         -1 /opt/X11/include/simulator_host.h 
  501   7955 clang         -1 /opt/X11/include/freetype2/simulator_host.h 
  501   7961 clang         -1 /opt/X11/include/gethostuuid_private.h 
  501   7961 clang         -1 /opt/X11/include/freetype2/gethostuuid_private.h 
  501   7961 clang         -1 /opt/X11/include/simulator_host.h 
  501   7961 clang         -1 /opt/X11/include/freetype2/simulator_host.h 
  501   7967 clang         -1 /opt/X11/include/gethostuuid_private.h 
  501   7967 clang         -1 /opt/X11/include/freetype2/gethostuuid_private.h 
  501   8001 clang         -1 /opt/X11/include/gethostuuid_private.h 
  501   8001 clang         -1 /opt/X11/include/freetype2/gethostuuid_private.h 
  501   8192 clang          3 /usr/local/opt/tcl-tk/include/X11/Xlib.h 
  501   8192 clang          3 /usr/local/opt/tcl-tk/include/X11/X.h 
  501   8192 clang          3 /usr/local/opt/tcl-tk/include/X11/Xfuncproto.h 
  501   8192 clang          3 /usr/local/opt/tcl-tk/include/X11/Xutil.h 
  501   8198 clang          3 /usr/local/opt/tcl-tk/include/X11/Xlib.h 
  501   8198 clang          3 /usr/local/opt/tcl-tk/include/X11/X.h 
  501   8198 clang          3 /usr/local/opt/tcl-tk/include/X11/Xfuncproto.h 
  501   8198 clang          3 /usr/local/opt/tcl-tk/include/X11/Xutil.h 
  501   8199 ld             3 /opt/X11/lib/libX11.dylib 
  501   8211 ld             3 /opt/X11/lib/libX11.dylib 
  501   8256 ld             3 /opt/X11/lib/libICE.dylib 
  501   8273 clang          3 /usr/local/opt/tcl-tk/include/X11/Xlib.h 
  501   8273 clang          3 /usr/local/opt/tcl-tk/include/X11/X.h 
  501   8273 clang          3 /usr/local/opt/tcl-tk/include/X11/Xfuncproto.h 
  501   8273 clang          3 /usr/local/opt/tcl-tk/include/X11/Xutil.h 
  501   8273 clang          3 /opt/X11/include/X11/Intrinsic.h 
  501   8273 clang          3 /opt/X11/include/X11/Xresource.h 
  501   8273 clang          3 /opt/X11/include/X11/Xosdefs.h 
  501   8273 clang          3 /opt/X11/include/X11/Core.h 
  501   8273 clang          3 /opt/X11/include/X11/Composite.h 
  501   8273 clang          3 /opt/X11/include/X11/Constraint.h 
  501   8273 clang          3 /opt/X11/include/X11/Object.h 
  501   8273 clang          3 /opt/X11/include/X11/RectObj.h 
  501   8332 git            3 .git/refs/heads/fix-X11-PATH-ordering 
  501   8351 git            3 .git/refs/heads/fix-X11-PATH-ordering 
  501   8483 git            3 .git/refs/heads/fix-X11-PATH-ordering 
  501   8498 git            3 .git/refs/heads/fix-X11-PATH-ordering 

whereas doing the same for the out-of-Homebrew build attempt produces:

  501  10055 ld             3 /usr/X11/lib         
  501  10068 ld             3 /usr/X11/lib/libX11.dylib 
  501  10113 ld             3 /usr/X11/lib/libICE.dylib 
  501  10130 clang          3 /usr/X11/include/X11/Xlib.h 
  501  10130 clang          3 /usr/X11/include/X11/X.h 
  501  10130 clang          3 /usr/X11/include/X11/Xfuncproto.h 
  501  10130 clang          3 /usr/X11/include/X11/Xosdefs.h 
  501  10130 clang          3 /usr/X11/include/X11/Intrinsic.h 
  501  10130 clang          3 /usr/X11/include/X11/Xutil.h 
  501  10130 clang          3 /usr/X11/include/X11/keysym.h 
  501  10130 clang          3 /usr/X11/include/X11/keysymdef.h 
  501  10130 clang          3 /usr/X11/include/X11/Xresource.h 
  501  10130 clang          3 /usr/X11/include/X11/Core.h 
  501  10130 clang          3 /usr/X11/include/X11/Composite.h 
  501  10130 clang          3 /usr/X11/include/X11/Constraint.h 
  501  10130 clang          3 /usr/X11/include/X11/Object.h 
  501  10130 clang          3 /usr/X11/include/X11/RectObj.h 
  501  10137 ld             3 /usr/X11/lib/libXdmcp.dylib 
  501  10137 ld             4 /usr/X11/lib/libXt.dylib 
  501  10137 ld             3 /usr/X11/lib/libSM.dylib 
  501  10137 ld             4 /usr/X11/lib/libICE.dylib 
  501  10137 ld             4 /usr/X11/lib/libX11.dylib 
  501  10147 ld             3 /usr/X11/lib/libICE.dylib 
  501  10147 ld             3 /usr/X11/lib/libXdmcp.dylib 
  501  10156 ld             3 /usr/X11/lib/libXpm.dylib 
  501  10156 ld             3 /usr/X11/lib/libXt.dylib 
  501  10156 ld             3 /usr/X11/lib/libSM.dylib 
  501  10156 ld             3 /usr/X11/lib/libICE.dylib 
  501  10156 ld             3 /usr/X11/lib/libX11.dylib 
  501  10156 ld             3 /usr/X11/lib/libXdmcp.dylib 
  501  10164 clang          3 /usr/X11/include/X11/Xlib.h 
  501  10164 clang          3 /usr/X11/include/X11/X.h 
  501  10164 clang          3 /usr/X11/include/X11/Xfuncproto.h 
  501  10164 clang          3 /usr/X11/include/X11/Xosdefs.h 
  501  10181 clang         -1 /usr/X11/include/gethostuuid_private.h 
  501  10181 clang          3 /usr/X11/include/X11/SM/SMlib.h 
  501  10181 clang          3 /usr/X11/include/X11/SM/SM.h 
  501  10181 clang          3 /usr/X11/include/X11/ICE/ICElib.h 
  501  10181 clang          3 /usr/X11/include/X11/ICE/ICE.h 
  501  10181 clang          3 /usr/X11/include/X11/Xfuncproto.h 
  501  10186 clang          3 /usr/X11/include/X11/SM/SMlib.h 
  501  10186 clang          3 /usr/X11/include/X11/SM/SM.h 
  501  10186 clang          3 /usr/X11/include/X11/ICE/ICElib.h 
  501  10186 clang          3 /usr/X11/include/X11/ICE/ICE.h 
  501  10186 clang          3 /usr/X11/include/X11/Xfuncproto.h 
  501  12669 clang          3 /usr/X11/include/X11/Xlocale.h 
  501  12669 clang          3 /usr/X11/include/X11/Xfuncproto.h 
  501  12669 clang          3 /usr/X11/include/X11/Xosdefs.h 
  501  12676 ld             3 /usr/X11/lib/libSM.dylib 
  501  12676 ld             3 /usr/X11/lib/libICE.dylib 
  501  12676 ld             3 /usr/X11/lib/libXpm.dylib 
  501  12676 ld             3 /usr/X11/lib/libXt.dylib 
  501  12676 ld             3 /usr/X11/lib/libX11.dylib 
  501  12676 ld             3 /usr/X11/lib/libXdmcp.dylib 
  501  12686 ld             3 /usr/X11/lib/libSM.dylib 
  501  12686 ld             3 /usr/X11/lib/libICE.dylib 
  501  12686 ld             3 /usr/X11/lib/libXpm.dylib 
  501  12686 ld             3 /usr/X11/lib/libXt.dylib 
  501  12686 ld             4 /usr/X11/lib/libX11.dylib 
  501  12686 ld             3 /usr/X11/lib/libXdmcp.dylib 

This shows that Homebrew has its header search paths confused and is using its Tcl-Tk copies of 'X.h,' 'Xlib.h,' 'Xfuncproto.h,' and 'Xutil.h instead of Quartz's. (I performed the in-Homebrew build attempt with my changes applied, but, since they don't help things here, I can likely omit them. Then again, the 'PATH' looks a bit odd without them, so maybe I should submit them as PRs anywayโ€ฆ?)

P. S.: Apologies for the long post, but there was a lot to unpack here.

@fxcoudert:

     Some additional observations I've made are:

  • When vim's 'configure' script is run under Homebrew, its clang invocations include '-L/usr/local/lib' twice, once before specification of what I believe are all of vim's keg-only dependencies' header locations and once after. This strikes me as likely being unrelated, but I don't think it's right, either, though I'll leave it be for now.
  • Inserting some puts-debugging statements into superenv revealed the following values for the following variables prior to Homebrew's invocation of vim's 'configure' script:

    ENV["ACLOCAL_PATH"]:  "/usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal"
    ENV["HOMEBREW_ISYSTEM_PATHS"]:  "/usr/local/include:/usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers"
    ENV["HOMEBREW_INCLUDE_PATHS"]:  "/usr/local/opt/openssl/include:/usr/local/opt/readline/include:/usr/local/opt/ruby/include:/usr/local/opt/sqlite/include:/usr/local/opt/tcl-tk/include:/usr/local/opt/gettext/include"
    ENV["HOMEBREW_LIBRARY_PATHS"]:  "/usr/local/opt/openssl/lib:/usr/local/opt/readline/lib:/usr/local/opt/ruby/lib:/usr/local/opt/sqlite/lib:/usr/local/opt/tcl-tk/lib:/usr/local/opt/gettext/lib:/usr/local/lib:/opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries"
    

    My impression is that these variable' contents should mostly be sorted in reverse alphabetical order unless some build is known to depend on the current, dependency-treeโ€“derived order, thus placing X11 at the front of each of them. Those references to my system OpenGL framework should stay where they are, though, I think (though I couldn't yet tell you why they're included and/or what pulls them in.)

The superenv changes needed to rework the latter don't look like they'll be as simple as the ones I made earlier for '$PATH,' but I'll take a stab at them anyway. Oh, wait, never mind: 'Array' has a '#prepend' method (aliasing '#unshift,' but that's beside the point;) _that_ makes things easierโ€ฆ

     While putting another test change to try and fix this together, I went ahead and split part of it that I felt was meritable on its own out into another branch and submitted it as Homebrew/brew#5332.

@fxcoudert:

     No test changes I've tried making to either brew's internals or the 'vim' formula have given me any successful results here. If I can't think of anything else to try, then it _may_ just be time to finally admit defeat here and modify the latter's '--with-client-server' option to error out and force the user to choose between having that enabled and having Python support built, much as that displeases me as unsatisfactoryโ€ฆ

@fxcoudert:

     I'm deleting all of the tentative branches I've linked to up until now, so the links in question will no longer work. I'm going to put a PR implementing my previous suggestion together, and it will supersede all of those, at least for now. (_Sighโ€ฆ_)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bantl23 picture bantl23  ยท  3Comments

ghost picture ghost  ยท  3Comments

Thirudhas picture Thirudhas  ยท  4Comments

ghostbar picture ghostbar  ยท  4Comments

xeoneux picture xeoneux  ยท  3Comments