kroma-network / tachyon

Modular ZK(Zero Knowledge) backend accelerated by GPU
MIT License
7.78k stars 226 forks source link

Building tachyon py is failed on latest macOS #197

Closed chokobole closed 1 month ago

chokobole commented 9 months ago

Issue type

Bug

OS platform and distribution

macOS Sonoma

Current behavior?

https://github.com/kroma-network/tachyon/actions/runs/7169954768/job/19537222364?pr=196

Expected Behavior?

Build and test should be successful.

Standalone code or description to reproduce the issue

> cd tachyon/py/test
> bazel test --config macos_arm64  //...
ERROR: /private/var/tmp/_bazel_chokobole/78478a39924d7742b4385236af2bac37/external/kroma_network_tachyon/tachyon/base/mac/BUILD.bazel:21:21: in objc_library rule @@kroma_network_tachyon//tachyon/base/mac:mac_logging: 
Traceback (most recent call last):
        File "/virtual_builtins_bzl/common/objc/objc_library.bzl", line 61, column 52, in _objc_library_impl
        File "/virtual_builtins_bzl/common/objc/semantics.bzl", line 54, column 13, in _check_toolchain_supports_objc_compile
Error in fail: Compiling objc_library targets requires the Apple CC toolchain which can be found here: https://github.com/bazelbuild/apple_support#toolchain-setup
ERROR: /private/var/tmp/_bazel_chokobole/78478a39924d7742b4385236af2bac37/external/kroma_network_tachyon/tachyon/base/mac/BUILD.bazel:21:21: Analysis of target '@@kroma_network_tachyon//tachyon/base/mac:mac_logging' failed
ERROR: Analysis of target '//tachyon/math/elliptic_curves/short_weierstrass:short_weierstrass_unittests_unittests' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.080s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: No test targets were found, yet testing was requested
batzor commented 3 months ago

This works on mine with bazel 6.2.1 and xcode 15.4. Is it still reproducable?