Comments (11)
I think you are missing some steps in your "What I did" section, but from the error message you are getting java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
, I suspect Java doesn't have TLS configured correctly. Do you have the ca-certificates-java
package installed?
from abseil-cpp.
Yes, I have it installed. "20170930" version - in terms of Ubuntu's apt.
from abseil-cpp.
What does your WORKSPACE file look like?
from abseil-cpp.
workspace(name = "com_google_absl")
# GoogleTest/GoogleMock framework. Used by most unit-tests.
http_archive(
name = "com_google_googletest",
urls = ["https://github.com/google/googletest/archive/master.zip"],
strip_prefix = "googletest-master",
)
# CCTZ (Time-zone framework).
http_archive(
name = "com_googlesource_code_cctz",
urls = ["https://github.com/google/cctz/archive/master.zip"],
strip_prefix = "cctz-master",
)
# RE2 regular-expression framework. Used by some unit-tests.
http_archive(
name = "com_googlesource_code_re2",
urls = ["https://github.com/google/re2/archive/master.zip"],
strip_prefix = "re2-master",
)
from abseil-cpp.
This looks like the Abseil WORKSPACE file (from the workspace(name = "com_google_absl")
line). It doesn't look like you've created a WORKSPACE file for your personal project.
In the Quickstart see the section "Linking Your Code to the Abseil Repository". I don't think you've completely followed it.
If you want more help you'll need to post the exact commands you've run. Your "What I did" section is missing some steps.
from abseil-cpp.
@derekmauro, I just followed tutorial literally and run commands as was said in quickstart(just in /opt/bmusin, not ~ directory.) and stuck on bazel test absl/...:all line.
"Linking Your Code to the Abseil Repository" section is lower than the line where I encountered
problem.
from abseil-cpp.
Does it work if you try it in the ~ directory?
from abseil-cpp.
Yes, it gives:
......................................
ERROR: /home/bulat/Source/abseil-cpp/absl/time/BUILD.bazel:27:1: no such package '@com_googlesource_code_cctz//': Error downloading [https://github.com/google/cctz/archive/master.zip] to /home/bulat/.cache/bazel/_bazel_bulat/f1a44aa9b91431a3a92b0471d02f54b7/external/com_googlesource_code_cctz/master.zip: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty and referenced by '//absl/time:time'
ERROR: /home/bulat/Source/abseil-cpp/absl/time/BUILD.bazel:27:1: no such package '@com_googlesource_code_cctz//': Error downloading [https://github.com/google/cctz/archive/master.zip] to /home/bulat/.cache/bazel/_bazel_bulat/f1a44aa9b91431a3a92b0471d02f54b7/external/com_googlesource_code_cctz/master.zip: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty and referenced by '//absl/time:time'
ERROR: Analysis of target '//absl/time:time' failed; build aborted: Loading failed
INFO: Elapsed time: 21.766s
FAILED: Build did NOT complete successfully (23 packages loaded)
ERROR: Couldn't start the build. Unable to run tests
from abseil-cpp.
I'm pretty confident this isn't an Abseil issue. It sounds like something is wrong with the Java/TLS configuration on your system. You might want to try some of the suggestions in https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty, but I don't think we are going to be able to help you.
from abseil-cpp.
@derekmauro, tested today without updating the repo - tests passed.
from abseil-cpp.
Great to hear that!
from abseil-cpp.
Related Issues (20)
- [Bug]: btree_multiset memory leak with ASAN enabled HOT 6
- [Bug]: Uninitialized value in AnyInvocable.
- [Bug]: Build failure MSVC x86 with /arch:AVX2 HOT 4
- [Bug]: ABSL_ATTRIBUTE_NORETURN doesn't work in all contexts HOT 1
- [Bug]: Compilation issue on Windows 2022 with Ninja and CMake
- [Bug]: Can't link using riscv64 toolchain
- use vcpkg install absl dll lib link error HOT 1
- [Bug]: Sanitizer options may disagree between library and user leading to ODR violations
- Can't link to MSVC built abseil with clang/LLVM
- improvement : keep cmakelists clean, remove unneeded policy activations that are already active HOT 2
- [Bug]: container test_allocator should be skipped if testing is disabled HOT 3
- [Bug]: Build error during cmake quick start HOT 1
- [Bug]: 20240722.rc1 can not be built for android ndk r25b / r25c HOT 3
- [Bug]: Can't build C++20 project without .bazelrc HOT 2
- [Bug]: absl::Log Initialization in DLL Fails When Called Using ctypes on Windows
- [Bug]: Flag "-Wnon-virtual-dtor" is added to pkg-config files
- [Bug]: error while loading shared libraries: libabsl_cord_internal.so.2401.0.0: cannot open shared object file: No such file or directory
- [Bug]: asan failure in absl::Status::ToString() HOT 3
- [Bug]: Compilation regression in version update: "...incomplete type 'absl::container_internal::HashEq..." HOT 2
- Have Bazel rules for creating shared libraries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abseil-cpp.