Homebrew-core: Error: undefined method `non_apple_gcc_version' for DevelopmentTools:Class

Created on 10 May 2016  路  11Comments  路  Source: Homebrew/homebrew-core

Error: undefined method `non_apple_gcc_version' for DevelopmentTools:Class
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/compilers.rb:138:in `compiler_version'
/usr/local/Library/Homebrew/compilers.rb:121:in `block (2 levels) in find_compiler'
/usr/local/Library/Homebrew/compilers.rb:119:in `reverse_each'
/usr/local/Library/Homebrew/compilers.rb:119:in `block in find_compiler'
/usr/local/Library/Homebrew/compilers.rb:116:in `each'
/usr/local/Library/Homebrew/compilers.rb:116:in `find_compiler'
/usr/local/Library/Homebrew/compilers.rb:109:in `compiler'
/usr/local/Library/Homebrew/compilers.rb:92:in `select_for'
/usr/local/Library/Homebrew/extend/ENV/shared.rb:165:in `compiler'
/usr/local/Library/Homebrew/extend/ENV/super.rb:45:in `setup_build_environment'
/usr/local/Library/Homebrew/build.rb:86:in `install'
/usr/local/Library/Homebrew/build.rb:178:in `<main>'
bug

Most helpful comment

@ilovezfs Currently the only person it is annoying is me (and I wrote it).

All 11 comments

To help us debug this issue, can you please explain:

  • What you were trying to do (and why)
  • What happened 馃憠 _Alright, I can see that from your original message._
  • What you expected to happen
  • Step-by-step reproduction instructions (with as minimal input data as possible)

Hello,
I see the same problem. Notes for Debug:

  • Trying to install the kraken package from homebrew-science with:
    brew install kraken
  • Recently upgraded to El Capitan from Yosemite
  • Ran xcode-select --install
  • brew update at the latest (run several times)
  • brew doctor clean except for warnings about tcl libs in /usr/local

And my brew config

brew config
HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 500f9eada854c1939bf9a0caf94085214c9399b0
Last commit: 7 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f747b9dc11b4abd9d13ce76810b07ccafcabf225
Core tap last commit: 49 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: 8-core 64-bit haswell
Clang: 7.3 build 703
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_91, 1.8.0_51, 1.6.0_65-b14-468
System Ruby: 2.0.0-p648
OS X: 10.11.4-x86_64
Xcode: 7.3.1
CLT: 7.3.1.0.1.1461711523
X11: 2.7.7 => /opt/X11

Hi,

Thanks for the response. I was running
brew install gubbins

Instructions here: https://github.com/sanger-pathogens/gubbins/blob/master/INSTALL.md#osx---mavericks-109--yosemite-1010--el-capitan-1011

OSX - Mavericks (10.9) & Yosemite (10.10) & El Capitan (10.11)

Install HomeBrew. It requires a minimum of Xcode 5.1.1 (xcodebuild -version). Then run:

brew tap homebrew/science
brew install gubbins

Thanks! That's sufficient information to reproduce the issue! It's caused by some refactoring we've done recently. Sorry that this is causing some problems. I won't be able to fix this myself (it's way too late where I am), but I'll try to leave enough information for some other maintainer to pick this up:

cc @mikemcquaid

This appears to break Imagemagick compilation too.

Is there a way to rollback to a functional version of Homebrew?

@nomoon cd /usr/local ; git reset --hard @{2.days.ago} (or whatever the minimum that is required) and add HOMEBREW_NO_AUTO_UPDATE=1 to your profile temporarily

Everyone: The bug should have been fixed by https://github.com/Homebrew/brew/commit/5c1f463ac0f1ac8b3dffc5d235071f9759aa5633. Please brew update and try again. Closing as resolved, but happy to reopen if there's still an issue. Thanks!

[鈥 and add HOMEBREW_NO_AUTO_UPDATE=1 to your profile temporarily.

@ilovezfs This shouldn't be necessary. The auto-update code isn't yet switched on by default.

@UniqMartin Ah, so the apocalypse hasn't started yet then.

@ilovezfs Currently the only person it is annoying is me (and I wrote it).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviderestivo picture daviderestivo  路  4Comments

faraazkhan picture faraazkhan  路  3Comments

BluePawDev picture BluePawDev  路  3Comments

sstadick picture sstadick  路  4Comments

yuna9 picture yuna9  路  4Comments