Code Monkey home page Code Monkey logo

Comments (11)

derekmauro avatar derekmauro commented on May 18, 2024

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.

bmusin avatar bmusin commented on May 18, 2024

Yes, I have it installed. "20170930" version - in terms of Ubuntu's apt.

from abseil-cpp.

derekmauro avatar derekmauro commented on May 18, 2024

What does your WORKSPACE file look like?

from abseil-cpp.

bmusin avatar bmusin commented on May 18, 2024
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.

derekmauro avatar derekmauro commented on May 18, 2024

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.

bmusin avatar bmusin commented on May 18, 2024

@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.

derekmauro avatar derekmauro commented on May 18, 2024

Does it work if you try it in the ~ directory?

from abseil-cpp.

bmusin avatar bmusin commented on May 18, 2024

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.

derekmauro avatar derekmauro commented on May 18, 2024

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.

bmusin avatar bmusin commented on May 18, 2024

@derekmauro, tested today without updating the repo - tests passed.

from abseil-cpp.

derekmauro avatar derekmauro commented on May 18, 2024

Great to hear that!

from abseil-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.