Skip to content
This repository has been archived by the owner. It is now read-only.

incorrect clang path on Yosemite #29830

Closed
ghazel opened this issue Jun 3, 2014 · 19 comments

Comments

@ghazel
Copy link

commented Jun 3, 2014

The changes over the past few hours have homebrew making it far enough to hit:

$ brew doctor
Error: No such file or directory - /Library/Developer/CommandLineTools/usr/bin/clang

I do have the command line tools installed, but it seems that is not the right path:

$ xcrun -f clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
@jacknagel

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2014

Can you try to figure out which doctor check is trigger this? Individual checks can be run by passing the method name:

$ brew doctor check_xcode_license_approved

there isn't any place where we exec clang using that path on purpose, though, so I'm not sure why it would happen.

@jacknagel

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2014

What is your brew --config

@ghazel

This comment has been minimized.

Copy link
Author

commented Jun 3, 2014

$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: (none)
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.10-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
Clang: 5.1 build 503
X11: 2.7.4 => /opt/X11
System Ruby: 2.0.0-451
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
@ghazel

This comment has been minimized.

Copy link
Author

commented Jun 3, 2014

Found the doctor check:

$ brew doctor check_clt_up_to_date
Error: No such file or directory - /Library/Developer/CommandLineTools/usr/bin/clang
@jacknagel

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2014

afaik the 5.1 versions of the CLT and/or Xcode aren't compatible with 10.10 and you need to upgrade them.

@ghazel

This comment has been minimized.

Copy link
Author

commented Jun 3, 2014

Odd. When I stared Xcode 5.1 the first time it asked me to upgrade the CLT, so I figured that took care of it. I also tried xcode-select --install.

However, just now I manually installed the CLT for 10.10. (from here https://developer.apple.com/downloads/index.action ) and now brew doctor works fine.

@ghazel ghazel closed this Jun 3, 2014

@nikhilchandran

This comment has been minimized.

Copy link

commented Jun 5, 2014

@ghazel Thanks its works for me too..

@liormb

This comment has been minimized.

Copy link

commented Jun 5, 2014

Works here. Thanks.

@FranciscoGutierrez

This comment has been minimized.

Copy link

commented Jun 6, 2014

Works here, thanks @ghazel.

Location of CLT 10.10: https://developer.apple.com/downloads/index.action

@itnick

This comment has been minimized.

Copy link

commented Jun 6, 2014

Work here too. Thanks a lot @ghazel

@zieka

This comment has been minimized.

Copy link

commented Jun 8, 2014

Works here too. Thanks @jacknagel and @ghazel

@xanderdunn

This comment has been minimized.

Copy link

commented Jun 12, 2014

+1 to @skandragon's suggestion.

@MikeMcQuaid

This comment has been minimized.

Copy link
Member

commented Jun 12, 2014

Homebrew still needs the CLT because in 10.9 and Xcode 5.1 it was still shipping bad headers that caused errors with packages. Hopefully this is fixed in 10.10 but it will be a while before we can push out a fix.

@xanderdunn

This comment has been minimized.

Copy link

commented Jun 12, 2014

@MikeMcQuaid Thanks. Does anyone have any Radar numbers for this?

@cesarferreira

This comment has been minimized.

Copy link

commented Jun 18, 2014

Many thanks @ghazel it works like a charm

@happyholidave

This comment has been minimized.

Copy link

commented Jun 19, 2014

ghazel's link didn't work for me with an iOS developer subscription, but FranciscoGutierrez's link worked for me. Thanks for the fix info!

@jwg2s

This comment has been minimized.

Copy link

commented Jun 21, 2014

@ghazel +1, fix works for me as well.

@sensimevanidus

This comment has been minimized.

Copy link

commented Jun 23, 2014

Thank you @ghazel . Everything's back to normal after installing CLT for 10.10 via https://developer.apple.com/downloads/index.action

@Homebrew Homebrew locked and limited conversation to collaborators Jun 25, 2014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
You can’t perform that action at this time.