yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] mo976:
My local manifest points to revision OpenSensation and repo sync is fine so I think I'm good to go.

Any ideas for speeding up my build other then a faster processor.

My desktop is a sandy bridge i3 3.3ghz with 8gb 1600mhz ram and a 120Gb SSD.

Thanks
[HTC Sensation] TamCore:
Moving ccache into a tmpfs should speed it up a bit :)
[HTC Sensation] blahbl4hblah:
Or ccache into the source directory folder :)

I haven't used ccache since I don't notice the difference

Sent from my iPhone
[HTC Sensation] webharsh:
Hi,

I decided to get my hands dirty with compiling ROM from source. I got stuck at repo sync with following error -

From git://github.com/CyanogenMod/android_frameworks_base
* [new branch] cm-9.0.0 -> github/cm-9.0.0
* [new branch] cm-9.1.0 -> github/cm-9.1.0
* [new branch] donut -> github/donut
* [new branch] eclair -> github/eclair
* [new branch] froyo -> github/froyo
* [new branch] froyo-stable -> github/froyo-stable
* [new branch] gb-release-7.2 -> github/gb-release-7.2
* [new branch] gingerbread -> github/gingerbread
* [new branch] gingerbread-release -> github/gingerbread-release
* [new branch] ics -> github/ics
* [new branch] ics-release -> github/ics-release
* [new branch] jellybean -> github/jellybean
* [new branch] missing-master-patches -> github/missing-master-patches
* [new branch] themes-exp -> github/themes-exp
* [new tag] cm-7.0.0 -> cm-7.0.0
* [new tag] cm-7.0.1 -> cm-7.0.1
* [new tag] cm-7.0.2.1 -> cm-7.0.2.1
* [new tag] cm-7.0.3 -> cm-7.0.3
* [new tag] cm-7.1.0 -> cm-7.1.0
remote: Compressing objects: 100% (8263/8263), done.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors

I tried to google error but could not find anything easier to try :(
[HTC Sensation] blahbl4hblah:
I haven't had that issue and I compiled a build last night. Did you use CM repo init or mine?
[HTC Sensation] webharsh:
I used CM

repo init -u git://github.com/CyanogenMod/android.git -b jellybean
[HTC Sensation] blahbl4hblah:
Try repo sync -f
[HTC Sensation] mo976:
I have ccache enabled in my bashrc file what is the difference if any and how would I move it?
[HTC Sensation] blahbl4hblah:
Just change the path so it's towards your source directory

Sent from my iPhone
[HTC Sensation] webharsh:
Well I retried after a few hours and it just worked :). So repo is sync'ed up but now I'm getting a lot of warning (around 20+) while building and then build stops with some error. I'll try to debug them this evening.
[HTC Sensation] mo976:
Just some things to check make sure that the your using java 6 sdk not 7. Also in the bashrc file if you only copied and pasted blahbl4hblah instructions that you changed the 1.6.## to your java version in java paths, and that the file path for Android sdk is correct by default it unzips to a folder named android-sdk-Linux. While blahbl4hblah has android/sdk (tools and platform-tools) in the OP instructions.

Finally even if you don't have the info for a pastebin anymore what was the error message?
[HTC Sensation] webharsh:
Thanks mo976. I checked java version, bashrc, android sdk before initializing repo and they are all fine. I was building late last night and I'm off to work right now. I actually want to debug my self first before troubling you guys :). I'll post errors once I get back home.

I was looking at Cyanogen mod wiki tutorial for building from source for other devices and I see following steps -

. build/envsetup.sh && breakfast toro

cd ~/android/system/device/samsung/toro/
./extract-files.sh

Don't we need this for pyramid as well? Sorry for my noobish questions.
[HTC Sensation] blahbl4hblah:
It's all good. Basically the errors that your most likely having is towards the reference that it needs something to pull.

Go to my github

www.github.com/blahbl4hblah

And look for the android_vendor_htc_pyramid and you'll see somewhere near the top showing zip. If you click on that it'll download the needed files

Once it's done downloading just extract it to vendor/htc/pyramid in your source folder

Be sure to create the following folders in this precise order in vendor

htc followed by pyramid and extract the files there.

And yes the htc must be lower case. Compiling is case sensitive

Sent from my iPhone
[HTC Sensation] blahbl4hblah:
Well you would do pyramid in our case. But you only need that if you want to make a vendor files for pyramid

For this you would need a pre built cm9 build for pyramid and adb working

Sent from my iPhone
[HTC Sensation] webharsh:
Thanks. I'll give it a go once I get back home. Thanks a lot for helping out.
[HTC Sensation] mo976:
Your welcome the java error and sdk errors were a noobish error I made along with others late at night just trying to get it done...
[HTC Sensation] blahbl4hblah:
Technically java 7 would work but it gives a lot of errors when compiling even if you change the setting in envsetup.sh

I tried it once and never went back to it

Sent from my iPhone
[HTC Sensation] blahbl4hblah:
No problem just let me know if you get anymore errors.

I'll update the guide a little more once I get home

Sent from my iPhone
[HTC Sensation] mo976:
I was referring to the bashrc errors I was able to at least follow the instructions even if I copied and pasted with out looking twice :)
[HTC Sensation] blahbl4hblah:
Oh Haha. Yeah sometimes that can be an issue. Things happen

Sent from my iPhone
[HTC Sensation] webharsh:
The error I was getting is -

make: *** No rule to make target `vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so', needed by `out/target/product/p1/system/lib/libjackpal-androidterm3.so'. Stop.

And I found the solution here.

It seems Term.apk unzipped during step 4e do not have /lib/armeabi/libjackpal-androidterm4.so.

The zip file in the linked post solved the issue for me.

Now the build is running since 2 hours. Hope it completes soon.
[HTC Sensation] blahbl4hblah:
Oh yeah, they updated that file, since you passed that, it should be all good now
[HTC Sensation] mo976:
And I was *****ing about it taking my system an hour for a full userdebug build!
[HTC Sensation] fragargon:
hi,

I m running ubuntu precise 64bit. the system is setup and running.

when i launch the cmd ". build/envsetup.sh; lunch aokp_pyramid-userdebug; mka bacon"

it gives me this:

fragargon@ubuntu:~/android/system$ . build/envsetup.sh; lunch aokp_pyramid-userdebug; mka bacon
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/product_config.mk:205: *** No matches for product "aokp_pyramid". Stop.

cmd "lunch"

You're building on Linux

Lunch menu... pick a combo:
1. mini_armv7a_neon-userdebug
2. mini_armv7a-userdebug
3. full_wingray-userdebug
4. full_maguro-userdebug
5. full_vibrantmtd-eng
6. full_panda-userdebug
7. aokp_maguro-userdebug
8. aokp_toro-userdebug
9. aokp_toroplus-userdebug
10. aokp_grouper-userdebug
11. aokp_crespo-userdebug
12. aokp_crespo4g-userdebug
13. aokp_captivatemtd-userdebug
14. aokp_d2tmo-userdebug
15. aokp_d2vzw-userdebug
16. aokp_galaxysmtd-userdebug
17. aokp_hercules-userdebug
18. aokp_n7000-userdebug
19. aokp_p3113-userdebug
20. aokp_p5113-userdebug
21. aokp_fascinatemtd-userdebug
22. aokp_mezmerizemtd-userdebug
23. aokp_showcasemtd-userdebug
24. aokp_stingray-userdebug
25. aokp_vibrantmtd-userdebug
26. aokp_wingray-userdebug

so it seems that there s no more pre-builds for pyramid or whatever called ... pyramid product.

I try to googling for hours that issue but nothing found - damnit this really undocumented.

Could someone point me to the right direction to build an AOKP for my htc pyramid?

thanks for your help and/or answers.
[HTC Sensation] blahbl4hblah:
Lunch is not separate from it at all. Just copy and paste

But if your doing jellybean be sure that they have the branch because I don't know if they have one for pyramid or not

Sent from my iPhone
[HTC Sensation] fragargon:
indeed, they havn't the branch yet, i should started from there.I m actually sync milestone. hope i succeed.

I would like to understand and try my self.
[HTC Sensation] blahbl4hblah:
But if you do want aokp just download the ics source for aokp and you'll be able to compile it
[HTC Sensation] AntiBillOS:
deleted
[HTC Sensation] Jwtiyar:
Duplicate thread.
[HTC Sensation] blahbl4hblah:
Oh really? I don't see another thread on the sensation forums that's is noob proof
[HTC Sensation] Jwtiyar:
http://xdaforums.com/showthread.php?t=1762641

just need to change the tre

changing tree is too hard? :) all are the same instruction.

thnaks.
[HTC Sensation] TamCore:
Look at the creation date. blah's thread was first here. So the other is the duplicate.
[HTC Sensation] Jwtiyar:
:) this is JB but other ICS was in 20th november 2011 , and GB >> ICS >> JB just need changing need change the Repo , i just mean that this guide must not be duplicated because we have these

http://xdaforums.com/showthread.php?t=1354865

http://tinyurl.com/42mp3sp

blah this guide remembering me the adb logcat guide :) this also is just one command and u made the guide :

adb logcat > log.txt

doing these guide just to level up Thanks meter not else , becuase there is no new things that need another Guide beside these above links that i mentioned.

thank you.

Best Regards.
[HTC Sensation] blahbl4hblah:
Honestly dude, the guy doesn't do anything except talk crap

It doesn't bother me one bit though after all his CM9 Stable thread is a duplicate of the nightly thread
[HTC Sensation] Stickman89:
Deleted...
[HTC Sensation] Charles IV:
yozpalang's error is the same as mine, just i have more stuff between 'repo sync' and the fatal. I have also experimented with 'repo sync -c', 'repo sync -c -j 3' and 'repo sync -c -j 2', but none of them fix the problem. repo has been installed. Any idea's?
[HTC Sensation] blahbl4hblah:
Honestly, me and SparksCo have been patient with answering all of your questions. If your having a hard time then redo the steps starting from where you start downloading source and making the local_manifest.xml

If you want to do that try this first, might actually help you

repo forall -c git reset --hard
[HTC Sensation] Gamesoul Master:
Well I do intend to eventually tri-boot (since I'm already running Windows and MacOSX currently). Just that to do so, I need to resize (shrink) my current partitions to create a new one from the free space. Which I currently have about 90 GB on my primary internal hard drive.

I don't intend to do a VM, only because I feel that using a Live CD/USB option *should* be about the same as actually having Linux installed, at least for the purpose of compiling source code. As I said though, it'd just be temporary, until I can get around to repartitioning my hard drive, which is a long process that I'm not prepared to go through at the moment (as I first need to free up some space on my other hard drives to do a backup, because there's no way in hell I'm going to repartition without backing up first... lol).

Either way, I'm set to boot Xubuntu from one of my flash drives now, so I'll try that out and let you guys know how it goes. With any luck, I may even be able to avoid the problems some people seem to be having here... :D
[HTC Sensation] blahbl4hblah:
Just don't go crazy with the questions :P
[HTC Sensation] Gamesoul Master:
Don't worry, I won't be *that* guy... :D
[HTC Sensation] blahbl4hblah:
Hope so :)

Just let me know if you need something, the guide is self explanatory right?
[HTC Sensation] sparksco:
You'll definately need more than 10.5GB of space lol. Just the source download alone is like 7 or 8 GB. Then when you start building you'll hit over 10GB easy.
[HTC Sensation] xXkingsromXx:
this look proper now peoples

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

if so thanks did not mean to blow up thread never meant any burdens
[HTC Sensation] selectodude:
The compile process uses files that will be on the CD. Very, very slow. You're better off with a VM.

That means that the entire source can fit in my RAM :)
[HTC Sensation] Gamesoul Master:
Yeah, the guide looks pretty solid. Just having an issue or two that is technically unrelated to your guide that I am currently trying to resolve... lol. And playing with the latest posted build of this ROM while I'm waiting for things to install/update.

Once I can finally get past step 1, the rest should fall into place pretty easily :D

Edit: Nevermind, I don't think I'll be doing this in Linux anytime soon. It's simply been way too long since I've used it, and at this point there are things I need to do (that I could easily do in Windows/DOS with just a simple command or two) that leaves me clueless in Linux.

In the meantime, I'm going to use the available builds, brush up on Linux when I have time, and figure out some way to compile in a Windows environment. I just don't have the time to dedicate to a task like this right now... lol.
[HTC Sensation] blahbl4hblah:
Well if you want I can post a rom build later just so people can use something
[HTC Sensation] sparksco:
Yeah honestly what you guys will prolly end up with when building these roms is a cm9 kanged build. The .zip will be named something along the lines of ota****.zip but when you flash it it'll say cm9 kanged in the mod version.
[HTC Sensation] Gamesoul Master:
Well, I just figured I'd give it a shot, since it's been forever since I worked with Linux. And the last time I was compiling anything, it was C/C++ programs... lol.

But... I'm sure there are hundreds of people who would appreciate a new build here and there when some signficant progress is made. Which is what already seems to be the case, so it's cool either way. More than anything, I'm just happy to see the progress with CM9. And it's always interesting to see how people handle bugs in the programming.
[HTC Sensation] matt95:
I get this error and I am using ubuntu 11.10 x64 as in the guide

Sent from my insertcoined sensation
[HTC Sensation] banesi:
first command, first error :eek:

7za? 7z?
[HTC Sensation] Vorbeth:
or you could do

source build/envsetup.sh
lunch cm_pyramid-userdebug
make CC=gcc-4.4 CXX=g++-4.4 -j# otapackage (Change # to the number of system cores on your computer)
[HTC Sensation] matt95:
i got this one too i have solved that by reinstalling ubuntu :D but try rebooting anyway
[HTC Sensation] banesi:
LOL, and it worked after?!

Anyway, seems like it's p7zip-full instead 7za
[HTC Sensation] matt95:
yes it worked but now i got problems again...:(
[HTC Sensation] tomS01:
I try make one Rom!

I follow the first post & i made control on my setup in ubuntu 10.04.

I am now curious what result i get it.

Its WORKS super thanks for this thread!!!!!!!!!!!!!!!!
[HTC Sensation] tomS01:
Hi Blahbl4hblah!!!!!

Thanks for your great work!

I am very glad for this thread was created!

Tom
[HTC Sensation] sparksco:
You shouldn't be logged in as root btw. sudo apt-get install will let you run root temporarily to install something.
[HTC Sensation] sparksco:
Congrats on building.
[HTC Sensation] tomS01:
If you follow the first post and make it step by step you can build it:)

When something goes wrong must begin the control on your first steps.

But marvelous.
[HTC Sensation] sparksco:
You re-installed ubuntu and still have errors? You shouldn't have to re-install ubuntu. Worst case you might just want to delete the entire repo source and start over from scratch that way. $ rm -rf android

Will delete it or you can manually delete it in a file explorer and start over that way. I've had just about every error compiling you can think of lol. So if possible post the error here and we'll try to help you get it resolved without too much trouble of re-installing things or deleting the repo source.
[HTC Sensation] blahbl4hblah:
Glad you were able to make a rom, sorry for the confusion with 7za wasn't really sure haha most of the time I just go through software and pick 7zip.

How was the guide for you overall except for a few small errors?
[HTC Sensation] blahbl4hblah:
Did you do reboot after doing section related to bin/repo? And the chmod command after getting the repo file?

Might be the reason why

But again if you get an error go back into the steps an see if you missed anything it might be annoying but it will get the job done
[HTC Sensation] matt95:
yes man 2 times :( i'm checking if i missed something
[HTC Sensation] tomS01:
I search the issue inside my knowledge:)

First I get this 7abc but I installed zip program inside the Linux & begin the process without command 7a or zip:)

You help me a lot your guide perfect
[HTC Sensation] blahbl4hblah:
Glad the guide helped you, for me I made the guide since you know what is on your computer while compiling
[HTC Sensation] tomS01:
I really appreciate your work difficult to write a process what everyone can understand in first look!

I made followed step read twice before begin! When i get the first issue i take one beer and seat back my chair and said don't panic thinking reading & do it again.

Thanks again!

I already showed some other friend with big mouth i have own Rom:D:D:D
[HTC Sensation] sparksco:
Beer helps lol :beer:
[HTC Sensation] superg81:
4d. Add Pyramid Sources

gedit ~/local_manifest.xml

Add this to the file:

this step...add what? code block is empty or am i missing something?
[HTC Sensation] dansharpy:
Ive followed all the steps to the letter so far and everything is working as planned. I just wondered where i have to use this line from gerrit:

git fetch http://review.cyanogenmod.com/p/CyanogenMod/android_hardware_qcom_display refs/changes/44/11744/1 && git cherry-pick FETCH_HEAD

This is to Change Icc571e80: Add missing ioctl include. Or do i not have to do this??

Thanks in advance!

Also! If i want to edit the build.prop do i do this before step 5a.?
[HTC Sensation] blahbl4hblah:
That's weird it should be there since I didn't change anything but ill re add it
[HTC Sensation] blahbl4hblah:
You don't need to go through a long process just follow the guide it says use gedit and then add the line.

For some reason some of the guide vanished and I didn't change anything so that's weird
[HTC Sensation] superg81:
thanks,i think thats all i need to compile
[HTC Sensation] blahbl4hblah:
There you go, it's all done

I still don't know why it vanished though
[HTC Sensation] Vorbeth:
Is this part really needed?

#Android Toolchain PATH
export ARCH=arm
export CCOMPILE=$CROSS_COMPILE
export PATH=$PATH:/home/YOUR-USERNAME/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

Also $CROSS_COMPILE is never defined.

As far as I am aware

source build/envsetup.sh

takes care of ARCH & Toolchain config's
[HTC Sensation] bigevild:
Hi guys my repo sync j16 started no problem, but now its just sat doing nothing is this finished or shall I leave it a bit longer.

Resolving deltas: 100% (618/618), done.3.47 MiB | 338 KiB/s

From git://github.com/CyanogenMod/android_external_wpa_supplicant_8

* [new branch] ics -> github/ics

Fetching projects: 96% (236/245) Receiving objects: 18% (99143/525086), 550.0remote: Total 3799 (delta 1654), reused 3786 (delta 1643)

Receiving objects: 100% (3799/3799), 928.74 MiB | 867 KiB/s, done.

Resolving deltas: 100% (1654/1654), done.658.39 MiB | 1.20 MiB/s

From git://github.com/CyanogenMod/android_device_samsung_tuna/s

* [new branch] ics -> github/ics

remote: Total 525086 (delta 316567), reused 517636 (delta 310150)

Receiving objects: 100% (525086/525086), 748.96 MiB | 696 KiB/s, done.

Resolving deltas: 100% (316567/316567), done.B | 3 KiB/s s

From git://github.com/CyanogenMod/android_frameworks_base s

* [new branch] donut -> github/donut

* [new branch] eclair -> github/eclair | 383 KiB/s

* [new branch] froyo -> github/froyoB | 420 KiB/s

* [new branch] froyo-stable -> github/froyo-stable

* [new branch] gingerbread -> github/gingerbread KiB/s

* [new branch] gingerbread-release -> github/gingerbread-release

* [new branch] ics -> github/icsMiB | 833 KiB/s

* [new branch] missing-master-patches -> github/missing-master-patches

* [new branch] themes-exp -> github/themes-exp30 KiB/s

* [new tag] cm-7.0.0 -> cm-7.0.0

* [new tag] cm-7.0.1 -> cm-7.0.1

* [new tag] cm-7.0.2.1 -> cm-7.0.2.1

* [new tag] cm-7.0.3 -> cm-7.0.3

* [new tag] cm-7.1.0 -> cm-7.1.0

Fetching projects: 97% (238/245) Receiving objects: 17% (3352/19495), 532.96 remote: Total 19495 (delta 11167), reused 19488 (delta 11160)

Receiving objects: 100% (19495/19495), 1.79 GiB | 1.16 MiB/s, done.

Resolving deltas: 100% (11167/11167), done.MiB | 3 KiB/s

From git://github.com/CyanogenMod/android_prebuilt

* [new branch] gingerbread -> github/gingerbread

* [new branch] gingerbread-release -> github/gingerbread-release

* [new branch] ics -> github/ics

* [new tag] cm-7.1.0 -> cm-7.1.0

remote: Total 29884 (delta 14751), reused 29792 (delta 14661)

Receiving objects: 100% (29884/29884), 57.47 MiB | 29 KiB/s, done.

Resolving deltas: 100% (14751/14751), done.

From git://github.com/CyanogenMod/android_packages_apps_Trebuchet

* [new branch] ics -> github/ics
[HTC Sensation] blahbl4hblah:
Close the terminal and then just do repo sync instead. That happened to me as well before
[HTC Sensation] bigevild:
blahbl4hblah thank you for the quick reply love the guide
[HTC Sensation] blahbl4hblah:
The toolchain path is fine, your the second person to complain about

IF the person learns about kernel compiling later on, it IS required so I am not going to remove it.

Why do source build/envsetup.sh when it's exactly the same thing as . build/envsetup.sh

If you can give me a reason how either is different, I may change it but till then I will not
[HTC Sensation] blahbl4hblah:
No problem at all, just let me know if there's any issues
[HTC Sensation] matt95:
Well I don't know how but I solved my problem... That's good :-)
[HTC Sensation] blahbl4hblah:
Glad that you have it fixed
[HTC Sensation] xXkingsromXx:
switched from 32 bit to g4 stuck cant install sdk 32 bit did fine any help please!

2a. Download Android SDK at http://developer.android.com/sdk/index.html

2b. Extract it to your home folder [Ex. /home/YOUR-USERNAME/android/sdk]
[HTC Sensation] sparksco:
When my 7y/o daughter comes home this summer I'm going to set up her pc with linux and guide her through this step by step :) Even though it is pretty self explainable she is only 7y/o.
[HTC Sensation] bigevild:
That repo sync solved the problem, just doing my first compile now
[HTC Sensation] blahbl4hblah:
Alright, let me know how it goes

I'm working on getting Torch to work maybe
[HTC Sensation] Vorbeth:
I suppose I prefer to keep flags like those in local script's rather than making them global.

eg, if they every want to compile something to run on Linux, having them global will break that
[HTC Sensation] sparksco:
I noticed this edit in the OP should fix the issue of defining CROSS_COMPILE for building 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 would hope that if someone was knowledgable enough to compile something in linux, they would know how to make/run a seperate linux script to use when/if they choose to do so. And they would also know to not have it in their .bashrc at the time of compiling. If they are compiling things either android or linux, they should know what gcc is, how it's needed to compile things, and also how it is built into the linux OS itself. This just gives people (mostly noobs) a gateway into understanding how the android kernel needs a arm-eabi toolchain to compile a HTC kernel, and therefore can not use the standard gcc that is built into the linux OS.