yashsingh1/xdaforums huggingface dataset:
[Defy General] yodawg:
Is it the same procedure for a Defy+ (MB526) build?

A reboot isn't needed.

How about Quarx builds? Is there also a manager included? Do I need a ROM manager at all for the ROM to work?
[Defy General] Kayant:
It doesn't hurt to do it does it :p..... anyway all tutorials i have read said you should reboot so yh.....

Rom manager i think is needed by CM for it to build not really too sure but Epyslon3 told me himself that it's not needed i have builted about 10 or so times i can see that is true :D ..... For defy+ builds you need to edit your mainfest in the .repo folder in the folder you're using scroll down and edit it with gedit change it to ics-plus you will see a note on how to do it....
[Defy General] yodawg:
Now theres also a jelly bean branch, which doesnt differ that much from ics for now. What do i have to do to update my repo to jellybean without redownloading the whole thing? A simple "repo init -u git://github.com/Quarx2k/android.git -b jb" and "repo sync" in that ics directory? or does it mess up everything?
[Defy General] Kayant:
Of course you have to re-download everything it's a different source from ICS but it's about the same size 6GB but i don't know if there is a point in trying at the moment since neither quarx2k or Epyslon3 have actually build it yet but you can try however, you need to update the device tree for JB quarx2k has started working on it......

and don't do it in the same folder expect if you delete .repo folder first but you might still get errors so you might aswell make a different folder also it should be repo init -u git://github.com/Quarx2k/android.git -b jellybean. Good luck :D

use this as an additional guideline - http://xdaforums.com/showthread.php?p=28529222
[Defy General] brajesh.sharma87:
@Kayant: do u think a core2duo 2.0 ghz with 4 gb RAM can build? If yes, How much time will it take approximately.
[Defy General] hackergnome:
For me c2d 2ghz and 3gig ram took 5 hrs...(RAM at 1200mhz)

No background process...All resources to compiler...
[Defy General] shensuiren:
I want to mod a rom based on cm9, but I did not decide to use whose code:rolleyes:
[Defy General] Kayant:
Yh u should definently try it your system is more powerful than both mine and nogoodusername's... It takes me also about 4 hrs so it might be a bit less for u
[Defy General] 57op:
Awesome How-To ;) Maybe you should add packages needed in order to compile without error the rom.

However, I tried to build cm from source a month ago with my old pc. It took about 18 hours and it failed though. LOL
[Defy General] Kayant:
What packages???

Edit - I think I see what u mean I will update this thread in a couple of days
[Defy General] Kayant:
Updated for JB and added AOKP

Enjoy building from source ^_^
[Defy General] oSandmaNo:
Woo how come this thread never showed in search results :D
[Defy General] hackergnome:
how big is source?
[Defy General] Kayant:
About 4GB or so.... When you start compiling it requires like 25gb or more for one build.
[Defy General] Kayant:
It had a different name :p
[Defy General] bharaththeunique:
Awesome guide.....fr starters like me....this is gonna be my challenge fr next hols.....I will try aosp gb.....must be the lightest one....!!!!....thnx
[Defy General] Kayant:
Not too sure about that.... you can try but I bet it won't boot cause I think must of their changes need a custom kernel and our device has a locked bootloader however some of their changes were merged into cm some time ago and there is new we might be able to use custom kernel in the near future..... It's time I get another defy :).
[Defy General] Maxxxxxxxxxx:
whats the download size of Quarx jellybean repo (just the download size)
[Defy General] labsin:
Its in the OP.
[Defy General] brajesh.sharma87:
About 6gb.
[Defy General] yodawg:
for me it was 13gb :o
[Defy General] espaciosalter20:
maybe now, with custom kernel loaded via 2nd-boot, do you think it might be possible to use linaro toolchain?
[Defy General] UEman:
Linaro doesn't bring such a performance boost plus it is buggy.

The benchmark app which showed the linaro performance was optimised for linaro. Don't expect too much from it.
[Defy General] Sivaguru:
Help

I started compiling CM10 using the guide.

Now its stopped at 99%. Been waiting for more than 1 hour. I got a popup saying I am running out of space.

Screenshots attached.
[Defy General] labsin:
Then you're propably running out of space...

If you're using a virtual enviroment, try giving it more space.

For wubi install, just the same.

You can also uninstall unneded apps. Search online for a list.
[Defy General] Kayant:
Great job so far ^_^ btw you don't need a powerful pc to run 64 bit consider upgrading it will make your life easier..... all you need is 512mb ram :)
[Defy General] Sivaguru:
Help

error: RPC failed; result=18, HTTP code = 200 MiB | 309 KiB/s

It gives me this error. Can any1 help.

Screenshot attached
[Defy General] Kayant:
git config --global http.postBuffer 524288000 and repo sync again.....
[Defy General] Sivaguru:
Error while compiling

sivaguru@ubuntu:~/cm$ source build/envsetup.sh && brunch mb526

including device/generic/armv7-a-neon/vendorsetup.sh

including device/generic/armv7-a/vendorsetup.sh

including device/moto/jordan-common/vendorsetup.sh

including device/moto/mb520/vendorsetup.sh

including device/moto/mb525/vendorsetup.sh

including device/moto/mb526/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including vendor/cm/vendorsetup.sh

Looking for dependencies

Dependencies file not found, bailing out.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.1.2

TARGET_PRODUCT=cm_mb526

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-2.6.32-38-generic-x86_64-with-Ubuntu-10.04-lucid

HOST_BUILD_TYPE=release

BUILD_ID=JZO54K

OUT_DIR=/home/sivaguru/cm/out

============================================

hardware/ti/wlan/wl1271/wpa_supplicant_lib/Android.mk:47: external/wpa_supplicant_6/wpa_supplicant/.config: No such file or directory

find: `src': No such file or directory

build/core/Makefile:39: warning: overriding commands for target `/home/sivaguru/cm/out/target/product/mb526/system/etc/mkshrc'

build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/sivaguru/cm/out/target/product/mb526/system/etc/mkshrc'

PRODUCT_COPY_FILES frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml ignored.

build/core/Makefile:39: warning: overriding commands for target `/home/sivaguru/cm/out/target/product/mb526/system/etc/wifi/tiwlan.ini'

build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/sivaguru/cm/out/target/product/mb526/system/etc/wifi/tiwlan.ini'

build/core/Makefile:39: warning: overriding commands for target `/home/sivaguru/cm/out/target/product/mb526/system/etc/wifi/wpa_supplicant.conf'

build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/sivaguru/cm/out/target/product/mb526/system/etc/wifi/wpa_supplicant.conf'

build/core/Makefile:39: warning: overriding commands for target `/home/sivaguru/cm/out/target/product/mb526/root/ueventd.rc'

system/core/rootdir/Android.mk:49: warning: ignoring old commands for target `/home/sivaguru/cm/out/target/product/mb526/root/ueventd.rc'

build/core/Makefile:39: warning: overriding commands for target `/home/sivaguru/cm/out/target/product/mb526/root/sbin/adbd'

build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/sivaguru/cm/out/target/product/mb526/root/sbin/adbd'

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.

PRODUCT_COPY_FILES system/core/rootdir/init.usb.rc:root/init.usb.rc ignored.

No private recovery resources for TARGET_DEVICE mb526

make: *** No rule to make target `external/wpa_supplicant_6/wpa_supplicant/.config'. Stop.

?? Help

http://pastebin.com/TzzytBcx
[Defy General] Kayant:
Yes
[Defy General] Sivaguru:
http://pastebin.com/TzzytBcx

I did that Kayant.

I got a error now. Just edited my previous post.

(let me google in between)
[Defy General] Blechd0se:
Hello,

I am getting the same error like Sivaguru, however since Quarx started to make just one build for defy and defy+ do i have to change this command to something else?

?

Would like to build with a costum kernel. I appreciate any help.
[Defy General] Kayant:
Search the thread in fact the answer is right above........
[Defy General] Kayant:
It's the same command as before......

For custom kernel there are many guides on XDA for that.
[Defy General] Sivaguru:
Found something over here,

http://xdaforums.com/showthread.php?p=29743671

Post #49
[Defy General] Sivaguru:
Copied the .config file from that post & placed in the respective folder.

Building in progress now

EDIT: Got a error now. Again something in wpa_supplicant

EDIT2: Found the solution here

http://pastebin.com/cQ2PXHXr
[Defy General] labsin:
Can you add that you best add your wpa_supplicant fork in the manifest of CM10? (replace CyanogenMod/android_external_wpa_supplicant_6 with Kayant/android_external_wpa_supplicant_6 in .repo/manifests/default.xml; git add *; git commit; write something ...)

Tested and worked on Ubuntu 12.10. With an updated system (was building on 12.04 and upgraded to 12.10) so don't know if you need to do anything special with a clean install.
[Defy General] Kayant:
I would but it has been suggested i don't which I agree with has one can easily search and find their answer... I will just add it as a hint on the OP ;)

Spoon feeding doesn't help anyone.
[Defy General] labsin:
It's very clear now :D

And I also gave an extra hint that people can search for.

I could also find it so it is not necessary. Was just for the sake of being complete.
[Defy General] crancker:
Thanks

Thanks for the guide :) Maybe when I will have some time I'll try to compile a rom and test it with multiboot :) I hope my phone will survive it :D
[Defy General] ldiomedi:
cm10 build

Hi. Im havin this error:

home/ldiomedi/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/crypto/pem/pem_pk8.o: in function do_pk8pkey:external/openssl/crypto/pem/pem_pk8.c:140: error: undefined reference to 'i2d_PKCS8_bio'
/home/ldiomedi/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/crypto/pem/pem_pk8.o: in function do_pk8pkey:external/openssl/crypto/pem/pem_pk8.c:145: error: undefined reference to 'i2d_PKCS8_PRIV_KEY_INFO_bio'
/home/ldiomedi/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/crypto/pem/pem_pkey.o: in function PEM_read_bio_PrivateKey:external/openssl/crypto/pem/pem_pkey.c:113: error: undefined reference to 'PKCS8_decrypt'
/home/ldiomedi/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/crypto/pem/pem_seal.o: in function PEM_SealInit:external/openssl/crypto/pem/pem_seal.c:86: error: undefined reference to 'RSA_size'
/home/ldiomedi/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/crypto/pem/pem_seal.o: in function PEM_SealInit:external/openssl/crypto/pem/pem_seal.c:108: error: undefined reference to 'RSA_size'
/home/ldiomedi/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/crypto/pem/pem_seal.o: in function PEM_SealFinal:external/openssl/crypto/pem/pem_seal.c:157: error: undefined reference to 'RSA_size'
collect2: ld returned 1 exit status
make: *** [/home/ldiomedi/cm/out/target/product/mb526/obj/SHARED_LIBRARIES/libcrypto_intermediates/LINKED/libcrypto.so] Error 1
make: *** Se espera a que terminen otras tareas....

the log is more long than that. just paste the lasts lines. But all are about something with libcrypto_intermediates. What that mint? some missing dependencie? btw, Im building cm10 at this moment just for learn a little... Thanks for any suggestion..
[Defy General] labsin:
Your java version?
[Defy General] Kayant:
Also check if your missing any dependences as from the search I did it looks like it could be that and also like labsin suggested make sure you are using sun java 6 jdk
[Defy General] Sivaguru:
LD [M] /home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/overclock_defy.o

/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/cpufreq_stats.o: In function `cpufreq_stats_init':

/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/cpufreq_stats.c:354: multiple definition of `init_module'

/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/overclock.o:/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/overclock.c:655: first defined here

/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/cpufreq_stats.o: In function `cpufreq_stats_exit':

/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/cpufreq_stats.c:379: multiple definition of `cleanup_module'

/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/overclock.o:/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/overclock.c:716: first defined here

make[6]: *** [/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock/overclock_defy.o] Error 1

make[5]: *** [/home/sivaguru/cm/device/moto/jordan-common/modules/sources/overclock] Error 2

make[4]: *** [_module_/home/sivaguru/cm/device/moto/jordan-common/modules/sources] Error 2

make[3]: *** [sub-make] Error 2

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/sivaguru/cm/out/target/product/mb526/obj/KERNEL_OBJ'

make[1]: *** [modules] Error 2

make[1]: Leaving directory `/home/sivaguru/cm/device/moto/jordan-common/modules/sources'

make: *** [ext_modules] Error 2

make: *** Waiting for unfinished jobs....

libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko

sivaguru@sivaguru:~/cm$

Got this error while compiling
[Defy General] Kayant:
Am getting the same error we just have to wait until Sir Quarx fixes it.
[Defy General] ldiomedi:
I have perhaps a stupid question. It's possible to compile some parts and not the entire Rom? Stuff like services.jar, framework-res.apk, android-policy.jar?

Enviado desde mi MB526 usando Tapatalk 2

---------- Post added at 08:51 PM ---------- Previous post was at 08:49 PM ----------

I'm not at home right now. Will check it later and I'll let u know

Enviado desde mi MB526 usando Tapatalk 2
[Defy General] brajesh.sharma87:
AFAIK, its possible but only after a complete build and then u can build specific part.

http://wiki.cyanogenmod.com/wiki/Howto:_Speed_up_building#Using_mmm_to_rebuild_only_valid_parts
[Defy General] labsin:
Yes, I do it often. You need to build the rom ones to get the out direction with the appropriate files. Afterwards you can open a terminal, run:

source build/envsetup.sh && lunch cm_mb526-userdebug;

You could place that in a .sh file inside ~/bin (with #!/bin/sh appended) and make it executeable. Then you can use the code below to run it (called initCM.sh fi)

source inintCM.sh

After the envsetup and the lunch you can run mm to build the package you're in and mmm [dir/to/package] is quite obvious.
[Defy General] Sivaguru:
https://github.com/Quarx2k/android_...jb_2ndboot/modules/sources/overclock/Makefile

Sir Quarx has fixed something related to overclock_defy.o
[Defy General] Sivaguru:
Compiled CM10:)

So today I completed compiling CM10 successfully :victory:

Thank you

Sir Quarx

Kayant (for the guide)

And nogoodusername & Brajesh sharma for helping me through PM:)

Time to dig in more:)
[Defy General] ldiomedi:
About my last error compiling, I updated java to 6.0.37 and the error goes a way. Thanks for point it me. But now Im having an other one. here's part of the log attached.
[Defy General] Kayant:
run the command to get all the denpendices again and see if some are missing then run make clean and build again
[Defy General] ldiomedi:
its seems theres no dependencies problem. only this, but nothing more..

ldiomedi@ldiomedi-Lenovo-G560:~/cm$ source build/envsetup.sh && brunch mb526
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/moto/jordan-common/vendorsetup.sh
including device/moto/mb520/vendorsetup.sh
including device/moto/mb525/vendorsetup.sh
including device/moto/mb526/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/cm/vendorsetup.sh
Looking for dependencies
Dependencies file not found, bailing out.

============================================

running clean and command again...
[Defy General] labsin:
I also get this line, but it still build. I think he meant to run the get-prebuilds from vendor/cm (again)

Edit: Quoted the wrong post
[Defy General] brajesh.sharma87:
This is not a problem, its common. You must have missed something in the starting part before build.
[Defy General] ldiomedi:
Will take a look to the environment, then. It's suppose to be ok, but I don't know. Thanks

Enviado desde mi MB526 usando Tapatalk 2
[Defy General] bds bamrah:
successfullyy compiled :D

thanks kayant for this awesome thread!! :good::good:

I successfuly compiled the rom,although had a couple of errors here and there,but thanks to this thread and google,I was able to resolve them.

will flash it now

thank you very much :fingers-crossed::D:good:

there are two zips in the folder,although i know the rom would be in the one having compiling DATE on it. :cowboy:
[Defy General] Sivaguru:
Ya I too got two zips in the out folder.

Installed the one with compilation date. But what about the other one?
[Defy General] bds bamrah:
other one is the "eng" rom,dont know much about it.

but i tried to flash the one with date,no luck.

stuck on boot logo

tried many methods,still no use :(
[Defy General] bds bamrah:
I cant semm to figure out the problem.

The compiled rom doesnt seem to boot up.

The red led also just blinks only for a sec.

M on 2ndboot from over a week now.never stuck o boot logo.but my compiled rom is stuck on boot logo.after red led.

I build for mb525,is this the problem? As all the builds now are unified..

Thanks in advanced :thumbup:
[Defy General] Kayant:
If your using mb525 you need to cherry-pick the commits from quarx that added support for 2ndboot

so just use mb526 instead it's the same thing and no extra work is needed and don't flash the ota zip use the one with no boot.img in the zip file
[Defy General] bds bamrah:
Thanks kayank.will try to build for 526 now .:)

one more stupid question.can i delete the files inout folder? As i only have 4gb left on my partition now.
[Defy General] Kayant:
Yh you can just type in make clean in terminal but you're going to need about 25GB to build btw
[Defy General] labsin:
Yes you can. Maybe better to run 'make clean' witch will to the same (maybe a bit more or some things less???)

Edit: Kayant beat me :D He prop mean 5GB left after building for MB525, so you first need to remove the MB525 files to build for MB526
[Defy General] bds bamrah:
yes i know.for me it worked within 23GBs:good:.

and i see u have updated the procedure in OP according to the unified builds :good:

great job :D

---------- Post added at 07:59 PM ---------- Previous post was at 07:56 PM ----------

yeah,the 525 files are within the out folder only,arent they?

i have clobbered the out folder.

and compiling again for 526 this time.

are there any other files i need to clean?,i guess not.:confused:
[Defy General] Kayant:
Yh am going to update it a bit more and add CNA and Slimbean
[Defy General] bds bamrah:
cool!!

that would be great for noobs like me and many others, :angel:
[Defy General] Kayant:
OP updated

Cleaned it up a bit not the best at making things like nice :p

Added support for Slim&CNA
[Defy General] bds bamrah:
its pretty clear and understandable,but it doesnt matter how well organised you write,some people are still gona ask stupid questions :p
[Defy General] bds bamrah:
done!! :cyclops:
[Defy General] Kayant:
Not so hard now :p Now you don't have to wait for quarx to release new builds just repo sync and build ^_^
[Defy General] bds bamrah:
Thanks to you.:thumbup:

I have a confusion though.

Since quarx relased v4 update on 27th.and i updated repo sync on 28th.

Does that mean i have v4 kernel inbuild in the rom?

If that so.than why did i got bootloops after flashing quarz v4 over my build?:confused:
[Defy General] Kayant:
Hmmm don't know did you wipe before flashing???

And was it the build with mb526??
[Defy General] Sivaguru:
I compiled & installed the rom on 26th & installed quarx v4 update the next day with no problems.
[Defy General] bds bamrah:
Wiped data cache dalvik.installd my build.booted perfectly.than wiped cache and dalvik flashed quarx v4.again wiped cache and dalvik.got bootloops after red led
[Defy General] Kayant:
Oh I see maybe because there were so major changes because basically what you're doing is reverting to an older build. Your compiled rom is newer you don't need to flash anything. You have v4 kernel update and more when you built your rom.
[Defy General] bds bamrah:
Yeah..i was also guessing so..the syncing got all the new comits of quarx after the v4 update as well.may be dats why the button brightness is buggy.always on 100%.
[Defy General] Aquethys:
How would one compile from Source for a device that doesn't have a device tree?

We have a github:

github.com/TeamGlide
[Defy General] Kayant:
Would rom are you trying to compile???

Edit - Didn't read the comment properly :silly:

Well you can't do anything without the device tree and proprietary vendor tree that's where all the configs, workarounds and fixes mainly go to get a device working with AOSP.

What device is it??
[Defy General] labsin:
Note for myself:

To customize kernel in 12.04 and up (ubuntu) you need:

sudo apt-get install lib32ncurses5-dev

And then to customize:

. build/envsetup.sh

lunch xxx-eng

make -C jordan-kernel O=$OUT/obj/kernel ARCH=arm menuconfig

But first make the out/target/product/mb526/obj/kernel directory
[Defy General] pabloltg:
Issue in Slim compilation..

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
target arm C: libsonivox <= external/sonivox/arm-wt-22k/lib_src/eas_reverbdata.c
target arm C: libsonivox <= external/sonivox/arm-wt-22k/lib_src/eas_rtttl.c
target arm C: libsonivox <= external/sonivox/arm-wt-22k/lib_src/eas_rtttldata.c
make: *** [/home/jagger/slim/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar] Error 41
make: *** Se espera a que terminen otras tareas....
jagger@jagger-laptop:~/slim$
[Defy General] Sivaguru:
Look at these posts

http://xdaforums.com/showpost.php?p=28567186&postcount=39

http://rootzwiki.com/topic/33885-random-compiling-questions/#entry947520

Problem in open JDK. U have to apply this patch