Skip to content

Error when building project: vardef is not defined #45

@shubham0204

Description

@shubham0204

Following the installation commands defined in the Dockerfile, I am trying to build this project with Bazel. On running,

sudo bazel build //...

in project's root, I get the following error,

Starting local Bazel server (8.1.1) and connecting to it...
ERROR: /home/shubhampanchal/ai-edge-apis/local_agents/rag/java/com/google/ai/edge/localagents/rag/BUILD:43:1: name 'vardef' is not defined
ERROR: /home/shubhampanchal/ai-edge-apis/local_agents/rag/java/com/google/ai/edge/localagents/rag/BUILD:43:29: name 'MEDIAPIPE_FULL_VERSION' is not defined
ERROR: package contains errors: local_agents/rag/java/com/google/ai/edge/localagents/rag
ERROR: package contains errors: local_agents/rag/java/com/google/ai/edge/localagents/rag: name 'vardef' is not defined
WARNING: Target pattern parsing failed.
ERROR: Skipping '//...': Error evaluating '//...': error loading package 'local_agents/rag/java/com/google/ai/edge/localagents/rag': Package 'local_agents/rag/java/com/google/ai/edge/localagents/rag' contains errors
ERROR: Error evaluating '//...': error loading package 'local_agents/rag/java/com/google/ai/edge/localagents/rag': Package 'local_agents/rag/java/com/google/ai/edge/localagents/rag' contains errors
INFO: Elapsed time: 12.742s
INFO: 0 processes.
ERROR: Build did NOT complete successfully

Related issues in other Google repos:

System Information

  • Platform: Ubuntu 22, x64
  • JDK: OpenJDK 21
  • Android SDK level 30, Android NDK r28
  • Bazel version 8.1.1

Happy to provide information. I would also be glad if the repo-owners can include a 'Build Source' section in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions