Skip to content

Main branch not buildable after checkout #2246

@hendrikebbers

Description

@hendrikebbers

Current main branch can not be build on my machine. It looks like a lot of tests are failing based on java.io.FileNotFoundException. Sadly the output does not give me a hint about the problem.

I'm running Java 21:

$ java -version
openjdk version "25.0.1" 2025-10-21 LTS
OpenJDK Runtime Environment Temurin-25.0.1+8 (build 25.0.1+8-LTS)
OpenJDK 64-Bit Server VM Temurin-25.0.1+8 (build 25.0.1+8-LTS, mixed mode, sharing)

Gradle log:

$  ./gradlew clean build

> Configure project :
Environment setup:
Looking for JDK ENV 'BC_JDK8' found  null
Looking for JDK ENV 'BC_JDK11' found  null
Looking for JDK ENV 'BC_JDK17' found  null
Looking for JDK ENV 'BC_JDK21' found  null
Looking for JDK ENV 'BC_JDK25' found  null

> Task :core:compileJava
...... Removed all the compile output



> Task :core:test

AllTests > org.bouncycastle.pqc.math.ntru.test.HPSPolynomialTest.testR2Inv FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HPSPolynomialTest.testS3Inv FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HPSPolynomialTest.testRqInv FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HPSPolynomialTest.testLift FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HRSSPolynomialTest.testR2Inv FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HRSSPolynomialTest.testS3Inv FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HRSSPolynomialTest.testRqInv FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.HRSSPolynomialTest.testLift FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testS3ToBytes FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testRqSumZeroFromBytes FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testS3Mul FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testRqMul FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testSqMul FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testSqToBytes FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testS3FromBytes FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testMod3PhiN FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testModQPhiN FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testSqFromBytes FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testTrinaryZqToZ3 FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testRqSumZeroToBytes FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testRqToS3 FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.math.ntru.test.PolynomialTest.testZ3ToZq FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.lms.HSSTests.testVectorsFromReference FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.lms.HSSTests.testHSSVector_1 FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.lms.HSSTests.testHSSVector_2 FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.lms.HSSTests.testVectorsFromReference_Expanded FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.crypto.test.SimpleTestTest.testCrypto FAILED
    junit.framework.AssertionFailedError at null:-1

AllTests > org.bouncycastle.crypto.test.HPKETestVectors.testVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SphincsPlusTest.testVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.CMCEVectorTest.testVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.FrodoVectorTest.testVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SABERVectorTest.testVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.NTRUTest.testPQCgenKAT_kem FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.FalconTest.testVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLKEMTest.testKeyGenCombinedVectorSet FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLKEMTest.testEncapDecapCombinedVectorSet FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLKEMTest.testEncapDecap_decapsulation FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLKEMTest.testModulus FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLKEMTest.testKeyGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLKEMTest.testEncapDecap_encapsulation FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.CrystalsDilithiumTest.testKeyGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.CrystalsDilithiumTest.testSigGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.CrystalsDilithiumTest.testSigVer FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testKeyGenCombinedVectorSet FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testSigVerCombinedVectorSet FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testMLDSARejection FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testKeyGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testSigGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testSigVer FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MLDSATest.testSigGenCombinedVectorSet FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.NTRULPRimeTest.testKEM FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SNTRUPrimeTest.testKEM FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.BIKETest.BIKE Test FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.HQCTest.HQC Test FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SLHDSATest.testSigGenSingleFile FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SLHDSATest.testSigVerSingleFile FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SLHDSATest.testKeyGenSingleFile FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SLHDSATest.testKeyGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SLHDSATest.testSigGen FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SLHDSATest.testSigVer FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.MayoTest.testTestVectors FAILED
    java.io.FileNotFoundException at null:-1

AllTests > org.bouncycastle.pqc.crypto.test.SnovaTest.testTestVectors FAILED
    java.io.FileNotFoundException at null:-1

302 tests completed, 62 failed

> Task :core:test FAILED

[Incubating] Problems report is available at: file:///Users/hendrikebbers/git/bouncycastle/bc-java/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:test'.
> There were failing tests. See the report at: file:///Users/hendrikebbers/git/bouncycastle/bc-java/core/build/reports/tests/test/index.html

* Try:
> Run with --scan to generate a Build Scan (Powered by Develocity).

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.1.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1m 33s
23 actionable tasks: 18 executed, 5 up-to-date

Metadata

Metadata

Assignees

Labels

support requestCommunity assistance requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions