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

chore: add bazel to build #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

chore: add bazel to build #1

wants to merge 1 commit into from

Conversation

mgred
Copy link
Collaborator

@mgred mgred commented May 26, 2023

This adds a basic setup for bazel using rules_go.

Most BUILD.bazel files were generated by bazel run //:gazelle. Dependencies are loaded from build/deps.bzl (bazel run //:gazelle -- update-repos -from_file=./go.mod -prune=true -to_macro=deps.bzl%go_dependencies)

Build: bazel build //:tvg

@mgred
Copy link
Collaborator Author

mgred commented May 26, 2023

Build fails:

x25519

bazel build :tvg
INFO: Analyzed target //:tvg (94 packages loaded, 9585 targets configured).
INFO: Found 1 target...
ERROR: /home/marc/.cache/bazel/_bazel_marc/18ce4303a9175c4fc845f650c0a9ebd4/external/com_github_cloudflare_circl/dh/x25519/BUILD.bazel:3:11: GoCompilePkg external/com_github_cloudflare_circl/dh/x25519/x25519.a failed: (Exit 1): builder failed: error executing command (from target @com_github_cloudflare_circl//dh/x25519:x25519) bazel-out/k8-opt-exec-2B5CBBC6/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/com_github_cloudflare_circl/dh/x25519/curve.go -src ... (remaining 39 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/com_github_cloudflare_circl/dh/x25519/curve_amd64.s:7: #include: open external/com_github_cloudflare_circl/math/fp25519/fp_amd64.h: no such file or directory
compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/asm: exit status 1
Target //cmd/tvg:tvg failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.066s, Critical Path: 8.61s
INFO: 37 processes: 9 internal, 28 linux-sandbox.
FAILED: Build did NOT complete successfully

x448

bazel build :tvg
INFO: Analyzed target //:tvg (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/marc/.cache/bazel/_bazel_marc/18ce4303a9175c4fc845f650c0a9ebd4/external/com_github_cloudflare_circl/dh/x448/BUILD.bazel:3:11: GoCompilePkg external/com_github_cloudflare_circl/dh/x448/x448.a failed: (Exit 1): builder failed: error executing command (from target @com_github_cloudflare_circl//dh/x448:x448) bazel-out/k8-opt-exec-2B5CBBC6/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/com_github_cloudflare_circl/dh/x448/curve.go -src ... (remaining 39 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/com_github_cloudflare_circl/dh/x448/curve_amd64.s:7: #include: open external/com_github_cloudflare_circl/math/fp448/fp_amd64.h: no such file or directory
compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/asm: exit status 1
Target //cmd/tvg:tvg failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.283s, Critical Path: 0.09s
INFO: 5 processes: 5 internal.
FAILED: Build did NOT complete successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant