google-coral / libedgetpu

Source code for the userspace level runtime driver for Coral.ai devices.
Apache License 2.0
179 stars 60 forks source link

error when compile libedgetpu.so from source code with specific tf version #38

Closed jk78346 closed 2 years ago

jk78346 commented 2 years ago

Hi, I'm compiling libedgetpu.so from source code here, and I aim to match tf1.13.1 verison. So I changed TENSORFLOW_COMMIT and TENSORFLOW_SHA256 to the following:

TENSORFLOW_COMMIT = "6612da89516247503f03ef76e974b51a434fb52e" # v1.13.1
TENSORFLOW_SHA256 = "9345658274058773f34a8865fba14b9fdd3c1c4cb3eaf44dbb7f6c01632ee830"

But I got the error:

Loading: 0 packages loaded
ERROR: error loading package '': Unable to load file '@org_tensorflow//tensorflow:workspace3.bzl': file doesn't exist
Loading: 0 packages loaded
Loading: 0 packages loaded
bazel build --stripopt=-x --compilation_mode=opt --cpu=k8 --embed_label='TENSORFLOW_COMMIT=' --stamp //tflite/public:libedgetpu_direct_all.so.stripped
ERROR: error loading package '': Unable to load file '@org_tensorflow//tensorflow:workspace3.bzl': file doesn't exist
ERROR: error loading package '': Unable to load file '@org_tensorflow//tensorflow:workspace3.bzl': file doesn't exist
INFO: Elapsed time: 0.039s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Makefile:92: recipe for target 'libedgetpu-direct' failed
make: *** [libedgetpu-direct] Error 1

I couldn't really find out any solution to solve this. I'm not sure if Bazel version has to be a specific version as well. Does anyone has clue about what cause this error? My bazel version is 2.0.0.

hjonnala commented 2 years ago

Hello @jk78346 the build is not supported with tf1.13.1 version as workspace3.bzl is missing.

Please try the build with TF v2.3.0 or TF v2.5.0. Thanks!

google-coral-bot[bot] commented 2 years ago

Are you satisfied with the resolution of your issue? Yes No