chipsalliance / homebrew-verible

Apache License 2.0
16 stars 8 forks source link

Cannot install on MacOS with Homebrew: Target '@@com_google_protobuf//src/google/protobuf:timestamp_proto' contains an error #28

Open BillNace opened 5 months ago

BillNace commented 5 months ago

Expected Behavior

Installation succeeds

Actual Behavior

$ brew install verible ==> 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/wnace/Library/Caches/Homebrew/verible--git ==> Checking out tag v0.0-3389-ga1cd07b1 HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha ==> Installing verible from chipsalliance/verible ==> bazel build --jobs=10 --compilation_mode=opt --copt=-mcpu=apple-m1 --linkopt Last 15 lines from /Users/wnace/Library/Logs/Homebrew/verible/01.bazel: /private/tmp/verible-20240127-6156-76ub2b/WORKSPACE:139:26: in /private/tmp/verible-20240127-6156-76ub2b/.brew_home/_bazel/fbfdc421ccca7944e0504842a757d0fc/external/rules_bison/bison/bison.bzl:33:25: in bison_register_toolchains Repository rule bison_repository defined at: /private/tmp/verible-20240127-6156-76ub2b/.brew_home/_bazel/fbfdc421ccca7944e0504842a757d0fc/external/rules_bison/bison/internal/repository.bzl:115:35: in INFO: Repository m4_v1.4.18 instantiated at: /private/tmp/verible-20240127-6156-76ub2b/WORKSPACE:118:23: in /private/tmp/verible-20240127-6156-76ub2b/.brew_home/_bazel/fbfdc421ccca7944e0504842a757d0fc/external/rules_m4/m4/m4.bzl:67:22: in m4_register_toolchains Repository rule m4_repository defined at: /private/tmp/verible-20240127-6156-76ub2b/.brew_home/_bazel/fbfdc421ccca7944e0504842a757d0fc/external/rules_m4/m4/rules/m4_repository.bzl:138:32: in ERROR: /private/tmp/verible-20240127-6156-76ub2b/.brew_home/_bazel/fbfdc421ccca7944e0504842a757d0fc/external/com_google_protobuf/BUILD.bazel:70:6: Target '@@com_google_protobuf//src/google/protobuf:timestamp_proto' contains an error and its package is in error and referenced by '@@com_google_protobuf//:timestamp_proto' ERROR: Analysis of target '//verilog/tools/kythe:kzip-creator' failed; build aborted: Analysis failed INFO: Elapsed time: 11.904s, Critical Path: 0.52s INFO: 6 processes: 1 internal, 5 processwrapper-sandbox. ERROR: Build did NOT complete successfully FAILED:

Specifications

wswzhws commented 5 months ago

Hi, I encountered the same error that you mentioned.

The specific error message is as follows:

==> Fetching chipsalliance/verible/verible
==> Cloning https://github.com/chipsalliance/verible.git
Updating /Users/amoswang/Library/Caches/Homebrew/verible--git
==> Checking out tag v0.0-3389-ga1cd07b1
HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha
HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha
==> Installing verible from chipsalliance/verible
==> bazel build --jobs=8 --compilation_mode=opt --copt=-mcpu=apple-m1 --linkopt=-Wl,-rpath,@loader_path/../lib --
Last 15 lines from /Users/amoswang/Library/Logs/Homebrew/verible/01.bazel:
Repository rule http_archive defined at:
  /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/bazel_tools/tools/build_defs/repo/http.bzl:381:31: in <toplevel>
Analyzing: 1407 targets (132 packages loaded, 2358 targets configured)
[18 / 18] checking cached actions
INFO: Repository bison_v3.3.2 instantiated at:
  /private/tmp/verible-20240206-46911-69h2nd/WORKSPACE:139:26: in <toplevel>
  /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/rules_bison/bison/bison.bzl:33:25: in bison_register_toolchains
Repository rule bison_repository defined at:
  /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/rules_bison/bison/internal/repository.bzl:115:35: in <toplevel>
ERROR: /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/com_google_protobuf/BUILD.bazel:28:6: Target '@@com_google_protobuf//src/google/protobuf:any_proto' contains an error and its package is in error and referenced by '@@com_google_protobuf//:any_proto'
ERROR: Analysis of target '//verilog/tools/kythe:kzip-creator' failed; build aborted: Analysis failed
INFO: Elapsed time: 45.961s, Critical Path: 2.21s
INFO: 18 processes: 13 internal, 5 processwrapper-sandbox.
ERROR: Build did NOT complete successfully
FAILED:

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

These open issues may also help:
Can't use homebrew to install verible----bazel error https://github.com/chipsalliance/homebrew-verible/issues/26

It can be seen that my error message is same with yours. So can I ask if you have solved the same problem? Thanks for your hard work !

Specifications

Platform: MacOS Sonoma 14.3 on Apple M1 8GB (MacBook Air)

BillNace commented 5 months ago

Greetings,

I’m sorry to say that I have not solved the problem. I don’t have much expertise in the area, so sort of am suffering without verible.

If you find a solution, please let me know. I’ll do the same if I stumble across something.

Cheers, Bill Nace

On Feb 6, 2024, at 10:16 AM, wswzhws @.***> wrote:

Hi, I encountered the same error that you mentioned. The specific error message is as follows: ==> Fetching chipsalliance/verible/verible ==> Cloning https://github.com/chipsalliance/verible.git Updating /Users/amoswang/Library/Caches/Homebrew/verible--git ==> Checking out tag v0.0-3389-ga1cd07b1 HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha ==> Installing verible from chipsalliance/verible ==> bazel build --jobs=8 --compilation_mode=opt --copt=-mcpu=apple-m1 @.***_path/../lib -- Last 15 lines from /Users/amoswang/Library/Logs/Homebrew/verible/01.bazel: Repository rule http_archive defined at: /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/bazel_tools/tools/build_defs/repo/http.bzl:381:31: in Analyzing: 1407 targets (132 packages loaded, 2358 targets configured) [18 / 18] checking cached actions INFO: Repository bison_v3.3.2 instantiated at: /private/tmp/verible-20240206-46911-69h2nd/WORKSPACE:139:26: in /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/rules_bison/bison/bison.bzl:33:25: in bison_register_toolchains Repository rule bison_repository defined at: /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/rules_bison/bison/internal/repository.bzl:115:35: in ERROR: /private/tmp/verible-20240206-46911-69h2nd/.brew_home/_bazel/88e7fa2fce4cc82416d83cef5290bbca/external/com_google_protobuf/BUILD.bazel:28:6: Target '@@com_google_protobuf//src/google/protobuf:any_proto' contains an error and its package is in error and referenced by '@@com_google_protobuf//:any_proto' ERROR: Analysis of target '//verilog/tools/kythe:kzip-creator' failed; build aborted: Analysis failed INFO: Elapsed time: 45.961s, Critical Path: 2.21s INFO: 18 processes: 13 internal, 5 processwrapper-sandbox. ERROR: Build did NOT complete successfully FAILED:

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

These open issues may also help: Can't use homebrew to install verible----bazel error https://github.com/chipsalliance/homebrew-verible/issues/26 It can be seen that my error message is same with yours. So can I ask if you have solved the same problem? Thanks for your hard work ! Specifications Platform: MacOS Sonoma 14.3 on Apple M1 8GB (MacBook Air) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

wswzhws commented 5 months ago

Hi, I accidentally discovered a solution that we can start from Verible Release.

https://github.com/chipsalliance/verible/releases/tag/v0.0-3534-g99d1aa7c

Here is the URL to get the binary file works on Mac. I just tried verilble-verilog-format, it works better. Hope this helps you ! Good Luck !

zapta commented 5 months ago

Just encountered a similar build error. Any suggestions?

/Users/user/.apio/packages/tools-oss-cad-suite/bin $ brew tap chipsalliance/verible
==> Tapping chipsalliance/verible
Cloning into '/opt/homebrew/Library/Taps/chipsalliance/homebrew-verible'...
remote: Enumerating objects: 145, done.
remote: Counting objects: 100% (95/95), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 145 (delta 36), reused 72 (delta 30), pack-reused 50
Receiving objects: 100% (145/145), 32.09 KiB | 8.02 MiB/s, done.
Resolving deltas: 100% (54/54), done.
Tapped 1 formula (20 files, 64.6KB).

/Users/user/.apio/packages/tools-oss-cad-suite/bin $ brew install verible
==> Fetching chipsalliance/verible/verible
==> Cloning https://github.com/chipsalliance/verible.git
Updating /Users/user/Library/Caches/Homebrew/verible--git
==> Checking out tag v0.0-3389-ga1cd07b1
HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha
HEAD is now at a1cd07b1 Merge pull request #1982 from ivan444/rm_sha
==> Installing verible from chipsalliance/verible
==> bazel build --jobs=8 --compilation_mode=opt --copt=-mcpu=apple-m1 --linkopt=-Wl,-rpath,@loader_path/../lib --verbose_failu
Last 15 lines from /Users/user/Library/Logs/Homebrew/verible/01.bazel:
INFO: Repository protobuf~3.19.6 instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /private/tmp/verible-20240217-1080-q4qwnk/.brew_home/_bazel/0400f23a3ea1375f79249f504e39c147/external/bazel_tools/tools/build_defs/repo/http.bzl:381:31: in <toplevel>
INFO: Repository m4_v1.4.18 instantiated at:
  /private/tmp/verible-20240217-1080-q4qwnk/WORKSPACE:118:23: in <toplevel>
  /private/tmp/verible-20240217-1080-q4qwnk/.brew_home/_bazel/0400f23a3ea1375f79249f504e39c147/external/rules_m4/m4/m4.bzl:67:22: in m4_register_toolchains
Repository rule m4_repository defined at:
  /private/tmp/verible-20240217-1080-q4qwnk/.brew_home/_bazel/0400f23a3ea1375f79249f504e39c147/external/rules_m4/m4/rules/m4_repository.bzl:138:32: in <toplevel>
ERROR: /private/tmp/verible-20240217-1080-q4qwnk/.brew_home/_bazel/0400f23a3ea1375f79249f504e39c147/external/com_google_protobuf/BUILD.bazel:70:6: Target '@@com_google_protobuf//src/google/protobuf:timestamp_proto' contains an error and its package is in error and referenced by '@@com_google_protobuf//:timestamp_proto'
ERROR: Analysis of target '//verilog/tools/kythe:kzip-creator' failed; build aborted: Analysis failed
INFO: Elapsed time: 14.829s, Critical Path: 0.26s
INFO: 27 processes: 22 internal, 5 processwrapper-sandbox.
ERROR: Build did NOT complete successfully
FAILED: 

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

These open issues may also help:
Can't use homebrew to install verible----bazel error https://github.com/chipsalliance/homebrew-verible/issues/26
/Users/user/.apio/packages/tools-oss-cad-suite/bin $
ben-h-a commented 1 month ago

I have a pull request that should fix this issue