[Android Q&A, Help & Troubleshooting] Carlyle_f:
hi, im building a rom, which was previously able to build without any problems on ubuntu 14.04 LTS.

my problem is that when building with jack, i get the following error

target SharedLib: lib7z (/home/carlyle/rr/out/target/product/jagnm/obj/SHARED_LIBRARIES/lib7z_intermediates/LINKED/lib7z.so)
target SharedLib: libblas (/home/carlyle/rr/out/target/product/jagnm/obj/SHARED_LIBRARIES/libblas_intermediates/LINKED/libblas.so)
java.lang.AssertionError
at com.android.sched.scheduler.MultiWorkersScheduleInstance.process(MultiWorkersScheduleInstance.java:490)
at com.android.jack.Jack.run(Jack.java:597)
at com.android.jack.Jack.checkAndRun(Jack.java:367)
at com.android.jack.CommandLine.runJack(CommandLine.java:66)
at com.android.jack.server.ServerTaskInsideVm.run(ServerTaskInsideVm.java:94)
at com.android.jack.server.JackSimpleServer$JackRun.handle(JackSimpleServer.java:427)
at com.android.jack.server.JackSimpleServer$JackRouter.handle(JackSimpleServer.java:311)
at org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)
at org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Internal compiler error (version 1.1-mr2 'Brest' (175100 000a2f91edbe638090dc577801ba49592229fd8b)).
Warning: This may have produced partial or corrupted output.
make: *** [/home/carlyle/rr/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/carlyle/rr'

and building without jack gives me

ProGuard, version 5.1
Reading program jar [/home/carlyle/android/RR/out/target/common/obj/APPS/SystemUI_intermediates/classes.jar]
Reading library jar [/home/carlyle/android/RR/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Preparing output jar [/home/carlyle/android/RR/out/target/common/obj/APPS/Settings_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/carlyle/android/RR/out/target/common/obj/APPS/Settings_intermediates/classes.jar]
Reading library jar [/home/carlyle/android/RR/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar]
Reading library jar [/home/carlyle/android/RR/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/carlyle/android/RR/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Reading library jar [/home/carlyle/android/RR/out/target/common/obj/JAVA_LIBRARIES/org.dirtyunicorns.utils_intermediates/classes.jar]
Reading library jar [/home/carlyle/android/RR/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar]
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$style
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$styleable
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R$style
Warning: android.support.v7.widget.CardView: can't find referenced class android.support.v7.cardview.R
Warning: android.support.v7.widget.RoundRectDrawableWithShadow: can't find referenced class android.support.v7.cardview.R$color
Warning: android.support.v7.widget.RoundRectDrawableWithShadow: can't find referenced class android.support.v7.cardview.R$color
Warning: android.support.v7.widget.RoundRectDrawableWithShadow: can't find referenced class android.support.v7.cardview.R$dimen
Warning: android.support.v7.widget.RoundRectDrawableWithShadow: can't find referenced class android.support.v7.cardview.R$color
Warning: android.support.v7.widget.RoundRectDrawableWithShadow: can't find referenced class android.support.v7.cardview.R$dimen
Warning: android.support.v7.widget.RoundRectDrawableWithShadow: can't find referenced class android.support.v7.cardview.R
Copying: /home/carlyle/android/RR/out/target/common/obj/APPS/Trebuchet_intermediates/classes.dex
Copying: /home/carlyle/android/RR/out/target/common/obj/APPS/Bluetooth_intermediates/noproguard.classes.jar
Copying: /home/carlyle/android/RR/out/target/common/obj/APPS/Browser_intermediates/classes.jar
Copying: /home/carlyle/android/RR/out/target/common/obj/APPS/CMFileManager_intermediates/classes-jarjar.jar
Copying: /home/carlyle/android/RR/out/target/common/obj/APPS/Calendar_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/carlyle/android/RR/out/target/common/obj/APPS/DeskClock_intermediates/emma_out/lib/classes-jarjar.jar
target Dex: Eleven
Warning: there were 22 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Error: Please correct the above warnings first.
make: *** [/home/carlyle/android/RR/out/target/common/obj/APPS/SystemUI_intermediates/proguard.classes.jar] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/carlyle/android/RR'

Note that both of these outcomes remain the same without fail, i have deleted my repo completely and started from scratch several times.

Google doesn't help much with these errors and the ones ive found on xda are not answered.

I have tried compiling with both OpenJDK and OracleJDK to no avail. tried increasing swap (I'm at 30GB swap already).

ANY HELP WILL BE APPRECIATED.

thanks