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

Command Line Tools for Xcode - some failed packages on clean 10.7 install #10309

Closed
sud0n1m opened this issue Feb 18, 2012 · 16 comments
Closed

Comments

@sud0n1m
Copy link

sud0n1m commented Feb 18, 2012

I started this morning with a clean install of OS X 10.7.3. I installed Command Line Tools for Xcode after reading about it here: http://kennethreitz.com/xcode-gcc-and-homebrew.html

A few packages I'm trying to install are:

mysql: Success!
redis: Fail - output here: https://gist.github.com/1860410 (Doesn't build with Clang)
mongo: Success
macvim: Fail - output here https://gist.github.com/1860416 (Make sure xcode-select is pointing at the proper path)
zsh: Success

It seems like Macvim may need Xcode, but there doesn't seem to be an obvious reason for redis to be failing. I might try to install full Xcode, but wanted to report the issue.

@jacknagel
Copy link
Contributor

Redis can be compiled with --use-llvm. There is an fix in upstream hiredis for the clang issue, but it hasn't been ported to redis yet.

I'm not surprise macvim fails, but that should really be taken to MacVim itself.

@jacknagel
Copy link
Contributor

Also, please post build output in a gist rather than inline, it makes the thread impossible to navigate.

@Sharpie
Copy link
Contributor

Sharpie commented Feb 18, 2012

Perhaps we should apply the following as a patch to Redis until a new release comes out:

https://github.com/antirez/hiredis/compare/5def8643...2da784ce.patch

@Sharpie
Copy link
Contributor

Sharpie commented Feb 18, 2012

The vim error looks like some bad Xcode paths:

Error: Can't run /usr/bin/usr/bin/xcodebuild (no such file).

Perhaps running xcode-select can clear this up?

@jacknagel
Copy link
Contributor

We could also force ENV.llvm until it's fixed, if we don't want to apply that big of a patch.

@Sharpie
Copy link
Contributor

Sharpie commented Feb 18, 2012

Doesn't look too bad---the first patch adds some unit tests for the problem and the next to patches fix the way vargs are handled.

@jacknagel
Copy link
Contributor

Slightly off topic, but we should consider adding -Qunused-arguments as a standard flag for clang to silence all these "clang: warning: argument unused during compilation" warnings.

@sud0n1m
Copy link
Author

sud0n1m commented Feb 18, 2012

Sorry for posting output inline. Refactored it to use gists.

brew install redis --use-llvm worked like a charm

I installed Xcode... I had originally followed instructions in #10245 to run sudo xcode-select -switch /usr/bin and that caused the /usr/bin/usr/bin/xcodebuild issue. After installing Xcode, I ran sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer to fix that and Macvim installed fine.

@Sharpie
Copy link
Contributor

Sharpie commented Feb 18, 2012

I had originally followed instructions in #10245 to run sudo xcode-select -switch /usr/bin and that caused the /usr/bin/usr/bin/xcodebuild issue.

Ahh. I think the proper incantation for users who only install the command line tools is:

xcode-select -switch /

@2bits
Copy link
Contributor

2bits commented Feb 19, 2012

sudo xcode-select -switch /
brew --env

hangs indefinitely for me because xcodebuild -version hangs. Nobody who's done a clean install can tell me if it works for them.

mxcl added a commit that referenced this issue Feb 21, 2012
@jacknagel
Copy link
Contributor

Closing since redis is fixed and there are a few other XCode 4.3/CLT threads with similar reports.

@vidgizmo
Copy link

vidgizmo commented Mar 2, 2012

My problem may be different, but doing the following resolved the issue of building macvim for me:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/

My Xcode came from the App Store, and this is where the install goes now.

@2bits
Copy link
Contributor

2bits commented Mar 3, 2012

I think the preferred path is: /Applications/Xcode.app
I'm not sure about the trailing slash you used. That is not generally ok.

@vidgizmo
Copy link

vidgizmo commented Mar 3, 2012

As I understand it this is a replacement for what used to be /Developer.

In any case, macvim and all other packages tried so far seem to be working now.

@2bits
Copy link
Contributor

2bits commented Mar 3, 2012

Right on. We've heard from a lot of people that both those paths work. I don't have the full XCode-4.3, though, to look it up. Can you tell me what it says in man xcodebuild about the path (or maybe in xcode-select)? Thanks.

@jearles
Copy link
Contributor

jearles commented Mar 3, 2012

From my Xcode 4.3 install: man xcode-select

-switch xcode_path
   Sets the path to the current Xcode, e.g. "/Xcode4.2". This command must be run
   with superuser permissions, and will affect all users on the system. To set the path
   without superuser permissions or only for the current shell session, use the
   DEVELOPER_DIR environment variable instead.

    As a convenience, for Xcode 4.3 and later, you can supply just the path to the Xcode
    application, e.g. "/Applications/Xcode.app", and xcode-select will determine the proper
    path to the Developer directory it contains.

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
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

6 participants