Bazel native build not working for multiple older versions of TF. Python dependency and commit hash issues. #65
Labels
Hardware:M.2 Accelerator with dual Edge TPU
Coral M.2 Accelerator with Dual Edge TPU issues
Hardware:USB Accelerator
Coral USB Accelerator issues
subtype:ubuntu/linux
Ubuntu/Linux Build/installation issues
type:build/install
Build and install issues
Description
Some of the recent changes being merged have broken bazel builds using the Makefile for some of the older versions of Tensorflow. I am currently attempting to build libedgetpu for TF 2.13.1 and I am using Bazel 5.3.0.
It seems that the commit hash is not getting set in the bazel build command ran by the Makefile. The command shown here is missing a commit on the
embed_label
argument:bazel build --stripopt=-x --compilation_mode=opt --cpu=k8 --embed_label='TENSORFLOW_COMMIT=' --stamp //tflite/public:libedgetpu_direct_all.so.stripped
The only modification I made to the workspace.bzl file was commenting out the TF 2.16.1 commit hashes and uncommenting TF 2.13.1 commit hashes.
Bazel also seems to be unable to pull the python toolchain for tensorflow, not sure why (maybe because the commit is missing). This is printed out in multiple places during the build:
ERROR: error loading package '': Label '@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl' is invalid because 'tensorflow/tools/toolchains/python' is not a package; perhaps you meant to put the colon here: '@org_tensorflow//tensorflow/tools/toolchains:python/python_repo.bzl'?
Checking out a82c669 before the toolchains were updated fixes both the python issue and commit not being set in the bazel build command. I am also able to fully build libedgetpu for TF 2.13.1 when checked out to this commit.
Click to expand!
Issue Type
Build/Install
Operating System
Linux, Ubuntu
Coral Device
USB Accelerator, M.2 Accelerator with dual Edge TPU
Other Devices
No response
Programming Language
C++
Relevant Log Output
The text was updated successfully, but these errors were encountered: