yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] SethNkC:
I get this error, any help...

thanks

zeekly@Zeekly:~/android/system$ repo sync

Fetching projects: 100% (249/249), done.

Syncing work tree: 68% (170/249) error: Your local changes to the following files would be overwritten by checkout:

libgralloc/pmemalloc.cpp

Please, commit your changes or stash them before you can switch branches.

Aborting

Syncing work tree: 100% (249/249), done.

hardware/qcom/display/: discarding 27 commits

error: hardware/qcom/display/: intervigilium/android_hardware_qcom_display checkout a49a599b70bb27d49df58470cff16c60abab0fb2
[HTC Sensation] blahbl4hblah:
You need to redo your repo init. I already posted the fix in the guide. Please look a few pages back for the post
[HTC Sensation] SethNkC:
ok so i got that fixed! Thanks

but what about this:

hardware/qcom/display/: discarding 27 commits

error: hardware/qcom/display/: intervigilium/android_hardware_qcom_display checkout a49a599b70bb27d49df58470cff16c60abab0fb2
[HTC Sensation] spook2:
You have to remove everything under ~/android/system, and then re-initialize the repo
[HTC Sensation] blahbl4hblah:
That's the worst thing to do since it'll be a waste of time.

He just has to delete hardware/qcom/display
[HTC Sensation] SethNkC:
Delete the whole folder or just the contents? Sorry for the noob questions. Trying to learn.

Thanks
[HTC Sensation] Bastaerd:
Either way, you should be fine ;)
[HTC Sensation] Bluewall:
I have compiled my CM9 last night, all went well. But now, no way to find the .zip ? Any help would be very appreciated lol
[HTC Sensation] EricDET:
Thanks for the instructions. Took me ~30 minutes to compile the first time in VmWare.
[HTC Sensation] tomS01:
Hi Blue !You can found in followed folder see the pict
[HTC Sensation] Bluewall:
For a reason i don't understand, there was nothing on my "out" folder.

Even if the terminal said it was here. Gonna compile again, take some hours for me :(
[HTC Sensation] sparksco:
I'm glad the title removed the word KANG :) Kang shouldn't be included in the mod version either I.m.o. by cm because it means stolen leaked source code. How can you steal open source code that is on github?
[HTC Sensation] drewtang:
Error message

i keep getting this error message at the very end of the process

running: java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpamHamk out/target/product/maguro/aokp_maguro-ota-eng.mandrew.zip
Could not create the Java virtual machine.

ERROR: signapk.jar failed: return code 1

I know it's related to Java, I have followed the insctuctions in the OP, and tried redoing the steps related to java several times, and keep getting the same error. Is there something I'm doing wrong?

Edit:I know this shows I'm building aokp, but I was getting the same issue when building for the sensation as well..
[HTC Sensation] AntiBillOS:
You building is done but complier cant sing you build zip update.
[HTC Sensation] Vorbeth:
It's actually in their build script!!

I'm actually getting annoyed by CM, they apparently are working on msm8660, but most of the updates they are merging are either broken on break msm8660.
[HTC Sensation] sparksco:
Yeah I just think it's lame they put KANG in the mod version script in vendor. That's why for my repo I made my own vendor repo and build repo so I can build it the way I want and not have that word KANG in the mod versions and .zips. and yes I agree it does seem like they break a lot of things for no reason at all when they know what they are doing!
[HTC Sensation] AntiBillOS:
Please help me!

How to fix Error 41?
[HTC Sensation] drewtang:
I got that lol anyone have any ideas how to fix it?

sent from my nexus prime
[HTC Sensation] blahbl4hblah:
I can't help you if you don't provide the complete error
[HTC Sensation] mpmilestogo:
Lots of troubles building tonight

Hey guys-

Just did a repo sync and am seeing all kinds of stuff even after making clean. Seems a lot of framework and apps stuff came down from CM.

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.

56 errors

make: *** [out/target/common/obj/APPS/Settings_intermediates/classes-full-debug.jar] Error 41

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

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

DroidDoc took 84 sec. to write docs to out/target/common/docs/api-stubs

root@androidbuild:~/android/system# repo sync -j2

Fetching projects: 100% (249/249), done.

Syncing work tree: 100% (249/249), done.

This is data all around the Error 41 reported earlier.
[HTC Sensation] blahbl4hblah:
Here's the solution:

https://github.com/greg-pe/platform_build/commit/1d32fac3f01acf64b31ed6150e980566f9296256

Looks like your using a 32-bit ubuntu version on a virtual machine, Most likely for ICS you need 64-bit to compile so you don't run into this error.

To fix this error:

cd ~/android/system/build/tools/releasetools
gedit common.py
gedit ota_from_target_files

Just do ctrl+f to find each of the red lines and replace it with the green lines
[HTC Sensation] mpmilestogo:
Seems like the error 41 persists for me. On a AMD64 ubuntu server box with 4g of memory. I lowered the Xmx java setting to 1024 but I am seeing this ever since the last repo sync this evening.

http://pastebin.com/EREcLfX6

This only started occurring after syncing this evening and seeing a lot of changes to apps and framework from CM9.
[HTC Sensation] kmmxracer:
I'm getting the same issues. interesting???
[HTC Sensation] hawkeyexp:
sampe problem here
[HTC Sensation] blahbl4hblah:
I haven't had the issue ever that I could remember

But for me to find out more about this error can you tell me if your using virtual machine or dual boot or something else. Whether your using 64bit or 32bit

I've only compiled on a 64bit so I wouldn't know how this goes with 32bit
[HTC Sensation] seadersn:
very nice, it's possible now, thx to commits @ gerrit, to switch on flashlight per statusbar/notification area buttons :)
[HTC Sensation] mpmilestogo:
Hi. I'm running this on real hardware. Its a AMD64 Shuttle system with Ubuntu 11.10 64bit server with 4gb of memory and all the packages installed necessary to compile. I have been successfully compiling ROMs until late last night when after a repo sync it all fell apart with the symbol errors and the error 41.

I tried backing off the java virtual machine memory to 1024 since initially I believed that perhaps I had been too aggressive with the -j switch for the system and it failed. There are a few causes of this I found online so tried those and the one posted a few posts up from here.

Nothing has really resolved this problem. Kinda considering just redoing the entire thing all over again since I have a decent internet connection. I have never had problems compiling although it does take about 2 hours on this sytem after doing a make clobber.
[HTC Sensation] kmmxracer:
I'm building on a dedicated machine, no VM. Running 64-bit Ubuntu 11.10. So I was thrown of by the suggestion to try the fix for 32-bit. I didn't make any changes, followed the guide exactly, I have even had successful build in the past, before the switch to the OpenSensation repo.

I just woke us, so I'm trying

#make cobbler

#repo sync

#make -j4 bacon

to see how it goes. I'll post all errors if I get any.

---------- Post added at 06:29 PM ---------- Previous post was at 06:21 PM ----------

I did start from a fresh install of Ubuntu and followed the newest guide, and I'm getting errors for the first time.
[HTC Sensation] blahbl4hblah:
You mean toggle button? Do you have the Gerrit ljnk for it to be enabled? I want to add it xD

Thanks
[HTC Sensation] seadersn:
http://review.cyanogenmod.com/13422

i think it was only this one, and enabling it @ framework / device tree (link from v.) and adding it @ manifest.
[HTC Sensation] blahbl4hblah:
Thanks let's hope it gets merged Haha if not then at least we can add it back xD
[HTC Sensation] xXkingsromXx:
manifest in repo

getting this error after selectin sensation userdebug still

Which would you like? [full-eng] 18

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/pyramid/cm.mk]]: "device/*/pyramid/cm.mk" does not exist. Stop.

Device pyramid not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Repository for pyramid not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/pyramid/cm.mk]]: "device/*/pyramid/cm.mk" does not exist. Stop.

** Don't have a product spec for: 'cm_pyramid'

** Do you have the right repo manifest?

---------- Post added at 12:53 AM ---------- Previous post was at 12:50 AM ----------

manifest reads!!!

<manifest><remote name="gh" fetch="https://github.com/"/><project path="device/htc/pyramid/" name="OpenSensation/android_device_htc_pyramid.git" remote="gh" revision="master"/><project path="vendor/htc/pyramid/" name="elelinux/vendor_htc_pyramid.git" remote="gh" revision="master"/></manifest>

and here is the fix as well!!!

* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/

#include <unistd.h>

#include <fcntl.h>

#include <sys/mman.h>

#include <stdlib.h>

#include <cutils/log.h>

#include <errno.h>

#include <linux/ioctl.h>

#include <linux/android_pmem.h>

#include "gralloc_priv.h"

#include "pmemalloc.h"

#include "pmem_bestfit_alloc.h"
[HTC Sensation] drewtang:
I'm gonna start over in a bit, thanks for the help.
[HTC Sensation] xXkingsromXx:
missing device tree help please this close to compiling! thanks
[HTC Sensation] blahbl4hblah:
Just so you know I already put that in the OP in the very beginning
[HTC Sensation] blahbl4hblah:
Did you make 'local_manifest.xml'?

Cause that's how your going to be up to date with elelinux's device tree
[HTC Sensation] sparksco:
Just wait guys we're looking into a issue with local_manifest.xml and you might have to re-download the source again after a fix is posted.
[HTC Sensation] xXkingsromXx:
already edited it before bro

#include <unistd.h>

#include <fcntl.h>

#include <sys/mman.h>

#include <stdlib.h>

#include <cutils/log.h>

#include <errno.h>

#include <linux/ioctl.h>

#include <linux/android_pmem.h>

#include "gralloc_priv.h"

#include "pmemalloc.h"

#include "pmem_bestfit_alloc.h"

---------- Post added at 01:26 AM ---------- Previous post was at 01:25 AM ----------

cool cool

you da man
[HTC Sensation] blahbl4hblah:
It's already fixed. Just copy and paste that into the local_manifest.xml you had already. Youll have to repo sync twice so the changes merge.
[HTC Sensation] xXkingsromXx:
yeppers

<manifest><remote name="gh" fetch="https://github.com/"/><project path="device/htc/pyramid/" name="OpenSensation/android_device_htc_pyramid.git" remote="gh" revision="master"/><project path="vendor/htc/pyramid/" name="elelinux/vendor_htc_pyramid.git" remote="gh" revision="master"/></manifest>
[HTC Sensation] sparksco:
Just looked at the OP and local_manifest.xml looks good :)
[HTC Sensation] xXkingsromXx:
this is last command why this? please

Done!

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/p990/cm.mk]]: "device/lge/star-common/star.mk" does not exist. Stop.

** Don't have a product spec for: 'cm_p990'

** Do you have the right repo manifest?
[HTC Sensation] blahbl4hblah:
Why are you trying to work on the g2x?

There's no device tree for it that I know of
[HTC Sensation] sparksco:
Yeah you picked the wrong option in the lunch menu! Your supposed to be building for pyramid :facepalm:
[HTC Sensation] xXkingsromXx:
was number 18 earlier now its 20 lol:mad:
[HTC Sensation] blahbl4hblah:
The more devices that are added to source, the more likely it will lower
[HTC Sensation] xXkingsromXx:
manifest in tutorial still aiming towards

"CyanogenMod/android_device_lge_p990" path="device/lge/p990

trust me

<manifest><remote fetch="https://github.com/" name="gh"/><project name="OpenSensation/android_device_htc_pyramid.git" path="device/htc/pyramid/" remote="gh" revision="master"/><project name="elelinux/vendor_htc_pyramid.git" path="vendor/htc/pyramid/" remote="gh" revision="master"/><project name="CyanogenMod/android_device_lge_p990" path="device/lge/p990" remote="github"/></manifest>

---------- Post added at 03:31 AM ---------- Previous post was at 03:27 AM ----------

some one please upload proper local manifest for mr please thanks:D:D:D:D:D
[HTC Sensation] blahbl4hblah:
Why are you putting a device tree in the local_manifest when that device tree is CM7 not CM9

Better yet why are you using the old local_manifest?
[HTC Sensation] sparksco:
Dude, take a breather. Read a few post back about how the first post was updated, then reference the first post and edit local_manifest.xml, repo sync again = win? Remember this is just a guide. Some common sense and basic knowledge of linux will go a long way, good luck!
[HTC Sensation] xXkingsromXx:
thanks for the soft love and patience!:confused:
[HTC Sensation] Gamesoul Master:
Definitely loving this thread. Just a matter of whether I install Linux again (which will now require me to create yet another partition for it), or a tutorial is found/made for Windows... lol.

Unless... I know running Linux in a VM for this is a no-no, but what about running it from a live flash drive (or live CD, either way)? That way it gets full access to system resources. Would that be plausable as a temporary solution until I get Linux installed again?
[HTC Sensation] kmmxracer:
Here is a link to pastbin of my error 41

http://pastebin.com/JhrSzePT

Here is what I get in the start of the build:

http://pastebin.com/UHwBpyGB

Pastbin didn't let me upload the whole think LOL

***EDIT***

I feel like an idiot righ about now, because I cought a mistake that is so obvious and I didn't miss it before. Dumb, dumb, dumb

"4g. Add Toolchain PATH if you plan on Compiling Kernels"

#Android Toolchain PATH

export ARCH=arm

export CCOMPILE=$CROSS_COMPILE

export CROSS_COMPILE=arm-eabi-

export PATH=$PATH:/home/YOUR-USERNAME/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

***I forgot to change "YOUR-USERNAME" ***

Not sure if this will effect a general build since I don't think I'm compiling the kernel, but I hope that's all it was???
[HTC Sensation] seadersn:
try

rm -r frameworks

rm -r packages/apps/Settings

and then repo sync again. maybe it's able to do its job then.

yeah @ flashlight; need this item really often...!
[HTC Sensation] mpmilestogo:
Unfortunately, this does not fix the issues with compiling for me. I have the exact same error as before with missing symbols and the build halts with Error 41.
[HTC Sensation] kmmxracer:
Well I guess I'm done for the day too, same errors...... hope some one cat look at my pastbin and see the errors of my ways. Thanks for all the good work guys, keep it going.
[HTC Sensation] yozpalang:
Making bacon if anybody wants I'll post the link
[HTC Sensation] blahbl4hblah:
If you want to that'd be great, I'll add it to the 2nd post for builds
[HTC Sensation] yozpalang:
Sure I'll post the link as soon as I get back home ;)
[HTC Sensation] blahbl4hblah:
Thanks, just let me know and I'll add it
[HTC Sensation] yozpalang:
get the build here and md5sum 0e838ec08495341e137b5f00805a1dce
[HTC Sensation] superg81:
I'm getting reports of non booters. I'm using opensensation. Anyone else? Any ideas?
[HTC Sensation] yozpalang:
What :confused::confused::confused::confused::confused:
[HTC Sensation] superg81:
Well,I was going to say my repo init was different than what's in op but that has been updated to what I am using. Vorbeth just replied to me on twitter so disregard my question ;)
[HTC Sensation] sparksco:
Well you guys don't have to worry about facebook sync not working anymore. Apparently facebook removed it for android because they're jealous about google+ :P
[HTC Sensation] drewtang:
repo sync error

getting this error during repo sync. Any ideas?

File "/home/mandrew/android/system/.repo/repo/project.py", line 1917, in rev_list
p.stderr))
error.GitError: OpenSensation/android_device_htc_pyramid rev-list ('^7d2b859f521ceb14aa6098a0ec10ea035b5189a3', 'HEAD', '--'): fatal: bad object HEAD
[HTC Sensation] tishfire:
Thanks, it was useful.
[HTC Sensation] yozpalang:
Bacon in the oven :D
[HTC Sensation] yozpalang:
Get it while is hot
[HTC Sensation] yozpalang:
repo sync hangs on 99% :confused:
[HTC Sensation] sparksco:
repo sync -j1
[HTC Sensation] seadersn:
between repo init & repo sync i always edit manifest.xml and remove all devices with different chipset, mainly samsung hrhr... this way one can save up to 2gb of download-data. maybe it's not the best tipp as some functions sometimes require different device trees too; but it's 'capable of saving a lot of time' @ first sync.
[HTC Sensation] blahbl4hblah:
Added it to the OP, sorry it took forever
[HTC Sensation] TamCore:
Can you also add my page with nightlies to the OP?
[HTC Sensation] yozpalang:
No problem this is the latest http://db.tt/TcXf1HNU
[HTC Sensation] blahbl4hblah:
Added to the OP
[HTC Sensation] mpmilestogo:
Hi TamCore. I'm using your daily or nightly builds. Thanks a lot for the regular builds to install. I have a question on the builds. Is the fix for SDcard included? When I mount the phone on Debian, the sdcard is unmounted and I'm told its safe to remove. This is on the 0318 build.

I've been unable to do my own builds and I really appreciate the builds that let me continue tracking progress.

I have been installing each build over the previous one and just wiping the caches without a full wipe in recovery. I stopped for awhile on 0318 build.

Thanks again!
[HTC Sensation] blahbl4hblah:
From what I know, I think the builds are good to go now and the sdcard issue is fixed. But again I may be wrong
[HTC Sensation] TamCore:
I think it is fixed since the latest build. Haven't tried it yet.
[HTC Sensation] Yriel40k:
First: Great Tutorial! Thank you very much.

Now my question :D

I made everything from the tutorial, but i cant find a flashable zip file. Do I have to run another command to get it or is it in some directory and I just cant find it.

I already searched in the topic, but the only thing I found, was that it shall be located in /out/target/produkt/ but i cant find it in there.
[HTC Sensation] VinceValentin:
Okey, tried this for "educational" purposes :rolleyes: everything went fine, except when compiling. (To be fair I have never used Ubuntu before I tried this. Plllz judge me for that :P ) Regardless, if anyone wanna help me in the right direction, this is what's happening: http://pastebin.com/XD5p1ucu

Edit: Sorry for this OT guys, but is Ubuntu installed through Wubi viable for compiling? Help appreciated :)
[HTC Sensation] blahbl4hblah:
One way to find out if it's really there is do

cd ~/android/system/out/target/product/pyramid; ls;

If it shows the zip there then just try to refresh the folder with f5
[HTC Sensation] blahbl4hblah:
Looks like in the beginning your using gcc 4.4 but I removed that from being installed in the guide as gcc 4.6 works fine. Also looks like your using vorbeth script which is fine
[HTC Sensation] superg81:
target Java: bu (out/target/common/obj/JAVA_LIBRARIES/bu_intermediates/classes)

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: packages/apps/VoiceDialer/src/com/android/voicedialer/CommandRecognizerEngine.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

target Java: com.android.future.usb.accessory (out/target/common/obj/JAVA_LIBRARIES/com.android.future.usb.accessory_intermediates/classes)

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.

2 errors

make: *** [out/target/common/obj/APPS/Settings_intermediates/classes-full-debug.jar] Error 41

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

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

DroidDoc took 13 sec. to write docs to out/target/common/docs/api-stubs

this one has me stumped
[HTC Sensation] Vorbeth:
The errors are higher up in the log. You didn't show them
[HTC Sensation] superg81:
i redone the repo init and tried again

different error but same result. seems it it saving logs so i included the log at the bottom. looks to me like a java issue but i havent changed anything so i do not understand the error

http://pastebin.com/p94MLZDS
[HTC Sensation] Catnap:
Fetching projects: 78% (196/251) fatal: https://github.com/intervigilium/android_hardware_msm7k/info/refs not found: did you run git update-server-info on the server?
Fetching projects: 99% (249/251) error: Cannot fetch intervigilium/android_hardware_msm7k

error: Exited sync due to fetch errors

Try as I might, I can't seem to get this working. Yes, I replaced the local_manifest.xml with the one from Github, but that didn't do anything.

Help please!

[Edit] Now I get:

error: .repo/manifests/: contains uncommitted changes

[Edit2] Nevermind, removed the problem folder and reinitialised the repo, then synced.

Compile time baby.
[HTC Sensation] yozpalang:
Can you please make a guide for compiling from CM9 repo? :o
[HTC Sensation] blahbl4hblah:
Lol, I will just add it to the list when CM9 for sensation device tree becomes more stable than OpenSensation
[HTC Sensation] geoffcorey:
You can go to cyanogenmod's wiki (easy google to find) and use one of the devices as a guide, but replace the brunch command with brunch pyramid
[HTC Sensation] blahbl4hblah:
Your correct BUT also wrong at one point, using this guide WILL help others compile cm9 but you will compile using OpenSensation's android repository which uses a few different repositories that are different from the original one by CyanogenMod. I don't believe that the device tree just released today will be any different than OpenSensation's device tree and there's no vendor files yet so compiling would fail. Yes you can extract them
[HTC Sensation] yozpalang:
repo sync -j16

did that, repo sync -j16 hangs at 99%
[HTC Sensation] geoffcorey:
Yeah I forgot about the vendor files. Koush may have them on his github though. (Not around a computer to really check with all the news lately)
[HTC Sensation] EricDET:
Mine does that quite often.. repo sync -j1 or just a plain repo sync usually clears it up.
[HTC Sensation] seadersn:
from a fast overview point 4e is obsolete now :)
[HTC Sensation] blahbl4hblah:
Haha :)

I haven't kept up with this for a while. I'm glad though that people are using it though
[HTC Sensation] tomS01:
I made the 3. new Rom with this process & now i thinking how can repair my No Service trouble. I tried a different kernel and about 3 second of duration line is gone. If i use speaker this not happened. I think some trouble are with proximity sensor.

Any Id?

I am glad for this thread:)

Thanks

Tom
[HTC Sensation] seadersn:
there's a commit @ gerrit:open, for phone app, addressing this. try pulling it in and do a new build. maybe it helps ;)
[HTC Sensation] tomS01:
Ok thx i try change phone app from my older build:) Should see what happen.
[HTC Sensation] namila007:
thanks for this tute.ill give a try
[HTC Sensation] Vorbeth:
While cm are merging 4.0.4 things are breaking. Just have patience
[HTC Sensation] BookCase:
Awesome, very useful!

P.S. Glad to see you working with Sensation! :cool:
[HTC Sensation] blahbl4hblah:
I didn't know you got one :p