Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ncurses dependency check failed for vim 7.4.430 on OSX 10.10 #32066

Closed
chakrit opened this issue Sep 3, 2014 · 20 comments
Closed

ncurses dependency check failed for vim 7.4.430 on OSX 10.10 #32066

chakrit opened this issue Sep 3, 2014 · 20 comments
Labels

Comments

@chakrit
Copy link

chakrit commented Sep 3, 2014

Here is the output of brew update && brew install vim on OSX 10.10 (b7)

$ brew install vim
==> Downloading http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.430.orig.tar.gz
Already downloaded: /Library/Caches/Homebrew/vim-7.4.430.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/7.4.430/share/man --enable-multibyte --with-t
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... configure: error: FAILED

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
Vim won't build with Python support on OS X 10.9.4 (https://github.com/Homebrew/homebrew/issues/31893)

$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: f994c6db584c48cdfe105123a17b1033ae67ca91
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.10-x86_64
Xcode: 6.0 => /Applications/Xcode6-Beta7.app/Contents/Developer
CLT: 6.0.0.0.1.1409104523
Clang: 6.0 build 600
X11: N/A
System Ruby: 2.0.0-481
Perl: /usr/bin/perl
Python: /Users/chakrit/.python/2.7/bin/python => /Users/chakrit/.python/2.7/bin/python2.7
Ruby: /Users/chakrit/.rbenv/shims/ruby
$ brew doctor
Your system is ready to brew.
$ brew install -v vim 2>&1
==> Downloading http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.430.orig.tar.gz
Already downloaded: /Library/Caches/Homebrew/vim-7.4.430.tar.gz
==> Verifying vim-7.4.430.tar.gz checksum
tar xf /Library/Caches/Homebrew/vim-7.4.430.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/7.4.430/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-features=huge --with-compiledby=Homebrew     --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-gui=no --without-x
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/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 /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/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 --enable-fail-if-missing argument... no
checking for recent clang version... 51
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin14)
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/Xcode6-Beta7.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... 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/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... no: PERL DISABLED
checking --enable-pythoninterp argument... yes
checking for python2... /Users/chakrit/.python/2.7/bin/python2
checking Python version... 2.7
checking Python is 2.3 or better... yep
checking Python's install prefix... /Users/chakrit/.python/2.7/bin/..
checking Python's execution prefix... /Users/chakrit/.python/2.7/bin/..
checking Python's configuration directory... /usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
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... no
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... /Users/chakrit/.rbenv/shims/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0
checking --enable-cscope argument... yes
checking --enable-workshop argument... no
checking --disable-netbeans argument... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking whether compiling netbeans integration is possible... no
checking --enable-sniff 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 CYGWIN 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... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
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 /usr/bin/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 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... configure: error: FAILED
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: f994c6db584c48cdfe105123a17b1033ae67ca91
CPU: 8-core 64-bit sandybridge
OS X: 10.10-x86_64
Xcode: 6.0 => /Applications/Xcode6-Beta7.app/Contents/Developer
CLT: 6.0.0.0.1.1409104523
Error: vim 7.4.430 did not build
X11: N/A
==> ENV
CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.10
CXXFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.10
CPPFLAGS: -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
MAKEFLAGS: -j8
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.10
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10:/usr/lib/pkgconfig
PATH: /Users/chakrit/.python/2.7/bin:/Users/chakrit/.python/2.7/bin:/Applications/Android Studio.app/sdk/build-tools/19.0.1:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools:/Users/chakrit/Documents/go/bin:./node_modules/.bin:/Users/chakrit/.rbenv/bin:/Users/chakrit/.rbenv/shims:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Android Studio.app/sdk/build-tools/19.0.1:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools:/Users/chakrit/Documents/go/bin:./node_modules/.bin:/Users/chakrit/.rbenv/bin:/Users/chakrit/.rbenv/shims:/usr/local/sbin:/Users/chakrit/.misc:/usr/local/Cellar/go/1.3/libexec/bin:/usr/local/Cellar/go/1.3/bin:/Users/chakrit/Documents/gopath/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Users/chakrit/.misc:/usr/local/Cellar/go/1.3/libexec/bin:/usr/local/Cellar/go/1.3/bin:/Users/chakrit/Documents/gopath/bin:/usr/local/Library/Contributions/cmd
CPATH: /usr/local/include

Logs:
     /Users/chakrit/Library/Logs/Homebrew/vim/01.configure

These open issues may also help:
Vim won't build with Python support on OS X 10.9.4 (https://github.com/Homebrew/homebrew/issues/31893)
@chakrit chakrit changed the title Missing ncurses dependency for vim 7.4.430 on OSX 10.10 ncurses dependency check failed for vim 7.4.430 on OSX 10.10 Sep 3, 2014
@mistydemeo
Copy link
Member

Could you brew install vim -d, go to a shell when the build fails, and upload the src/auto/config.log contained in there? Thanks!

@chakrit
Copy link
Author

chakrit commented Sep 3, 2014

@0x434d53
Copy link

0x434d53 commented Sep 3, 2014

Workaround: Works if you don't use 10.10s system ruby (for me works with the current 2.1.2)

@mistydemeo
Copy link
Member

Looks like curses is a red herring; the real error is:

configure:10634: /usr/bin/clang -o conftest -Os -w -pipe -march=native -mmacosx-version-min=10.10 -F/usr/local/Frameworks -DMACOS_X_UNIX -L. -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.Internal.sdk/System/Library/PrivateFrameworks -framework CrashReporterSupport -L/usr/local/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names conftest.c -lncurses >&5
ld: framework not found CrashReporterSupport
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:10634: $? = 1

@adamv adamv added the 10.10 label Sep 3, 2014
@0x434d53
Copy link

0x434d53 commented Sep 3, 2014

@mistydemeo Oh, i get the same error from Mercurial-3.1.1

Still strange that i can build Vim with an RVM-installed Ruby.

@jonbuffington
Copy link
Contributor

This may be related to a known issue in the b7 seed notes:

Tools Known Issues

  • Some python modules may fail to install.

@mistydemeo
Copy link
Member

What is the output of:

python-config --includes
python-config --libs
python-config --cflags
python-config --ldflags

@felixjung
Copy link

@0x434d53 Your rvm ruby workaround does not work for me. I'm using rvm's 2.1.2 ruby and get the same build error as @chakrit.

UPDATE:
Sorry I was wrong. MacVim does not build, but vim does build just fine. The MacVim formula forces the use of system ruby.
UPDATE:
When changing the macvim formula to use rvm ruby, macvim builds fine, too.

@mistydemeo
Copy link
Member

This is an issue with the Python shipped by Apple in 10.10; see #32083 for details. You can work around this by installing another Python, such as Homebrew's. This will likely be fixed in a future 10.10 preview build.

Thanks for the bug report!

@darylrobbins
Copy link

I'm seeing the exact same issue on DP7. I tried installing python and python3 from Homebrew, but I still see the same issue. Any other magic required to workaround? Thanks! :)

@felixjung
Copy link

@darylrobbins: Also use a different Ruby version. If you use a ruby through rvm, it should work.

@darylrobbins
Copy link

@feju I'm already using Ruby 2.1.2 through RVM, so unfortunately that doesn't seem to be it.

@felixjung
Copy link

Ouh, is python linked?

brew link python?

@darylrobbins
Copy link

Yep, it appears to be linked to /usr/local/Cellar/python/2.7.8_1. The formula worked perfectly when I ran it under Beta 2 but after upgrading to DP7, this issue occurred when I wanted to recompile with LUA support (tried recompiling without as well and still the same error). Thanks for your help!

@felixjung
Copy link

Weird, sorry to here it just does not work :(

@darylrobbins
Copy link

To rule out any environmental weirdness, I provisioned a fresh VM with 10.10 DP7. I am still seeing the exact same issue in this pristine environment. Here are the exact steps I followed asking initial boot:

  1. Install XCode 6 Beta 7. The command line tools seem to be installed by default.
  2. brew install python (and confirmed proper linking)
  3. Install RVM and Ruby 2.1.2
  4. brew install macvim

And then here is the exact failing output:

==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 -
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... configure: error: FAILED

@mistydemeo
Copy link
Member

Since Macvim hardcodes the system Python, you can't work around this by using the Homebrew Python.

Since this is an issue Apple's acknowledged, I'd expect it to be fixed in the next DP. Meanwhile, I'd recommend a) either using the official MacVim binaries, b) disabling Python support, c) downgrading to an earlier DP.

@darylrobbins
Copy link

Thanks, Misty! I've become so used to using homebrew for everything that I forgot about the official binaries. I guess I'll use them for now and then switch back to homebrew for the next DP -- although given the release is on Tuesday, I'm guessing the RTM release may be next.

@chakrit
Copy link
Author

chakrit commented Sep 8, 2014

b) disabling Python support

Just tried again today with --without-python option and still get the exact same error with something related to ncurse:

$ brew install --without-python vim
==> Downloading http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.430.orig.ta
Already downloaded: /Library/Caches/Homebrew/vim-7.4.430.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/7.4.430/share
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... configure: error: FAILED

@jacknagel
Copy link
Contributor

Probably --without-python doesn't turn off enough stuff in the configure script. Just have to wait for the next DP.

@Homebrew Homebrew locked and limited conversation to collaborators Sep 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants