java.lang.InternalError: internal error: SHA-1 not available.

GitHub | AlvinChen13 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Fail to build bazel from source

    GitHub | 6 months ago | AlvinChen13
    java.lang.InternalError: internal error: SHA-1 not available.

    1 unregistered visitors

    Root Cause Analysis

    1. java.security.NoSuchAlgorithmException

      SHA MessageDigest not available

      at sun.security.jca.GetInstance.getInstance()
    2. Java RT
      UUID.randomUUID
      1. sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
      2. java.security.Security.getImpl(Security.java:695)
      3. java.security.MessageDigest.getInstance(MessageDigest.java:167)
      4. sun.security.provider.SecureRandom.init(SecureRandom.java:106)
      5. sun.security.provider.SecureRandom.<init>(SecureRandom.java:79)
      6. java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:198)
      7. java.security.SecureRandom.<init>(SecureRandom.java:162)
      8. java.util.UUID$Holder.<clinit>(UUID.java:96)
      9. java.util.UUID.randomUUID(UUID.java:142)
      9 frames
    3. com.google.devtools
      BazelMain.main
      1. com.google.devtools.build.lib.runtime.BlazeRuntime$Builder.build(BlazeRuntime.java:1030)
      2. com.google.devtools.build.lib.runtime.BlazeRuntime.newRuntime(BlazeRuntime.java:931)
      3. com.google.devtools.build.lib.runtime.BlazeRuntime.batchMain(BlazeRuntime.java:689)
      4. com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:510)
      5. com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:56)
      5 frames