sun1638650145 / Libraries-and-Extensions-for-TensorFlow-for-Apple-Silicon

This Repo will provide TensorFlow libraries and extended build tutorials that require compilation to build, as well as pre-compiled wheel files.
115 stars 9 forks source link

sentencepiece_processor does not depend on a module exporting 'third_party/darts_clone/darts.h #5

Closed raemisch closed 2 years ago

raemisch commented 2 years ago

Hello,

following exactly the instructions (w/ python 3.9) I keep getting a compiler error that I don't know how to interpret/resolve.

ERROR: /private/var/tmp/_bazel_XXXXX/03c196188fbb5dc38e3a61a403354856/external/com_google_sentencepiece/BUILD.bazel:51:11: Compiling src/normalizer.cc failed: (Exit 1): cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics ... (remaining 70 arguments skipped)
external/com_google_sentencepiece/src/normalizer.cc:25:10: error: module: @com_google_sentencepiece//:sentencepiece_processor does not depend on a module exporting 'third_party/darts_clone/darts.h'
#include "third_party/darts_clone/darts.h"
         ^
1 error generated.
Target //oss_scripts/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.

Platform: M1 Pro with Monterey (12.4)

If anyone has an idea where this might come from, any help is greatly appreciated.

sun1638650145 commented 2 years ago

Building with bazel requires a stable network. I am concerned that you are also asking the same problem in the text repo, adding new dependencies in BUILD is one way; I also suggest that you can try to remove your bazel cache and retry the build (remember to make sure the network is stable).

sun1638650145 commented 2 years ago

Please let me know whether it is successful or not and I will continue to help you.

raemisch commented 2 years ago

Thanks a lot for the suggestion! Neither of those made difference, though. Anyway, I'd suggest to continue this discussion here, so as to not have two parallel threads.