Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colab libcoral c++ build examples error #699

Closed
gsirocco opened this issue Jan 2, 2023 · 3 comments
Closed

colab libcoral c++ build examples error #699

gsirocco opened this issue Jan 2, 2023 · 3 comments
Assignees
Labels
comp:model Model related isssues Hardware:M.2 Accelerator B+M Coral M.2 Accelerator B+M key issues subtype:windows Windos Build/installation issues type:build/install Build and install issues

Comments

@gsirocco
Copy link

gsirocco commented Jan 2, 2023

Description

I'm trying to run the build examples in colablink(https://colab.research.google.com/github/google-coral/tutorials/blob/master/build_cpp_examples.ipynb) but am now getting an error as below. This used to work, but now seems to be broken? Thanks!

Click to expand!

Issue Type

Build/Install

Operating System

Windows 10

Coral Device

M.2 Accelerator B+M

Other Devices

No response

Programming Language

C++

Relevant Log Output

bazel build --compilation_mode=opt --cpu=aarch64 --copt=-ffp-contract=off //coral/examples:two_models_one_tpu \
                                 //coral/examples:two_models_two_tpus_threaded \
                                 //coral/examples:model_pipelining \
                                 //coral/examples:classify_image \
                                 //coral/examples:backprop_last_layer
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: ignoring LD_PRELOAD in environment.
Loading: 0 packages loaded
Analyzing: 5 targets (5 packages loaded, 6 targets configured)
ERROR: /root/.cache/bazel/_bazel_root/db282089ccf9ceac8a40bd53ba7e80db/external/bazel_tools/platforms/BUILD:19:6: in alias rule @bazel_tools//platforms:x86_64: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /root/.cache/bazel/_bazel_root/db282089ccf9ceac8a40bd53ba7e80db/external/bazel_tools/platforms/BUILD:19:6: Analysis of target '@bazel_tools//platforms:x86_64' failed
ERROR: /content/libcoral/coral/examples/BUILD:46:10: While resolving toolchains for target //coral/examples:two_models_two_tpus_threaded: Target @local_execution_config_platform//:platform was referenced as a platform, but does not provide PlatformInfo
ERROR: Analysis of target '//coral/examples:two_models_two_tpus_threaded' failed; build aborted: 
INFO: Elapsed time: 38.000s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 8 targets conf\
igured)
Makefile:99: recipe for target 'examples' failed
make: *** [examples] Error 1
@google-coral-bot google-coral-bot bot added comp:model Model related isssues Hardware:M.2 Accelerator B+M Coral M.2 Accelerator B+M key issues subtype:windows Windos Build/installation issues type:build/install Build and install issues labels Jan 2, 2023
@hjonnala
Copy link
Contributor

hjonnala commented Jan 3, 2023

Seems to be issues with the latest bazel version. Please try replacing the install bazel section with below:

! wget -O /bazel https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-installer-linux-x86_64.sh && \
    bash /bazel && \
    rm -f /bazel

image

@gsirocco
Copy link
Author

Thanks, this fixed the issue!!

@google-coral-bot
Copy link

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model Model related isssues Hardware:M.2 Accelerator B+M Coral M.2 Accelerator B+M key issues subtype:windows Windos Build/installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants