As you mentioned the minimum requirements at 
https://source.android.com/source/requirements#hardware-requirements
do recommend at least 16 6GB of RAM/swap.
That said, the more real RAM you have the better,
so using 1GB RAM and the rest swap is unlikely to be productive.

Also your 100 GB HDD is small.

Overall, I think your machine is underpowered for this.


On Wednesday, May 10, 2017 at 10:53:08 AM UTC-7, Ali Reza Barkhordari wrote:
>
> I'm using a copy of Ubuntu 16.04 LTS on a VPS having the following spec. 
> 1GB RAM / 100GB HDD. Official docs say it's recommended for the machine to 
> have 16GB RAM. I worked around this issue by creating a 15GB swap file.
>
> I tried many times to build, but every time it failed. Seems it have 
> trouble with Jack. The most recent log file (i.e. stdout) follows.
>
> including ./system/security/softkeymaster/Android.mk ...
>>
>> including ./system/vold/Android.mk ...
>>
>> including ./tools/external/fat32lib/Android.mk ...
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/with-local/classes.dex
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/libphonenumber-platform_intermediates/classes.jack
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/with-local/classes.dex
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/with-local/classes.dex
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/with-local/classes.dex
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/with-local/classes.dex
>>
>> Building with Jack: 
>>> out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex
>>
>>
>>> May 08, 2017 8:10:53 PM 
>>> com.android.sched.scheduler.MultiWorkersScheduleInstance$LongRunning dump
>>
>> SEVERE: Timeout detected during run:
>>
>> May 08, 2017 8:11:49 PM 
>>> com.android.sched.scheduler.MultiWorkersScheduleInstance$LongRunning dump
>>
>> SEVERE:   No thread. Wrong detection. Try to increase timeout with 
>>> 'sched.runner.thread.detector.long-running.timeout' property
>>
>> May 08, 2017 8:12:54 PM com.android.jack.CommandLine runJack
>>
>> SEVERE: Internal compiler error (version 1.1-mr2 'Brest' (175100 
>>> 000a2f91edbe638090dc577801ba49592229fd8b)):
>>
>> 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.Main.main(Main.java:73)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:606)
>>
>> at com.android.jack.launcher.Main.main(Main.java:94)
>>
>>
>>> 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.Main.main(Main.java:73)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:606)
>>
>> at com.android.jack.launcher.Main.main(Main.java:94)
>>
>>
>>> Internal compiler error (version 1.1-mr2 'Brest' (175100 
>>> 000a2f91edbe638090dc577801ba49592229fd8b)).
>>
>> Warning: This may have produced partial or corrupted output.
>>
>> build/core/java.mk:643: recipe for target 
>>> 'out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex'
>>>  
>>> failed
>>
>> make: *** 
>>> [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex]
>>>  
>>> Error 41
>>
>>
> How can I get the Jack to work or completely disable it?
>
> Thanks in advance. 
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to