secretflow / yacl

YACL (Yet Another Common crypto library) is a C++ library that contains cryptography, network and io modules which other SecretFlow code depends on.
https://www.secretflow.org.cn/en/docs/yacl/main/
Apache License 2.0
80 stars 65 forks source link

building bug after run 'bazel build //yacl/...' #422

Open 2646jx opened 3 days ago

2646jx commented 3 days ago

FATAL: bazel crashed due to an internal error. Printing stack trace: java.lang.RuntimeException: Unrecoverable error while evaluating node 'ActionLookupDataN{actionLookupKey=ConfiguredTargetKey{label=@@com_github_google_benchmark//:benchmark, config=BuildConfigurationKey[37b3921117ac061a749349ab24dee630faf9fbb9a4c674d487a9c4a9974d7f6f]}, actionIndex=10}' (requested by nodes 'ArtifactNestedSetKey[19]@1123876094') at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:550) at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:414) at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: com.google.devtools.build.lib.rules.apple.DottedVersion$InvalidDottedVersionException: Dotted version components must all start with the form \d+([a-z0-9]*?)?(\d+)? but got 'None'

tongke6 commented 3 days ago

@2646jx Please provide the build environment information, such as the operating system details, whether it's Docker or a physical machine, the YACL version, etc.

2646jx commented 3 days ago

Thanks for you reply. I'm running on MacOS M2. I didn't run with docker, it's directly run on my physical machine. I use the newest code on main feature.

Jamie-Cui commented 3 days ago

Can you try cleanup with bazel cache with commands bazel clean --expunge and then rebuild with bazel build //yacl/... again?

tongke6 commented 3 days ago

It looks very similar to this issue https://github.com/bazelbuild/bazel/issues/23111 try running bazel clean --expunge after installing Xcode

tongke6 commented 3 days ago

Please follow the steps if you want to build on MacOS : https://github.com/secretflow/yacl/blob/main/GETTING_STARTED.md#macos

2646jx commented 3 days ago

Okay, I'll give it a try and then check it again.