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

tests don't pass #76

Closed
bmusin opened this issue Jan 10, 2018 · 11 comments
Closed

tests don't pass #76

bmusin opened this issue Jan 10, 2018 · 11 comments

Comments

@bmusin
Copy link
Contributor

bmusin commented Jan 10, 2018

What I did

Was going through quickstart.

I checked out source.
git clone https://github.com/abseil/abseil-cpp.git
Created directory.
mkdir Source
Entered it.
cd Source
Run tests.
bazel test absl/...:all

What happened

They didn't pass:

ERROR: /opt/bmusin/Source/abseil-cpp/absl/debugging/BUILD.bazel:129:1: no such package '@com_google_googletest//': Error downloading [https://github.com/google/googletest/archive/master.zip] to /home/bulat/.cache/bazel/_bazel_bulat/c26b823ebcf2d54bae8cd5b9b6d47d60/external/com_google_googletest/master.zip: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty and referenced by '//absl/debugging:leak_check_test'
ERROR: Analysis of target '//absl/debugging:leak_check_test' failed; build aborted: Loading failed
INFO: Elapsed time: 20.467s
FAILED: Build did NOT complete successfully (23 packages loaded)
ERROR: Couldn't start the build. Unable to run tests

(df3af0d)

My bazel

Build label: 0.9.0- (@non-git)
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 5 09:33:20 +49996 (1515570255200)
Build timestamp: 1515570255200
Build timestamp as int: 1515570255200

My JDK

openjdk-8-jdk/artful-updates,artful-security,now 8u151-b12-0ubuntu0.17.10.2 amd64 [installed]
openjdk-8-jdk-headless/artful-updates,artful-security,now 8u151-b12-0ubuntu0.17.10.2 amd64 [installed,automatic]
openjdk-8-jre/artful-updates,artful-security,now 8u151-b12-0ubuntu0.17.10.2 amd64 [installed]
openjdk-8-jre-headless/artful-updates,artful-security,now 8u151-b12-0ubuntu0.17.10.2 amd64 [installed,automatic]

Thanks.

@derekmauro
Copy link
Member

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?

@bmusin
Copy link
Contributor Author

bmusin commented Jan 10, 2018

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

@derekmauro
Copy link
Member

What does your WORKSPACE file look like?

@bmusin
Copy link
Contributor Author

bmusin commented Jan 10, 2018

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",
)

@derekmauro
Copy link
Member

derekmauro commented Jan 10, 2018

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.

@bmusin
Copy link
Contributor Author

bmusin commented Jan 10, 2018

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

@derekmauro
Copy link
Member

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

@bmusin
Copy link
Contributor Author

bmusin commented Jan 10, 2018

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

@derekmauro
Copy link
Member

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.

@bmusin
Copy link
Contributor Author

bmusin commented Jan 11, 2018

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

@derekmauro
Copy link
Member

Great to hear that!

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

No branches or pull requests

2 participants