webminer
webminer copied to clipboard
Could not compile on Ubuntu
ubuntu@box:~/webminer$ ../bazelisk-linux-amd64 build -c opt webminer
INFO: Analyzed target //:webminer (101 packages loaded, 14567 targets configured).
ERROR: /home/ubuntu/webminer/BUILD.bazel:299:6: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-opt/bin]cpp_http/include : Failed to resolve relative path httplib.h inside TreeArtifact /home/ubuntu/.cache/bazel/_bazel_ubuntu/e7a09204f0199ae94960d400ee33d6b2/execroot/_main/bazel-out/k8-opt/bin/cpp_http/include. The associated file is either missing or is an invalid symlink.
ERROR: /home/ubuntu/webminer/BUILD.bazel:299:6: Foreign Cc - CMake: Building cpp_http failed: not all outputs were created or valid
Target //:webminer failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.137s, Critical Path: 0.98s
INFO: 4 processes: 3 internal, 1 linux-sandbox.
ERROR: Build did NOT complete successfully
hmm, I haven't encountered that. Try gocash in the meantime?
https://github.com/maaku/gocash
Which version of bazelisk is this?
I attempted installation of bazel in two ways, one was from what their docs recommend of getting the compiled bazelisk binary from their github releases page, and the other was with sudo apt install bazel-bootstrap.
Both of these paths amounted to the same error. I don't recall the specifics of the first versus the second (for instance that binary is the bazelisk binary, did it amount to invoking bazel on the command line? not sure) but I believe the final result for each was attempting to compile the project with bazel 7.0.0, and encountering this error.
Ok, something in the definition of build rules for the header-only library cpp-httplib broke between bazel 5.4 and 7.0.
Unfortunately this repository is without a maintainer. I can't spend any more time than I already have looking into it. Patches are welcome though. You should be able to get it to build by downloading an older version of bezel and explicitly using that, or just use gocash, which is maintained.