Closed wbill closed 10 years ago
Please follow this guide and post the requested diagnostics, thanks!
Definitely a bug here, I can reproduce it easily:
$ brew rm darkice celt
Uninstalling /usr/local/Cellar/darkice/1.2...
Uninstalling /usr/local/Cellar/celt/0.11.1...
$ brew install darkice --cc=llvm-gcc
==> Installing darkice dependency: celt
Error: comparison of Fixnum with nil failed
Note this is on 10.9 where there is no true llvm-gcc.
For completeness: there doesn't seem to be a need to use llvm, it compiles fine with clang.
This is this bug: https://github.com/Homebrew/homebrew/issues/18781
I'm going to add a nil check to Formula#fails_with? in the interim.
Hmm, after adding the nil check, there is yet another bug: https://gist.github.com/jacknagel/8919488
==> make install
Making install in src
llvm-g++ -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -O2 -pedantic -Wall -c -o AudioSource.o AudioSource.cpp
Your Xcode and or CLT are mis-configured. Try some or all of the following:
xcodebuild -license
sudo xcode-select -switch /path/to/Xcode.app
make[1]: *** [AudioSource.o] Error 1
make: *** [install-recursive] Error 1
My expectation is that it wouldn't attempt to use llvm-gcc (since it is just a symlink to clang).
Ok, you said use clang, I'm new to clang any idea how I should proceed? Thanks for the help!!!
Basically don't use --use-llvm
. Any advice that says to do this is outdated, and most recent systems don't have llvm-gcc anymore anyway. Clang is the default these days.
==> Installing darkice dependency: celt Error: comparison of Fixnum with nil failed brew install darkice --use-llvm Warning: "--use-llvm" is deprecated and will be removed in a future version. Please use "--cc=llvm-gcc" instead. ==> Installing dependencies for darkice: celt, autoconf, automake, libtool, flac, libsndfile, libsamplerate, jack ==> Installing darkice dependency: celt Error: comparison of Fixnum with nil failed Please report this bug: https://github.com/Homebrew/homebrew/wiki/troubleshooting /usr/local/Library/Homebrew/formula.rb:248:in
>=' /usr/local/Library/Homebrew/formula.rb:248:in
fails_with?' /usr/local/Library/Homebrew/options.rb:19:inany?' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in
each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:ineach_key' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in
each' /usr/local/Library/Homebrew/formula.rb:244:inany?' /usr/local/Library/Homebrew/formula.rb:244:in
fails_with?' /usr/local/Library/Homebrew/extend/ENV/shared.rb:124:invalidate_cc!' /usr/local/Library/Homebrew/extend/ENV/super.rb:67:in
setup_build_environment' /usr/local/Library/Homebrew/build.rb:123:ininstall' /usr/local/Library/Homebrew/build.rb:45:in
main' /usr/local/Library/Homebrew/build.rb:12 /usr/local/Library/Formula/celt.rb:15