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

incorrect clang path on Yosemite #29830

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

incorrect clang path on Yosemite #29830

ghazel opened this issue Jun 3, 2014 · 19 comments

Comments

@ghazel
Copy link

ghazel 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
Copy link
Contributor

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
Copy link
Contributor

What is your brew --config

@ghazel
Copy link
Author

ghazel 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
Copy link
Author

ghazel 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
Copy link
Contributor

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

@ghazel
Copy link
Author

ghazel 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 as completed Jun 3, 2014
@nikhilchandran
Copy link

@ghazel Thanks its works for me too..

@liormb
Copy link

liormb commented Jun 5, 2014

Works here. Thanks.

@FranciscoGutierrez
Copy link

Works here, thanks @ghazel.

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

@itnick
Copy link

itnick commented Jun 6, 2014

Work here too. Thanks a lot @ghazel

@zieka
Copy link

zieka commented Jun 8, 2014

Works here too. Thanks @jacknagel and @ghazel

@xanderdunn
Copy link

+1 to @skandragon's suggestion.

@MikeMcQuaid
Copy link
Member

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
Copy link

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

@cesarferreira
Copy link

Many thanks @ghazel it works like a charm

@happyholidave
Copy link

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
Copy link

jwg2s commented Jun 21, 2014

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

@sensimevanidus
Copy link

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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests