-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac x86_64,build lib25519失败 #452
Comments
@Yinbenxin 请使用 bazel 7.4.1 版本,或者使用 bazelisk 详情见:https://github.com/secretflow/yacl/blob/main/GETTING_STARTED.md#prerequisites |
1.切换bazel版本 Bazel binaries for all official releases can be downloaded from here: You can download the required version directly using this command: 2.这个错误是lib25519的问题,和bazel版本关系不大吧? |
yacl用的那个分支的? |
tag:0.4.5b4_nightly_20240731 |
我执行所有的测试是通过的,但是 |
从代码中可以看到,需要系统=linux x86架构,mac os intel不兼容 可以尝试在docker 容器中尝试或更换测试设备 |
1.bazel build //... -c opt。 顺利完成编译
但是:
2.bazel run //yacl/crypto/ecc/lib25519:ed25519_test
(base) apple@ybx yacl % bazel run //yacl/crypto/ecc/lib25519:ed25519_test
INFO: Build option --compilation_mode has changed, discarding analysis cache.
ERROR: Target //yacl/crypto/ecc/lib25519:ed25519_test is incompatible and cannot be built, but was explicitly requested.
Dependency chain:
//yacl/crypto/ecc/lib25519:ed25519_test (a610f2)
//yacl/crypto/ecc/lib25519:lib25519 (ab0e3d)
//yacl/crypto/ecc/lib25519:lib25519_factory (ab0e3d)
//yacl/crypto/ecc/lib25519:ed25519_group (ab0e3d)
//yacl/crypto/ecc/lib25519:lib25519_group (ab0e3d)
@lib25519//:25519 (ab0e3d) <-- target platform (@local_config_platform//:host) didn't satisfy constraint @platforms//os:linux
INFO: Elapsed time: 0.468s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 2241 targets configured)
ERROR: Build failed. Not running target
(base) apple@ybx yacl % gcc -v
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: x86_64-apple-darwin24.1.0
bazel 6.5.0
The text was updated successfully, but these errors were encountered: