chipsalliance / homebrew-verible

Apache License 2.0
16 stars 8 forks source link

bezel build on apple silicon failes during homebrew install #16

Closed thuvasooriya closed 1 year ago

thuvasooriya commented 1 year ago
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################## 100.0%
==> Fetching chipsalliance/verible/verible
==> Cloning https://github.com/chipsalliance/verible.git
Updating /Users/tony/Library/Caches/Homebrew/verible--git
==> Checking out tag v0.0-2206-g88515c17
HEAD is now at 88515c17 Merge pull request #1401 from hzeller/20220822-use-fallback-clang-tidy
HEAD is now at 88515c17 Merge pull request #1401 from hzeller/20220822-use-fallback-clang-tidy
==> Installing verible from chipsalliance/verible
==> bazel build --jobs=8 --compilation_mode=opt --copt=-mcpu=apple-m1 --linkopt=-Wl,-rpath,@loader_path/../lib --verbose_failures //verilog/
Last 15 lines from /Users/tony/Library/Logs/Homebrew/verible/01.bazel:
Analyzing: 1398 targets (10 packages loaded, 0 targets configured)
Analyzing: 1398 targets (13 packages loaded, 4 targets configured)
Analyzing: 1398 targets (51 packages loaded, 477 targets configured)
Analyzing: 1398 targets (52 packages loaded, 477 targets configured)
ERROR: /private/tmp/verible-20230303-37918-smxkgx/.brew_home/_bazel/e90e159bf22c92cbac1ddcb9dfa7b5dd/external/bazel_tools/platforms/BUILD:89:6: in alias rule @bazel_tools//platforms:windows: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /private/tmp/verible-20230303-37918-smxkgx/.brew_home/_bazel/e90e159bf22c92cbac1ddcb9dfa7b5dd/external/bazel_tools/platforms/BUILD:89:6: Analysis of target '@bazel_tools//platforms:windows' failed
INFO: Repository python_six instantiated at:
  /private/tmp/verible-20230303-37918-smxkgx/WORKSPACE:185:13: in <toplevel>
Repository rule http_archive defined at:
  /private/tmp/verible-20230303-37918-smxkgx/.brew_home/_bazel/e90e159bf22c92cbac1ddcb9dfa7b5dd/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: /private/tmp/verible-20230303-37918-smxkgx/verilog/tools/syntax/export_json_examples/BUILD:17:8: While resolving toolchains for target //verilog/tools/syntax/export_json_examples:verible_verilog_syntax_py_test: invalid registered toolchain '@bazel_skylib//toolchains/unittest:cmd_toolchain':
ERROR: Analysis of target '//verilog/tools/syntax/export_json_examples:verible_verilog_syntax_py_test' failed; build aborted:
INFO: Elapsed time: 16.830s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (60 packages loaded, 933 targets configured)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/chipsalliance/homebrew-verible/issues

Using Homebrew on M1 Macbook Air gives this error. on Ventura 13.2.1

Originally posted by @thuvasooriya in https://github.com/chipsalliance/homebrew-verible/issues/15#issuecomment-1453010198

thuvasooriya commented 1 year ago

Fixed on merge #17