google / google/asylo-examples
Seeing errors when building sqlite or redis enclave using bazel
- Dominant language
- C++
- Stars
- 23
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am seeing errors when doing a bazel build or run with either redis or sqlite example that was highlighted. What could be the problem?
`bazel run :asylo_sqlite_sgx_sim
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
ERROR: Skipping ':asylo_sqlite_sgx_sim': no such target '//:asylo_sqlite_sgx_sim': target 'asylo_sqlite_sgx_sim' not declared in package '' defined by /opt/my-project/BUILD
WARNING: Target pattern parsing failed.
ERROR: no such target '//:asylo_sqlite_sgx_sim': target 'asylo_sqlite_sgx_sim' not declared in package '' defined by /opt/my-project/BUILD`
My BUILD is as follows:
`licenses(["notice"])
load("@com_google_asylo//asylo/bazel:asylo.bzl", "cc_enclave_binary")
cc_enclave_binary(
name = "asylo_sqlite",
deps = ["@org_sqlite//:sqlite3_shell"],
)`
WORKSPACE
`workspace(name = "asylo_sqlite")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Asylo
http_archive(
name = "com_google_asylo",
urls = ["https://github.com/google/asylo/archive/v0.5.2.tar.gz"],
sha256 = "7a32cb64b3f5cb2f2716eef063db0caccf7bafd9c771183b3e0146df2bc1697d",
strip_prefix = "asylo-0.5.2",
)
# SQLite
http_archive(
name = "org_sqlite",
build_file = "@com_google_asylo//asylo/distrib:sqlite.BUILD",
urls = ["https://www.sqlite.org/2019/sqlite-autoconf-3300100.tar.gz"],
sha256 = "8c5a50db089bd2a1b08dbc5b00d2027602ca7ff238ba7658fabca454d4298e60",
strip_prefix = "sqlite-autoconf-3300100",
)
load("@com_google_asylo//asylo/bazel:asylo_deps.bzl", "asylo_deps")
asylo_deps()
load("@com_google_asylo//asylo/bazel:sgx_deps.bzl", "sgx_deps")
sgx_deps()`
Contributor guide
Assessment
This issue has not been assessed yet.