[Android Software/Hacking General [Developers Only]] siseam:
Ah, sorry, I had no time to answer again.

Ignore the previous error, this one is the real one:

target Java: telephony-common (/android_sources/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes)
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:47: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:68: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:85: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:102: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:128: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings settings = pSetMan.getSettings(context.getPackageName(), Process.myUid());
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:146: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:163: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:180: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:197: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:214: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings pSet = pSetMan.getSettings(packageName, uid);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:229: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings settings = pSetMan.getSettings(context.getPackageName(), Process.myUid());
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:245: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings settings = pSetMan.getSettings(context.getPackageName(), Process.myUid());
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:259: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings settings = pSetMan.getSettings(context.getPackageName(), Process.myUid());
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:297: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings settings = pSetMan.getSettings(context.getPackageName(), -1);
^
frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java:310: unreported exception android.privacy.PrivacyServiceDisconnectedException; must be caught or declared to be thrown
PrivacySettings settings = pSetMan.getSettings(context.getPackageName(), -1);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
15 errors
make: *** [/android_sources/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-full-debug.jar] Error 41

The stable cm10.1-opendroid branch works fine. I usually use "git diff" but "diff -rupN" produces the same error. Cleaning of the out folder doesn't help and yes all files are accounted for.

Maybe simply adding

throws PrivacyServiceDisconnectedException, PrivacyServiceInvalidException, PrivacyServiceException

to all those lines solves the issue but I didn't look further and I don't know these sources anyway.