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

[Bug]: Error when building libzip on RHEL9 #3100

Open
The-Tomas opened this issue Nov 2, 2024 · 0 comments
Open

[Bug]: Error when building libzip on RHEL9 #3100

The-Tomas opened this issue Nov 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@The-Tomas
Copy link

The-Tomas commented Nov 2, 2024

What happened?

ERROR: /root/.cache/bazel/_bazel_root/cde2aeca1d7384ca4c03c1e1ec3a9c30/external/libzip~/BUILD:19:6: output 'external/libzip~/libzip/lib/libzip.a' was not created
ERROR: /root/.cache/bazel/_bazel_root/cde2aeca1d7384ca4c03c1e1ec3a9c30/external/libzip~/BUILD:19:6: Foreign Cc - CMake: Building libzip failed: not all outputs were created or valid
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 331.860s, Critical Path: 100.43s
INFO: 1685 processes: 460 internal, 1225 linux-sandbox.
ERROR: Build did NOT complete successfully

Version

Development (host) and target OS/architectures: RHEL9

Output of bazel --version: bazel 7.1.1

Version of relevant rules from the WORKSPACE or MODULE.bazel file:

bazel_dep(name = "rules_foreign_cc", version = "0.12.0")
bazel_dep(name = "libzip", version = "1.10.1")

Language(s) and/or frameworks involved:

How to reproduce

$ bazel build  @libzip
INFO: Analyzed target @@libzip~//:libzip (0 packages loaded, 0 targets configured).
ERROR: /root/.cache/bazel/_bazel_root/cde2aeca1d7384ca4c03c1e1ec3a9c30/external/libzip~/BUILD:19:6: output 'external/libzip~/libzip/lib/libzip.a' was not created
ERROR: /root/.cache/bazel/_bazel_root/cde2aeca1d7384ca4c03c1e1ec3a9c30/external/libzip~/BUILD:19:6: Foreign Cc - CMake: Building libzip failed: not all outputs were created or valid
Target @@libzip~//:libzip failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.764s, Critical Path: 5.37s
INFO: 2 processes: 1 internal, 1 linux-sandbox.
ERROR: Build did NOT complete successfully

Any other information?

libzip.a seems to have been built and resides in the following locations:

/root/.cache/bazel/_bazel_root/cde2aeca1d7384ca4c03c1e1ec3a9c30/sandbox/sandbox_stash/CcCmakeMakeRule/171/execroot/_main/bazel-out/k8-fastbuild/bin/external/libzip~/libzip.build_tmpdir/lib/libzip.a
/root/.cache/bazel/_bazel_root/cde2aeca1d7384ca4c03c1e1ec3a9c30/sandbox/sandbox_stash/CcCmakeMakeRule/171/execroot/_main/bazel-out/k8-fastbuild/bin/external/libzip~/libzip.build_tmpdir/lib/libzip.a

@The-Tomas The-Tomas added the bug Something isn't working label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant