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

Install Fails due to CMake Error (SOLVED: align xcode with CLT) #180

Closed
jamessral opened this issue Sep 23, 2016 · 15 comments
Closed

Install Fails due to CMake Error (SOLVED: align xcode with CLT) #180

jamessral opened this issue Sep 23, 2016 · 15 comments

Comments

@jamessral
Copy link

Last 15 lines from /Users/Lauren/Library/Logs/Homebrew/neovim/01.cmake:

  make: *** [cmTC_41792/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-20160923-35609-nbtcz9/deps-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/neovim-20160923-35609-nbtcz9/deps-build/CMakeFiles/CMakeError.log".

Also, these error logs don't actually appear in my tmp file. I can't find them

@jszakmeister
Copy link
Contributor

Can you run brew gist-logs neovim and post the url here? This really doesn't give us anything to go on. My guess is that your CMake is busted, not Neovim.

@jamessral
Copy link
Author

https://gist.github.com/71c511c77133b230eabc6d922fb37c70
Sorry, I've never posted an issue before and I don't know homebrew as well as apt

@jszakmeister
Copy link
Contributor

This looks suspicious:

macOS: 10.11.6-x86_64
Xcode: 8.0 => /Applications/Xcode-beta.app/Contents/Developer
CLT: 7.3.1.0.1.1461711523

You have a beta version of Xcode, and the command-line tools version differs. Also, there's this:

/usr/local/Homebrew/Library/Homebrew/shims/super/clang -isysroot
  /Applications/Xcode-beta.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_41792.dir/testCCompiler.c.o -o cmTC_41792

  ld: unexpected token: !tapi-tbd-v2 file
  '/Applications/Xcode-beta.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)

Which screams that something is being produced that the linker doesn't understand.

You should try following our troubleshooting tips in the README. But I think it's going to boil down to getting a good Xcode and command line tools installed.

@jamessral
Copy link
Author

I will try downloading Xcode 8 (non-beta) and see if that helps. Thanks!

@jamessral
Copy link
Author

It worked! Thanks!

@jszakmeister
Copy link
Contributor

Great!

@justinmk justinmk changed the title Install Fails due to CMake Error Install Fails due to CMake Error (SOLVED: align xcode with CLT) Sep 23, 2016
@evmorov
Copy link

evmorov commented Oct 29, 2016

I have the last version of XCode but the same problem appears https://gist.github.com/anonymous/c1d9202e8690d1e75d7f1a0a6fb26ea4

@JackCA
Copy link

JackCA commented Nov 1, 2016

I am experiencing this as well with a freshly updated xcode

@evmorov
Copy link

evmorov commented Nov 1, 2016

@jszakmeister can you reopen the issue?

@jszakmeister
Copy link
Contributor

@evmorov No. There's an issue with either you XCode installation or your homebrew installation. It's not a problem with Neovim or it's recipe.

Are you sure that the XCode Command Line Tools are up-to-date? They're different than XCode.

@evmorov
Copy link

evmorov commented Nov 1, 2016

You're right.

This http://stackoverflow.com/a/17980786/1280823 helped me.

I'd been doing this before and it's strange that I should do it again. Maybe updating XCode broke something.

@jszakmeister
Copy link
Contributor

This http://stackoverflow.com/a/17980786/1280823 helped me.

Good find!

Maybe updating XCode broke something.

It certainly wouldn't be the first time. :-) We see a lot of that happening around new XCode updates. I think the real issue is that it's not clear what to expect from an environment with a new install. But I doubt Apple will get around to clarifying that for us developers. :-(

Thanks for reporting back your findings!

@JackCA
Copy link

JackCA commented Nov 1, 2016

sorry @jszakmeister, I had the same issue as @evmorov. Apologies. I've been able to install 0.1.6 now.

I wonder if there's a way to make sure that the minimum cmake version is fulfilled before running the installation but I'm not sure how that implementation would look.

Thanks again!

@jszakmeister
Copy link
Contributor

sorry @jszakmeister, I had the same issue as @evmorov. Apologies. I've been able to install 0.1.6 now.

No need to apologize @JackCA.

I wonder if there's a way to make sure that the minimum cmake version is fulfilled before running the installation but I'm not sure how that implementation would look.

I'm not sure I'm following. This had nothing to do with a bad CMake version, but the XCode command line tools being out-of-date or improperly configured. Besides that, we already enforce a minimum cmake version in the CMake file itself.

Also, I don't feel comfortable adding checks to make sure your Homebrew environment is okay. I feel that responsibility lies elsewhere.

@JackCA
Copy link

JackCA commented Nov 1, 2016

@jszakmeister gotcha, yeah you got the gist of what I was getting at which is whether or not there can be automated detection of an out-of-date or invalid command line tools. Totally understand that it's outside the scope of this library itself 👍

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

4 participants