I can't build CM14.1.
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB, swap 2GB, Total 8GB
HGST 5400rpm 500GB HDD (Ubuntu Partition is 100GB)
Ubuntu 16.10 64-bit
This is my Computer Specification.
When i build CM13 it builds successfully, but if i build CM14.1 it fails.
This is the error log.
Please help.
[ 39% 13511/33813] Ensure Jack server is installed and started
Jack server already installed in "/home/penguin97/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/penguin97/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 39% 13524/33813] Building with Jack: /home/penguin97/android/system/...ommon/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
FAILED: /bin/bash /home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by [email protected])).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 39% 13524/33813] Building with Jack: /home/penguin97/android/system/.../JAVA_LIBRARIES/android-support-annotations_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/penguin97/android/system'
#### make failed to build some targets (04:36:53 (hh:mm:ss)) ####
Have you tried increasing the heap size as instructed?.
Beamed in by telepathy.
How can i increase the heap size?
shivadow said:
Have you tried increasing the heap size as instructed?.
Beamed in by telepathy.
Click to expand...
Click to collapse
How can i increase the heap size?
galaxys3kt said:
Try increasing heap size with java option '-Xmx<size>'.
Click to expand...
Click to collapse
Reading is a virtue...
Beamed in by telepathy.
Related
HTML:
Docs droiddoc: /home/android/CM10/out/target/common/docs/api-stubs
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
make: *** [/home/android/CM10/out/target/common/docs/api-stubs-timestamp] Error 45
[email protected]:/home/android/CM10# Error occurred during initialization of VM
I try to build CM on VPS (it have 1 gb ram and one core cpu - only for test ). Can i build succesful CM on this machine?
refresh
Hi guys. I downloaded the Android 6.0 source yesterday and tried to compile it today, but I'm getting the following error:
Code:
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/system-api-stubs
FAILED: /bin/bash out/target/common/docs/system-api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
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.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/api-stubs
FAILED: /bin/bash out/target/common/docs/api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
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.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
I don't know what to do about this error, as I'm new to compiling ROMs.
I'm compiling on Linux Mint using openjdk-8:
Code:
openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b15)
OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)
Can anyone help me fix this? If you need anymore info about my current set up, please let me know.
Switch to JDK 7
Error compiling Android Source using make sdk
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
htmlDir not a directory: frameworks/base/docs/html-ndk
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at com.google.doclava.TypeInfo.getTypeArgumentMapping(TypeInfo.java:478)
at com.google.doclava.ClassInfo.justMyInterfacesWithTypes(ClassInfo.java:343)
at com.google.doclava.ClassInfo.selfMethods(ClassInfo.java:707)
at com.google.doclava.ClassInfo.selfAttributes(ClassInfo.java:927)
at com.google.doclava.ClassInfo.init2(ClassInfo.java:192)
at com.google.doclava.Converter$1.made(Converter.java:294)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.Converter.initClass(Converter.java:152)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.Converter.initClass(Converter.java:119)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter$5.make(Converter.java:520)
at com.google.doclava.Converter$Cache.obtain(Converter.java:671)
at com.google.doclava.Converter.obtainType(Converter.java:507)
at com.google.doclava.Converter.access$600(Converter.java:46)
at com.google.doclava.Converter$3.make(Converter.java:484)
at com.google.doclava.Converter$Cache.obtain(Converter.java:671)
at com.google.doclava.Converter.obtainField(Converter.java:473)
at com.google.doclava.Converter.convertFields(Converter.java:464)
at com.google.doclava.Converter.initClass(Converter.java:119)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.PackageInfo.ordinaryClasses(PackageInfo.java:240)
at com.google.doclava.PackageInfo.isHidden(PackageInfo.java:90)
at com.google.doclava.PackageInfo.isHiddenOrRemoved(PackageInfo.java:138)
at com.google.doclava.Doclava.choosePackages(Doclava.java:1097)
at com.google.doclava.NavTree.writeNavTree(NavTree.java:30)
at com.google.doclava.Doclava.start(Doclava.java:363)
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.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
make: *** [out/target/common/docs/online-ndk-timestamp] Error 45
#### make failed to build some targets (29:28 (mm:ss)) ####
Java :
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-0ubuntu0.14.04.3)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
Iam using JDK 7 but still iam getting the below error .Any help/work around is appreciated
I changed the build computer and tried to build but the terminal shows this error.
Changed Computer
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB
HGST 5400rpm 500GB HDD
Ubuntu 14.04.5 LTS 64-bit
to
HP 15-ay012dx
Intel Core i5-6200U (2.3 GHz, Boost 2.8 GHz)
Intel HD Graphics 520 (300 MHz, Boost 1 GHz)
DDR4 RAM 4GB
HGST 5400rpm 1TB HDD
Ubuntu 14.04.5 LTS 64-bit
I didn't edit the code.
But when i build CM13 by Acer Computer it builds successfully, but on HP Computer it fails.
This is the error log.
make: *** [/home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
DroidDoc took 25 sec. to write docs to /home/penguin97/android/system/out/target/common/docs/api-stubs
make: Leaving directory `/home/penguin97/android/system'
#### make failed to build some targets (03:33:38 (hh:mm:ss)) ####
Please help.
galaxys3kt said:
I changed the build computer and tried to build but the terminal shows this error.
Changed Computer
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB
HGST 5400rpm 500GB HDD
Ubuntu 14.04.5 LTS 64-bit
to
HP 15-ay012dx
Intel Core i5-6200U (2.3 GHz, Boost 2.8 GHz)
Intel HD Graphics 520 (300 MHz, Boost 1 GHz)
DDR4 RAM 4GB
HGST 5400rpm 1TB HDD
Ubuntu 14.04.5 LTS 64-bit
I didn't edit the code.
But when i build CM13 by Acer Computer it builds successfully, but on HP Computer it fails.
This is the error log.
make: *** [/home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
DroidDoc took 25 sec. to write docs to /home/penguin97/android/system/out/target/common/docs/api-stubs
make: Leaving directory `/home/penguin97/android/system'
#### make failed to build some targets (03:33:38 (hh:mm:ss)) ####
Please help.
Click to expand...
Click to collapse
Dou you have enough storage space to compile? ~100gb partition
rpdroky said:
Dou you have enough storage space to compile? ~100gb partition
Click to expand...
Click to collapse
Yes.
I have 100GB Partiton for Ubuntu.
galaxys3kt said:
Yes.
I have 100GB Partiton for Ubuntu.
Click to expand...
Click to collapse
Run this in yre terminal
Code:
sudo apt-get install -y bison ccache phablet-tools build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
And make sure you have a 4GB swap partition because 8GB RAM is recommended in most cases for building
I am trying to compile Cyanogenmod 13 (for Galaxy Nexus) but the new Jack server won't start.
I get as far as this then it hangs and eventually fails.
Code:
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/buildbot/android/system/out/host/linux-x86/framework/jack-launcher.jar -cp /home/buildbot/android/system/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
The failure message is
Code:
/home/buildbot/android/system/out/host/linux-x86/bin/jack: line 131: 9050 Killed $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
ERROR: Cannot launch Jack server
make: *** [/home/buildbot/android/system/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41
make: Leaving directory `/home/buildbot/android/system'
#### make failed to build some targets (11:27 (mm:ss)) ####
The ~/.jack file has 777
Code:
[email protected] ~/android/system$ ls -l ~/.jack
-rwxrwxrwx 1 buildbot buildbot 283 Sep 22 03:19 /home/buildbot/.jack
2.5GB seems quite a large minimum heap and I only have 3GB assigned to this VM.
Before running brunch I did
Code:
export DEFAULT_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -Xms1024m -XX:+TieredCompilation "
but as you can see from above that had no effect.
How do I change the memory settings (Xms and Xmx)?
I haven't worked out how to change the memory settings yet but adding 4GB of swap allowed me to compile successfully.
I'm not sure how much of the swap was actually used but I had the disk space available so I didn't make the effort to monitor it or find out the minimum.
Hello, I have more than three weeks with this problem.
I want to compile AOSP Android 6.0.0_r1 (openjdk-7jdk) for a LG K8 2017 phone (LGX240F) taking the free source code from LG.
I have followed all the existing tutorials in this forum I currently use Azure a computer with Ubuntu Server 16.04, 16GB Ram and 4 Core processor.
The problem that arises is that after 30 minutes elapsed sometimes 1 hour of compilation I receive the error 41 I have searched for different solutions and none of them has worked for me.
Code:
Last login: Wed Oct 31 14:00:30 2018 from 190.62.244.75
[email protected]:~$ screen -rx
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/am_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/appops_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/appwidget_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/bu_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/bmgr_intermediates/with-local/classes.dex
ERROR: /mnt/Storage/Android6/frameworks/base/test-runner/src/android/test/mock/MockPackageManager.java:886: The method checkAPKSignatures(String) of type MockPackageManager must override or implement a supertype method
build/core/java.mk:643: recipe for target 'out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex' failed
make: *** [out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:10:35 (hh:mm:ss)) ####
The server-jack when starting it with the following command "./jack-admin start-server" would give me a message that the variable JACK_JAR was not declared that solves it with this code.
Code:
JACK_VM_COMMAND = "java -Dfile.encoding = UTF-8 -Xmx8g -XX: + TieredCompilation -jar prebuilts / sdk / tools / jack-launcher.jar" JACK_JAR = "prebuilts / sdk / tools / jack.jar" ./prebuilts/ sdk / tools / jack-admin start-server
I think that the problem is due to the server-jack when seeing the status of the server immediately after having started it works correctly but after about 3 minutes it shows this error.
Code:
Getting statistic from background server
ERROR: No Jack server running
I hope you can help me with this problem because I do not know what else to do.
You may be missing some dependencies needed for building, (link) which ones/tutorials have you installed or used
Sent from my Moto E (4) Plus using Tapatalk
As I'm from Azure this is the one I liked the most but they are identical to the others I've seen there, another one that is very complete is Digital Ocean but with all I got the same error I tried Ubuntu 16.04, 14.04 and nothing always the same .
Code:
https://forum.xda-developers.com/chef-central/android/guide-how-to-build-rom-microsoft-azure-t3648669
https://www.digitalocean.com/community/tutorials/how-to-build-android-roms-on-ubuntu-16-04
https://forum.xda-developers.com/chef-central/android/guide-how-to-setup-ubuntu-16-04-lts-t3363669
https://forum.xda-developers.com/showthread.php?t=2455005