[Android Q&A, Help & Troubleshooting] T_I:
Hi,

I've been compiling cyanogenmod for i9100 and titan for a while, but after my last build of februari 6th I keep failing to build anything with the same settings, sources,... I thought I killed something within my sources (probably have), but my build environment won't even build standard cyanogenmod images.

The error I get on all builds I try is:

Copying: /nas/cm12/android/system/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar
java -jar /nas/cm12/android/system/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem build/target/product/security/cm.x509.pem build/target/product/security/cm-devkey.x509.pem > /nas/cm12/android/system/out/target/product/gts210wifi/obj/PACKAGING/ota_keys_intermediates/keys
Aidl: framework <= frameworks/base/core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl
Aidl: framework <= frameworks/base/core/java/android/accounts/IAccountManager.aidl
Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
at java.lang.Class.getMethod0(Class.java:2866)
at java.lang.Class.getMethod(Class.java:1676)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
build/core/Makefile:930: recipe for target '/nas/cm12/android/system/out/target/product/gts210wifi/obj/PACKAGING/ota_keys_intermediates/keys' failed
make: *** [/nas/cm12/android/system/out/target/product/gts210wifi/obj/PACKAGING/ota_keys_intermediates/keys] Error 1
make: *** Deleting file '/nas/cm12/android/system/out/target/product/gts210wifi/obj/PACKAGING/ota_keys_intermediates/keys'
make: *** Waiting for unfinished jobs....
Aidl: framework <= frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl
nothing matches overlay file default_wallpaper.jpg, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxhdpi-v4
warning: string 'app_no_restricted_accounts' has no default translation.
warning: string 'description_direction_down' has no default translation.
warning: string 'description_direction_left' has no default translation.
warning: string 'description_direction_right' has no default translation.
warning: string 'description_direction_up' has no default translation.
warning: string 'description_target_camera' has no default translation.
warning: string 'description_target_search' has no default translation.
warning: string 'description_target_silent' has no default translation.
warning: string 'description_target_soundon' has no default translation.

what am I missing? The error states I'm missing bouncy castle libraries, but I've installed all packages I can find that should contain bouncy castle.

Current state of my build machine:

Clean install Debian Jessie (6-3-2016 updated)

No recommends/suggests auto install in apt

Build environment setup according this wiki

Added bouncy castle packages (apt-get install libbcmail-java libbcmail-java-gcj libbcpg-java libbcpg-java-gcj libbcprov-java libbcprov-java-gcj libbctsp-java libbctsp-java-gcj)

Thing I tried to get this working again:

Upgrade from Debian Jessie to Debian Stretch (major issues, forced me to reinstall laptop)

Install eclipse in the hope it would include correct libraries (nop)

Compile bouncycastle from scratch (compile from source 1.51-4 and install)

What am I missing to bet my build environment to build again? When a titan build succeeds I can check my own sources to get gts210wifi image build again, but now I'm sure it's my build environment. (else titan would build)