Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

"bazel build //cc/google/fhir_examples:ParsePatients" seems to have an URL error #22

@JsonWang95

Description

@JsonWang95

Hi, I was following the instructions to play around with examples for FhirProto. I ran "./generate-synthea.sh $WORKSPACE" and it seemed like I successfully generated $WORKSPACE/bundles/, $WORKSPACE/ndjson/, and $WORKSPACE/analytic/. However, when I was trying to validate that my bazel environment was correct by running "bazel build //cc/google/fhir_examples:ParsePatients", it gave me some errors that might include some invalid URL paths.
It looks like this:

Starting local Bazel server and connecting to it...
ERROR: no such package '@@bazel_tools//platforms': BUILD file not found in directory 'platforms' of external repository @@bazel_tools. Add a BUILD file to a directory to mark it as a package.
ERROR: /private/var/tmp/_bazel_jasonwang/5e6da5e0c0df3beebeb7eaebe5e37e83/external/com_google_absl/absl/BUILD.bazel:42:15: no such package '@@bazel_tools//platforms': BUILD file not found in directory 'platforms' of external repository @@bazel_tools. Add a BUILD file to a directory to mark it as a package. and referenced by '@@com_google_absl//absl:windows'
ERROR: /private/var/tmp/_bazel_jasonwang/5e6da5e0c0df3beebeb7eaebe5e37e83/external/com_google_absl/absl/cleanup/BUILD.bazel:39:11: errors encountered resolving select() keys for @@com_google_absl//absl/cleanup:cleanup
ERROR: Analysis of target '//cc/google/fhir_examples:ParsePatients' failed; build aborted: Analysis failed
INFO: Elapsed time: 10.373s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED:
Fetching repository @@bazel_toolscc_configure_extensionlocal_config_cc; starting
Fetching repository @@nlohmann_json; starting
Fetching repository @@Icu; starting
Fetching repository @@protobuf~; starting
Fetching /private/var/tmp/_bazel_jasonwang/5e6da5e0c0df3beebeb7eaebe5e37e83/external/protobuf~; Extracting protobuf-all-21.7.zip
Fetching repository @@maven; starting
Fetching repository @@rules_javatoolchains~remotejdk11_macos_aarch64; starting
Fetching repository @@rules_java
toolchains~remote_java_tools_darwin_arm64; starting ... (11 fetches)

Any help would be appreciated, thank you!

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