Error: Calling BottleSpecification.revision is disabled!


(Israel Buitron) #1

I want to report a issue when i was executing brew install bison. It threw:

==> Downloading http://ftpmirror.gnu.org/bison/bison-3.0.4.tar.gz
==> Downloading from http://mirror.us-midwest-1.nexcess.net/gnu/bison/bison-3.0.4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/bison/3.0.4
==> make install
Last 15 lines from /Users/israel/Library/Logs/Homebrew/bison/02.make:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(binary-io.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(bitrotate.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(fd-hook.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(math.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(sig-handler.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(threadlib.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(unistd.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(wctype-h.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libbison.a(xsize.o) has no symbols
  CCLD     src/bison
  GEN      doc/bison.help
/bin/sh: line 1: 24311 Abort trap: 6           src/bison --version > doc/bison.help.tmp
make[2]: *** [doc/bison.help] Error 134
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Error: Calling BottleSpecification.revision is disabled!
Use BottleSpecification.rebuild instead.
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/python.rb:9:in `block in <class:Python>'
Please report this to the homebrew/core tap!
Or, even better, submit a PR to fix it!

I’m sorry if it is not the correct place, it is my first report.


(Mike McQuaid) #2

You need to brew update.


(Israel Buitron) #3

I have tried with brew update and it threw this message:

$ brew update
Error: /usr/local is not writable. You should change the
ownership and permissions of /usr/local back to your
user account:
  sudo chown -R $(whoami) /usr/local

so then i executed chown:

sudo chown -R $(whoami) /usr/local
Password:
chown: /usr/local: Operation not permitted

finally, I tried with brew doctor and i got:

brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: /usr/local is not writable.

You should change the ownership and permissions of /usr/local
back to your user account.
  sudo chown -R $(whoami) /usr/local
Error: Calling BottleSpecification.revision is disabled!
Use BottleSpecification.rebuild instead.
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/findutils.rb:10:in `block in <class:Findutils>'
Please report this to the homebrew/core tap!
Or, even better, submit a PR to fix it!

(Mike McQuaid) #4

chown -R $(whoami) /usr/local/.git /usr/local/*