riscv-software-src / homebrew-riscv

homebrew (macOS) packages for RISC-V toolchain
https://riscv.org
310 stars 50 forks source link

Error: riscv/riscv/riscv-tools: failed #10

Closed gitfoxi closed 7 years ago

gitfoxi commented 7 years ago
$ brew test riscv-tools
Testing riscv/riscv/riscv-tools
==> Using the sandbox
==> riscv64-unknown-elf-gcc /tmp/riscv-tools-test-20170706-38532-1gd40un/hello.c
==> spike pk /tmp/riscv-tools-test-20170706-38532-1gd40un/a.out
Error: riscv/riscv/riscv-tools: failed
undefined method `assertions' for #<Formulary::FormulaNamespace9da3d5cffade8db99d366e0ec1a5e269::RiscvTools:0x007fa28936dbb0>
/Users/mfox/.gem/ruby/2.0.0/gems/minitest-5.5.1/lib/minitest/assertions.rb:126:in `assert'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/test/unit/assertions.rb:38:in `assert'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/test/unit/assertions.rb:187:in `assert_equal'
/usr/local/Homebrew/Library/Homebrew/formula_assertions.rb:10:in `shell_output'
/usr/local/Homebrew/Library/Taps/riscv/homebrew-riscv/riscv-tools.rb:28:in `block in <class:RiscvTools>'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1639:in `block (2 levels) in run_test'
/usr/local/Homebrew/Library/Homebrew/formula.rb:832:in `with_logging'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1638:in `block in run_test'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:14:in `block in mktemp'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:74:in `block in run'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:74:in `chdir'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:74:in `run'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:13:in `mktemp'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1632:in `run_test'
/usr/local/Homebrew/Library/Homebrew/test.rb:28:in `block in <main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
/usr/local/Homebrew/Library/Homebrew/test.rb:27:in `<main>'

First try. Installed using README instructions. Seems more like its failing to run the test than failing a real test?

sbeamer commented 7 years ago

I'm not able to reproduce it. Anything you can do to help debug would be greatly appreciated.

Based on the error message, it seems possible homebrew changed internally such that the formula (riscv-tools.rb) is using an outdated internal homebrew API for assertion checking. Unfortunately, with a fresh install, I do not get that error.

gitfoxi commented 7 years ago

My fault or homebrew's. Looking at the backtrace, it's using a Gem from my ~/.gem and that can't be right. I just blew away that path and now it's fine (hope I don't need gems for anything).

Thanks, and sorry for the spurious report.

On Thu, Jul 6, 2017 at 1:34 PM, Scott Beamer notifications@github.com wrote:

I'm not able to reproduce it. Anything you can do to help debug would be greatly appreciated.

Based on the error message, it seems possible homebrew changed internally such that the formula (riscv-tools.rb) is using an outdated internal homebrew API for assertion checking. Unfortunately, with a fresh install, I do not get that error.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/riscv/homebrew-riscv/issues/10#issuecomment-313511546, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjpRdw8a1mSaiS4zgrkNycq4k1eGeL1ks5sLUTLgaJpZM4OQDa8 .

--

- Michael

sbeamer commented 7 years ago

Glad it worked out :)