Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Strange cmake failure (SOLVED: align xcode with CLT) #190

Closed
bhelx opened this issue Nov 15, 2016 · 3 comments
Closed

Strange cmake failure (SOLVED: align xcode with CLT) #190

bhelx opened this issue Nov 15, 2016 · 3 comments

Comments

@bhelx
Copy link

bhelx commented Nov 15, 2016

I'm seeing this strange failure when we get to building the third party libraries with cmake. I tried installing from head as well. This did happen after upgrading to mac 10.12 so it may be a neovim issue.

~ben ~: brew install neovim --verbose
==> Installing neovim from neovim/neovim
==> Downloading https://github.com/neovim/neovim/archive/v0.1.6.tar.gz
Already downloaded: /Users/ben/Library/Caches/Homebrew/neovim-0.1.6.tar.gz
==> Verifying neovim-0.1.6.tar.gz checksum
tar xzf /Users/ben/Library/Caches/Homebrew/neovim-0.1.6.tar.gz
==> Downloading https://github.com/libuv/libuv/archive/v1.8.0.tar.gz
Already downloaded: /Users/ben/Library/Caches/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Verifying neovim--libuv-1.8.0.tar.gz checksum
tar xzf /Users/ben/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/ben/Library/Caches/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Verifying neovim--msgpack-1.0.0.tar.gz checksum
tar xzf /Users/ben/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/ben/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Verifying neovim--luajit-2.0.4.tar.gz checksum
tar xzf /Users/ben/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b36d5b22aa74866120c998466697.tar.gz
Already downloaded: /Users/ben/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Verifying neovim--luarocks-998466697.tar.gz checksum
tar xzf /Users/ben/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.2.0.tar.gz
Already downloaded: /Users/ben/Library/Caches/Homebrew/neovim--unibilium-1.2.0.tar.gz
==> Verifying neovim--unibilium-1.2.0.tar.gz checksum
tar xzf /Users/ben/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/ben/Library/Caches/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Verifying neovim--libtermkey-0.18.tar.gz checksum
tar xzf /Users/ben/Library/Caches/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a7b9288c7b0e331c7088.tar.gz
Already downloaded: /Users/ben/Library/Caches/Homebrew/neovim--libvterm-7088.tar.gz
==> Verifying neovim--libvterm-7088.tar.gz checksum
tar xzf /Users/ben/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/ben/Library/Caches/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Verifying neovim--jemalloc-4.0.2.tar.bz2 checksum
tar xjf /Users/ben/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.7.0/share/cmake/Modules/CMakeTestCCompiler.cmake:51 (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-20161114-15187-nvqmb4/neovim-0.1.6/deps-build/CMakeFiles/CMakeTmp



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

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

  Building C object CMakeFiles/cmTC_2f712.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_2f712.dir/testCCompiler.c.o
  -c
  /tmp/neovim-20161114-15187-nvqmb4/neovim-0.1.6/deps-build/CMakeFiles/CMakeTmp/testCCompiler.c


  Linking C executable cmTC_2f712

  /usr/local/Cellar/cmake/3.7.0/bin/cmake -E cmake_link_script
  CMakeFiles/cmTC_2f712.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_2f712.dir/testCCompiler.c.o -o cmTC_2f712

  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_2f712] Error 1

  make: *** [cmTC_2f712/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-20161114-15187-nvqmb4/neovim-0.1.6/deps-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/neovim-20161114-15187-nvqmb4/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.1.0
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: b7abd33475b98598b414f9c4ee2e20249855437b
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bb24047015bb49555ebdb41b585e1529e1d29a3d
Core tap last commit: 28 minutes 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.2 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.0_1/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/ben/.rbenv/shims/ruby => /Users/ben/.rbenv/versions/2.0.0-p648/bin/ruby
Java: 1.8.0_60
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/ben/Library/Logs/Homebrew/neovim/00.options.out
     /Users/ben/Library/Logs/Homebrew/neovim/01.cmake
     /Users/ben/Library/Logs/Homebrew/neovim/01.cmake.cc
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/neovim/homebrew-neovim/issues
@justinmk
Copy link
Member

justinmk commented Nov 15, 2016

Xcode: 8.1
CLT: 7.3.1.0.1.1461711523

see #180 (comment) and #184

@justinmk justinmk changed the title Strange cmake failure Strange cmake failure (SOLVED: align xcode with CLT) Nov 15, 2016
@bhelx
Copy link
Author

bhelx commented Nov 15, 2016

Thanks for the quick response

@bhelx
Copy link
Author

bhelx commented Nov 15, 2016

Just to update the thread, I was able to resolve this following this stackoverflow answer:
http://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error/17980786#17980786 found linked in comment: #180 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants