Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.97k stars 11.34k forks source link

libtool failed to build on 10.8.2 : uninitialized constant MacOS::Xcode #15857

Closed andrewhubbs closed 12 years ago

andrewhubbs commented 12 years ago

The error:

O:~ $ brew install libtool
Error: uninitialized constant MacOS::Xcode
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
/usr/local/Library/Formula/libtool.rb:12
/usr/local/Library/Homebrew/formula.rb:459:in `require'
/usr/local/Library/Homebrew/formula.rb:459:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:12:in `install'
/usr/local/bin/brew:83:in `send'
/usr/local/bin/brew:83

Brew config:

O:~ $ brew --config
HOMEBREW_VERSION: 0.8.1
HEAD: 448fbc9afa407de85f14c71ea53ad8f6c66134ab
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit dunno
OS X: 10.8.2
Kernel Architecture: x86_64
Ruby: 1.8.7-358
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.5.2
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 4.1 build 421
MacPorts or Fink? false
X11 installed? true

Xcode is up to date and the CLTs are too.

There is no log files at ~/Library/Logs/Homebrew/

brew doctor gist brew doctor does say Error: Formula libtool will not import. (and a lot of other things). In reference to the brew doctor complaining about my homebrew git repo I have tried reseting the repo and get this.

O:~ $ cd /usr/local && git reset --hard
HEAD is now at 448fbc9 devel: reset mirrors when building devel
ghost commented 12 years ago

Have you brew update ?

andrewhubbs commented 12 years ago

Update fails:

O:local (deploy)$ brew update
error: The following untracked working tree files would be overwritten by checkout:
    Library/Aliases/boost-jam
    Library/Aliases/fastcgi
    Library/Aliases/gperftools
    Library/Aliases/hashdeep
    Library/Aliases/htop
    Library/Aliases/nodejs
    Library/Aliases/ocio
    Library/Aliases/oiio
    Library/Aliases/pgrep
    Library/Aliases/pkill
    Library/Aliases/twolame
    Library/Contributions/cmds/brew-aspell-dictionaries
    Library/Contributions/cmds/brew-beer.rb
    Library/Contributions/cmds/brew-dirty.rb
    Library/Contributions/cmds/brew-graph
    Library/Contributions/cmds/brew-grep
    Library/Contributions/cmds/brew-leaves.rb
    Library/Contributions/cmds/brew-linkapps.rb
    Library/Contributions/cmds/brew-ls-taps.rb
    Library/Contributions/cmds/brew-man
    Library/Contributions/cmds/brew-md5-to-sha1
    Library/Contributions/cmds/brew-mirror-check.rb
    Library/Contributions/cmds/brew-pull.rb
    Library/Contributions/cmds/brew-readall.rb
    Library/Contributions/cmds/brew-server
    Library/Contributions/cmds/brew-services.rb
    Library/Contributions/cmds/brew-switch.rb
    Library/Contributions/cmds/brew-test-bot.rb
    Library/Contributions/cmds/brew-test-bot/brew-test-bot.commit.html.erb
    Library/Contributions/cmds/brew-test-bot/brew-test-bot.css
    Library/Contributions/cmds/brew-test-bot/brew-test-bot.index.html.erb
    Library/Contributions/cmds/brew-tests.rb
    Library/Contributions/cmds/brew-unpack.rb
    Library/Contributions/cmds/brew-which.rb
    Library/Contributions/cmds/git
    Library/Contributions/cmds/svn
    Library/ENV/4.3/apr-1-config
    Library/ENV/4.3/bsdmake
    Library/ENV/4.3/c++
    Library/ENV/4.3/c89
    Library/ENV/4.3/c99
    Library/ENV/4.3/cc
    Library/ENV/4.3/clang
    Library/ENV/4.3/clang++
    Library/ENV/4.3/cpp
    Library/ENV/4.3/g++
    Library/ENV/4.3/gcc
    Library/ENV/4.3/i686-apple-darwin11-llvm-g++-4.2
    Library/ENV/4.3/i686-apple-darwin11-llvm-gcc-4.2
    Library/ENV/4.3/ld
    Library/ENV/4.3/llvm-g++
    Library/ENV/4.3/llvm-g++-4.2
    Library/ENV/4.3/llvm-gcc
    Library/ENV/4.3/llvm-gcc-4.2
    Library/ENV/4.3/make
    Library/ENV/4.3/mig
    Library/ENV/4.3/sed
    Library/ENV/4.3/xcrun
    Library/ENV/libsuperenv.rb
    Library/Formula/abcl.rb
    Library/Formula/abcmidi.rb
    Library/Formula/abyss.rb
    Library/Formula/aiccu.rb
    Library/Formula/akka.rb
    Library/Formula/alac.rb
    Library/Formula/alure.rb
    Library/Formula/ape.rb
    Library/Formula/apollo.rb
    Library/Formula/appledoc.rb
    Library/Formula/arangodb.rb
    Library/Formula/arp-scan.rb
    Library/Formula/atkmm.rb
    Library/Formula/autoconf.rb
    Library/Formula/autoenv.rb
    Library/Formula/autojump.rb
    Library/Formula/automake.rb
    Library/Formula/autopano-sift-c.rb
    Library/Formula/avidemux.rb
    Library/Formula/aws-cloudsearch.rb
    Library/Formula/aws-sns-cli.rb
    Library/Formula/bact.rb
    Library/Formula/bam.rb
    Library/Formula/bamtools.rb
    Library/Formula/basex.rb
    Library/Formula/bind.rb
    Library/Formula/blackbox.rb
    Library/Formula/blazeblogger.rb
    Library/Formula/boost-build.rb
    Library/Formula/bro.rb
    Library/Formula/bsdconv.rb
    Library/Formula/bsdmake.rb
    Library/Formula/bup.rb
    Library/Formula/byacc.rb
    Library/Formula/cadubi.rb
    Library/Formula/camellia.rb
    Library/Formula/casperjs.rb
    Library/Formula/cbmbasic.rb
    Library/Formula/ccextractor.rb
    Library/Formula/cconv.rb
    Library/Formula/cdo.rb
    Library/Formula/cdpr.rb
    Library/Formula/checkstyle.rb
    Library/Formula/cifer.rb
    Library/Formula/clhep.rb
    Library/Formula/cloog.rb
    Library/Formula/cntlm.rb
    Library/Formula/cogl.rb
    Library/Formula/collada-dom.rb
    Library/Formula/conserver.rb
    Library/Formula/crash.rb
    Library/Formula/crossroads.rb
    Library/Formula/crush-tools.rb
    Library/Formula/css-crush.rb
    Library/Formula/csync.rb
    Library/Formula/ctemplate.rb
    Library/Formula/curlftpfs.rb
    Library/Formula/cutter.rb
    Library/Formula/cvsutils.rb
    Library/Formula/darkstat.rb
    Library/Formula/darner.rb
    Library/Formula/dart.rb
    Library/Formula/dasm.rb
    Library/Formula/debianutils.rb
    Library/Formula/dfc.rb
    Library/Formula/di.rb
    Library/Formula/drip.rb
    Library/Formula/dsniff.rb
    Library/Formula/dupx.rb
    Library/Formula/duti.rb
    Library/Formula/dwatch.rb
    Library/Formula/dynamips.rb
    Library/Formula/echoping.rb
    Libr
Aborting
Error: Failure while executing: git checkout -q master 
andrewhubbs commented 12 years ago
O:local (deploy)$ git co -q master --force
O:local (master)$ git st
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   Library/Contributions/install_homebrew.rb
nothing added to commit but untracked files present (use "git add" to track)
O:local (master)$ brew update

Forced the master co. That worked.

andrewhubbs commented 12 years ago

Ok. This ticket can be closed. Definitely an out of date homebrew issue. Successfully install after forcing the update. Sorry about this one.

ghost commented 12 years ago

Whenever you update Xcode version you'll have to brew update before you can install.

andrewhubbs commented 12 years ago

Thanks @humdedum for taking a look. Updating cleared it up.