How to build tensorflow without error with LSDK 20.04?
flex-builder docker
source setup.env
flex-builder -c tensorflow
WARNING: /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/grpc/bazel/grpc_build_system.bzl:172:12
ERROR: /home/mason/lsdk/ls1046afrwy/flexbuild_lsdk2004/packages/apps/eiq/tensorflow/tensorflow/tools/pip_package/BUILD:132:1: no such package '@icu//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz, https://github.com/unicode-org/icu/archive/release-62-1.tar.gz] to /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761 and referenced by '//tensorflow/tools/pip_package:licenses'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@icu//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz, https://github.com/unicode-org/icu/archive/release-62-1.tar.gz] to /root/.cache/bazel/_bazel_root/e049e4c8f6a02b9cc6ec49b509d262b1/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761
INFO: Elapsed time: 41.850s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (192 packages loaded)
def repo(): | |
third_party_http_archive( | |
name = "icu", | |
strip_prefix = "icu-release-62-1", | |
sha256 = "e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761", | |
urls = [ | |
"https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz", URL DOES NOT EXIST | |
"https://github.com/unicode-org/icu/archive/release-62-1.tar.gz", THIS ONE HAS DIFFERENT SHA256 SIGNATURE. | |
], | |
build_file = "//third_party/icu:BUILD.bazel", | |
system_build_file = "//third_party/icu:BUILD.system", | |
patch_file = clean_dep("//third_party/icu:udata.patch"), | |
) |
I have the same problem here, recipe or binary had changed . Everything was compiling ok a few days ago.
I am trying to solve this problem:
yocto_rootfs_v3/build/tmp/work/aarch64-poky-linux/tensorflow/1.13.1-r0/bazel/output_base/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761 and referenced by '//tensorflow/core/kernels:string_util
Please build eiq first then build tensorflow
$ flex-builder -c eiq # build all eIQ components (include armnn, tensorflow, tflite, opencv, onnx, etc
$ flex-builder -c tensorflow # build tensorflow
According to LSDK 20.04 user manual, Cross-build eIQ components on host
$ flex-builder -c eiq # build all eIQ components (include armnn, armcl, tensorflow, tflite, opencv, onnx, etc)
$ flex-builder -c armnn # build armnn
$ flex-builder -c tensorflow # build tensorflow
$ flex-builder -c tflite # build tflite
$ flex-builder -c opencv # build opencv
$ flex-builder -c caffe # build caffe
$ flex-builder -c onnx # build onnx
$ flex-builder -c onnxruntime # build onnxruntime