neovim / homebrew-neovim

Homebrew formula
MIT License
402 stars 72 forks source link

make after third party dependencies : *** [cmTC_09130/fast] Error 2 #184

Closed hkievet closed 8 years ago

hkievet commented 8 years ago

Just got a new machine at work today and was trying to install neovim. I've never seen this error. Any ideas?

 hunter.kievet@adminisatorsmbp  ~  brew install -verbose neovim/neovim/neovim
==> Installing neovim from neovim/neovim
==> Downloading https://github.com/neovim/neovim/archive/v0.1.6.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim-0.1.6.tar.gz
==> Verifying neovim-0.1.6.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim-0.1.6.tar.gz
==> Downloading https://github.com/libuv/libuv/archive/v1.8.0.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Verifying neovim--libuv-1.8.0.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Downloading https://github.com/msgpack/msgpack-c/archive/cpp-1.0.0.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Verifying neovim--msgpack-1.0.0.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Downloading https://raw.githubusercontent.com/neovim/deps/master/opt/LuaJIT-2.0.4.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Verifying neovim--luajit-2.0.4.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b36d5b22aa74866120c998466697.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Verifying neovim--luarocks-998466697.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.2.0.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--unibilium-1.2.0.tar.gz
==> Verifying neovim--unibilium-1.2.0.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--unibilium-1.2.0.tar.gz
==> Downloading http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.18.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Verifying neovim--libtermkey-0.18.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a7b9288c7b0e331c7088.tar.gz
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--libvterm-7088.tar.gz
==> Verifying neovim--libvterm-7088.tar.gz checksum
tar xzf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--libvterm-7088.tar.gz
==> Downloading https://github.com/jemalloc/jemalloc/releases/download/4.0.2/jemalloc-4.0.2.tar.bz2
Already downloaded: /Users/hunter.kievet/Library/Caches/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Verifying neovim--jemalloc-4.0.2.tar.bz2 checksum
tar xjf /Users/hunter.kievet/Library/Caches/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_BUNDLED_GPERF=OFF -DUSE_BUNDLED_LUV=OFF -DUSE_EXISTING_SRC_DIR=ON -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/neovim/0.1.6 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DHAVE_CLOCK_GETTIME:INTERNAL=0
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -- broken
CMake Error at /usr/local/Cellar/cmake/3.6.2/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/local/Homebrew/Library/Homebrew/shims/super/clang" is
  not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /tmp/neovim-20161103-11263-1jnpt1h/neovim-0.1.6/deps-build/CMakeFiles/CMakeTmp

  Run Build Command:"/usr/local/Homebrew/Library/Homebrew/shims/super/gmake"
  "cmTC_09130/fast"

  /Library/Developer/CommandLineTools/usr/bin/make -f
  CMakeFiles/cmTC_09130.dir/build.make CMakeFiles/cmTC_09130.dir/build

  Building C object CMakeFiles/cmTC_09130.dir/testCCompiler.c.o

  /usr/local/Homebrew/Library/Homebrew/shims/super/clang -isysroot
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
  -mmacosx-version-min=10.11 -o CMakeFiles/cmTC_09130.dir/testCCompiler.c.o
  -c
  /tmp/neovim-20161103-11263-1jnpt1h/neovim-0.1.6/deps-build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTC_09130

  /usr/local/Cellar/cmake/3.6.2/bin/cmake -E cmake_link_script
  CMakeFiles/cmTC_09130.dir/link.txt --verbose=1

  /usr/local/Homebrew/Library/Homebrew/shims/super/clang -isysroot
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
  -mmacosx-version-min=10.11 -Wl,-search_paths_first
  -Wl,-headerpad_max_install_names
  CMakeFiles/cmTC_09130.dir/testCCompiler.c.o -o cmTC_09130

  ld: unexpected token: !tapi-tbd-v2 file
  '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd'
  for architecture x86_64

  clang: error: linker command failed with exit code 1 (use -v to see
  invocation)

  make[1]: *** [cmTC_09130] Error 1

  make: *** [cmTC_09130/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)

-- Configuring incomplete, errors occurred!
See also "/tmp/neovim-20161103-11263-1jnpt1h/neovim-0.1.6/deps-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/neovim-20161103-11263-1jnpt1h/neovim-0.1.6/deps-build/CMakeFiles/CMakeError.log".
==> Formula
Tap: neovim/neovim
Path: /usr/local/Homebrew/Library/Taps/neovim/homebrew-neovim/Formula/neovim.rb
==> Configuration
HOMEBREW_VERSION: 1.0.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8a7317aa8ff5f12067eb65e529a13490bc69deda
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 17854edf25d9b6ac85582bc491cd3148cfc0a96a
Core tap last commit: 10 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 7.3 build 703
Git: 2.7.4 => /Library/Developer/CommandLineTools/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
macOS: 10.11.6-x86_64
Xcode: 8.1
CLT: 7.3.1.0.1.1461711523
X11: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.11
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/cmake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/gettext/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: neovim/neovim/neovim 0.1.6 did not build
Logs:
     /Users/hunter.kievet/Library/Logs/Homebrew/neovim/01.cmake
     /Users/hunter.kievet/Library/Logs/Homebrew/neovim/01.cmake.cc

These open issues may also help:
Does neovim from this formula use jemalloc? https://github.com/neovim/homebrew-neovim/issues/178
Can't install via homebrew-neovim if luarocks path is set explicitly https://github.com/neovim/homebrew-neovim/issues/149
justinmk commented 8 years ago

http://stackoverflow.com/q/39608577/152142 looks similar. As usual the solution is "reinstall/uninstall/fiddle with xcode". Reminds me of Windows 95 :(

Xcode: 8.1 CLT: 7.3.1.0.1.1461711523

That doesn't look right, and I'm guessing brew doctor will mention it loudly. Seems you need to upgrade CLT (Xcode command line tools)

jszakmeister commented 8 years ago

Take a look at #180, where an extremely similar problem was just discussed.

hkievet commented 8 years ago

Thanks for the quick response! I dragged my xcode in finder into the trash and tried again and it worked!