yashsingh1/xdaforums huggingface dataset:
[Defy General] junesoung:
Build and install cm10

it doesn't install successfully.

no progress in Starting Installation
[Defy General] Kayant:
[MENTION=4862590]darkfr3ak[/MENTION]

Are you building on Ubuntu? I think you might be missing a package it just happened to my on Arch I was missing a package called bc check if you have it installed that might be the issue
[Defy General] darkfr3ak:
Yes, i'm using Ubuntu. On my "main"-machine (on which i tried the first two builds) runs 13.04, on the second one (my homeserver) it is 12.10.

In the log it mentions the package "module-init-tools", but i checked this an this package is installed. Maybe its another package which isn't installed. I will try to compile it again tomorrow, on a completely fesh ubuntu and report back.

What i forgot to mention earlier: after the first compile error i had to install a package (lib32z1 on ubuntu 13.04), which isn't listed in the first post.

Small Update:

I think its compiling now on a new installed Ubuntu 13.04 (in a virtual machine). It seems that the kernel could be built, and its compiling a lot of java libraries at the moment. I think the previous builds failed because some packages from the first post weren't installed correctly. I had to remove the \ from the list of packages for my ssh-client, an it installed a lot more packages than before.

And another Update:

I could build SlimBean :) Thanks for your hints, Kayant! It simply was a missing package. And i sat there for 3 days and tried to build -.-
[Defy General] labsin:
For building cm-10.1 you need to change the repo init to 'cm-10.1' and then symlinc '/build/path/.repo/manifests/local_manifest_mb525.xml' to '/build/path/.repo/local_manifests/local_manifest_mb525.xml' (after first creating that folder) then repo sync and everything the same as jellybean.
[Defy General] Mister Ypsilon:
I tried to build Quarx's latest cm-10.1 sources with the latest linaro toolchain, but I got an error which I couldn't fix:

hardware/ti/omap3/dspbridge/libbridge/perfutils.c: In function 'PrintStatistics':
hardware/ti/omap3/dspbridge/libbridge/perfutils.c:73:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[Defy General] Kayant:
I don't advice building with the latest toolchain am guessing you mean 4.9 or 4.8 with 4.7 it should be fine but you will need a bunch of patches in different places because like in your error report I lot of things will break but all the patches can be found in review.cyanogenmod by search linaro
[Defy General] bone101:
Del.
[Defy General] vedhasd:
well earlier i had 100gigs full partition for ubuntu, but now i am on wubi of 20gigs installation, and after having setup sdk and libs get around 10gigs free, so my question is can i sync the cm setup on diff drive mounted(shared with win8) and leave the home folder only with essentials? sorry this may be really dumb Q, but wanted to ask! :)
[Defy General] TJKV:
If the shared partition is fat32 or ntfs you might have some problems. Two files that have the same name but different capitalization is allowed on ext3/4, but not on fat32/ntfs. If the source or any file generated while compiling meets this scenario then you'll be in trouble. But I don't know if such a scenario will arise.
[Defy General] t1moc:
Add more information to this section:

Check you have ccache installed with the command:

ccache -V

---------- Post added at 04:38 PM ---------- Previous post was at 04:12 PM ----------

I'm having this same trouble trying to build the latest Quarx.

============================================
build/core/base_rules.mk:529: warning: overriding recipe for target `/home/diablo/cm10/out/target/product/mb526/system/bin/fsck_msdos'
bootable/recovery/dosfstools/Android.mk:21: warning: ignoring old recipe for target `/home/diablo/cm10/out/target/product/mb526/system/bin/fsck_msdos'
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
make: *** /.config: Is a directory. Stop.
diablo@diablo-L ~/cm10 $

The solution:

I run a KDE desktop, so this is impractical. Is there an ENV variable or something i can use to fix this?
[Defy General] Rudjgaard:
What's the general rule of thumb (if any) for setting up device compatibility?

Once you have cm device tree how do you adjust it to specific vendor/XX structure?

The most trouble i encounter is when i have to create the vendor/CUSTOM_VENDOR/products/device.mk file

I thought about checking other files' setup but it seems to be different from device to device and not just from rom to rom

Thanks for any info
[Defy General] Schattenspieler:
This is what I get, when trying to run the commands for the Ubuntu 13.04 packages, running in my VM:

(The first line seems to be processed correctly, hence I did not include all its lines of terminal outpout.)

ccm@ccm-virtual-machine:~$ zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev
zip warning: name not matched: curl
zip warning: name not matched: libc6-dev
zip warning: name not matched: libncurses5-dev:i386
zip warning: name not matched: x11proto-core-dev

zip error: Nothing to do! (bzr.zip)
ccm@ccm-virtual-machine:~$ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386
libx11-dev:i386: command not found
ccm@ccm-virtual-machine:~$ libgl1-mesa-dev g++-multilib mingw32 tofrodos
libgl1-mesa-dev: command not found
ccm@ccm-virtual-machine:~$ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool pngcrush
python-markdown: command not found
ccm@ccm-virtual-machine:~$

I'm no linux user, so I do not have any clue, what's (not) going on. Besides the obvious that apparently something the command implies ain't there.

What did I miss? And it seems, JAVA is needed much earlier in the setup process than 5. For example already at 1., when running android.
[Defy General] Mister Ypsilon:
Seems like you're trying to run the command from the OP line by line. It is one single apt-command. How do you enter it? It should work well if you copy&paste it from the post into the shell.

When running android, you probably need JRE, which is required to run java programs. When compiling a ROM, you also need JDK, which contains the java compiler.
[Defy General] MarcinRN:
as Mister said don't paste each line seperately but copy the whole command. anyway, for ubuntu 13 i recommend this guide:

http://xdaforums.com/showthread.php?t=2224142
[Defy General] Schattenspieler:
Hmm, someone wrote, that it helped to delete the "/" from the end of the lines, can't find the post now, though. And it stops with some "command not found" either way.

Anyway, I'll try the thread linked, as it has comments on what the commands actually do (or should do). That really helps to understand what's going on and what's going wrong, if so. And it starts with JAVA … Thank you so far
[Defy General] Mister Ypsilon:
If you write the whole command into one line, it's necessary to remove the slashes. But you mustn't remove them if you type in multiple lines or copy+paste the command.

If you hit enter without a slash, the command will be run. If you hit enter after a slash, the shell lets you continue your command in the next line. That's what the slashes are for.
[Defy General] Schattenspieler:
Good to know, I thought of something like that. And, yes, I've tried the command as posted first, but it failed with "command not found".

Found this: [Ubuntu][Script][7/28/13] AET - Android Environment Tool Beta4

Seems to do all the hassle just fine. (:
[Defy General] UncleDan:
I am finally trying to compile on my own:

* base system: ubuntu-12.04.3-server-amd64 (virtualboxed)

* android version to compile: CyanogenMod 10.2 by Quarx

Only two notes if this can be useful to someone.

Step 4: repo url changed:

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

Step 5: I had to:

$ sudo apt-get install python-software-properties

in order to:

$ sudo add-apt-repository ppa:webupd8team/java

The rest was perfect.
[Defy General] Eluveitie:
Great and interesting guide , helps alot for newbies like me ! thanks ;)
[Defy General] Andrey Piekas:
Thank you. nice guide
[Defy General] Codeseven:
what are the commands to sync and compile 10.2 for the mb525?
[Defy General] MarcinRN:
for available branches go to https://github.com/Quarx2k/android and click on branch. these are the only you can pick.
[Defy General] rsk_kelkar:
help needed

[MENTION=4173406]Kayant[/MENTION] Thanks for the wonderful guide but i have some doubts regarding the same. I am trying to follow your guide on ubuntu 12.04.3 64bit but on step 5 there is a package you have mentioned libgl1-mesa-glx:i386 which has a dependency on libgl1-mesa-dri:i386.

So when i install libgl1-mesa-dri:i386 and reboot i cant boot up into ubuntu again. I get error saying "Could not write bytes: broken pipe". Is there any solution for this or any workaround?
[Defy General] coolshahabaz:
Port to funbook

[MENTION=4173406]Kayant[/MENTION] [MENTION=4148153]TJKV[/MENTION] both these guys are busy with their own omini n slim ROM development so i need some help from others...

I'm working on Slim 4.4.2 n forked this project from [MENTION=4148153]TJKV[/MENTION]

repo init -u git://github.com/tejus/android_manifest.git -b slim4.4

used this to sync

repo sync

I've been downloading the project till now I've synced about 8.1GB still its shows 4-5GB ramaining....

Problem is I want to port the ROM to a different device (Funbook) not defy so any idea what step I need to follow to achieve it....
[Defy General] TJKV:
In short, grab the device tree for your device and make it fit slimroms build process. You can refer to existing device trees for other slimroms devices like defy. The details will have to be figured out by you though, there is no set process or guide.
[Defy General] coolshahabaz:
this device is actually AllWinner A10 tab can you PM me the overview of process...:confused:
[Defy General] TJKV:
Like I said there isn't a defined process. You'll have to study the device tree for your device for some other rom, study the device tree of a typical slimroms device, compare, and then make the necessary changes. If there is no device tree for some other rom for your device you'll have to figure out how to make one. Google around maybe someone has explained it better...
[Defy General] coolshahabaz:
I got this

[URL="https://github.com/allwinner-dev-team"]https://github.com/allwinner-dev-team[/URL]

[URL="https://github.com/linux-sunxi"]https://github.com/linux-sunxi[/URL]

edit:

complete details of Device chipset

[URL="http://www.allwinnertech.com/en/product/A10s.html"]http://www.allwinnertech.com/en/product/A10s.html[/URL]
[Defy General] TJKV:
Good for you. Good luck!
[Defy General] coolshahabaz:
[MENTION=4148153]TJKV[/MENTION] or I should stick with defy till the learning curve ends....BTW after the sync ends (for defy)...should I directly compile it or changes is to be made ??
[Defy General] lvlouisaslia:
Thanks.

I am newbie to CM, trying to build my own images now.
[Defy General] :
I have this issue too. Please someone help me I am stuck in this screen and I have done a clean install of Ubuntu several times without success :(
[Defy General] Shubhamqweasd:
approximately how much time itll take to compile a build with this machine ;

CPU- pentium D 3.0 Ghz

RAM- 2.5GB

HDD - 5400RPM

???

also airtel provide a gud plan , for 1299 pm , 2mbps till 30gb then 256kbps unlimited .. but m using this same plan for Rs900 pm ..
[Defy General] brajesh.sharma87:
around 3-3.5 hrs (or may be more)
[Defy General] Kayant:
Great to see more people on this you lot need to stop being lazy and learn :p ...... That's the point

of XDA and it's many devs that are willing to help if you're willing to learn...

Yh I would say that's a good estimation for your system....... wait is it single core or dual core

if's it's single then it might take a lot longer than that since it's not using multi-threading when compiling even if it's a higher clock speed than mine or brajesh.sharma87 but you ram is more that ok..... better than my 2gb :p...... Internet should be ok since source download is equal to about 4GB..... hope you try it and like brajesh.sharma87 said if you get errors hit us up....
[Defy General] ldiomedi:
well, this is a very nice guide and I'm trying to make a build just to learn a little for now. Then will see. But i got my first error and I dont totally understand. This is it:

build/core/base_rules.mk:79: *** Module name: tiwlan.ini
build/core/base_rules.mk:80: *** Makefile location: hardware/ti/wlan/wl1271/config
build/core/base_rules.mk:81: *
build/core/base_rules.mk:82: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:83: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:84: *
build/core/base_rules.mk:85: * optional, debug, eng, tests, samples
build/core/base_rules.mk:86: *
build/core/base_rules.mk:87: * If the module is expected to be in all builds
build/core/base_rules.mk:88: * of a product, then it should use the
build/core/base_rules.mk:89: * "optional" tag:
build/core/base_rules.mk:90: *
build/core/base_rules.mk:91: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:92: * Android.mk for the affected module, and add
build/core/base_rules.mk:93: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:94: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:95: * makefile(s) where it's necessary, if
build/core/base_rules.mk:96: * appropriate.
build/core/base_rules.mk:97: *
build/core/base_rules.mk:98: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:99: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:100: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:101: * build/target/product/core.mk
build/core/base_rules.mk:102: *
build/core/base_rules.mk:103: *** user tag detected on new module - user tags are only supported on legacy modules. Alto.
ldiomedi@ldiomedi-Lenovo-G560:~/cm$

It seems to be something whit a variable about modules. I think. But dont know what to do. Any idea?? thanks in advance

btw, I'm building cm10 for MB526. Try to download the sources for AOKP but before to start sync the repo got a error. In other moment I'll post that.

Thanks...
[Defy General] Kayant:
Don't worry that's normal I got it as well It's an issue with quarx repo ---- giv me a sec and I will post the fix...

Edit - cd into your source folder/hardware/ti/wlan then run this command in terminal ---

find ./ -exec grep -l "LOCAL_MODULE_TAGS := user" {} \; -exec sed -i.bak s/"LOCAL_MODULE_TAGS := user"/"LOCAL_MODULE_TAGS := optional"/g {} \;
[Defy General] ldiomedi:
Will try the command later. It look for the char LOCAL_MODULES_TAGS:= user and replace for optional, right? Thanks for the quick answer. If I can compile cm10 will try AOKP. Like it much more.

Enviado desde mi MB526 usando Tapatalk 2
[Defy General] Kayant:
Yep you know your commands ;)..... and good luck
[Defy General] brajesh.sharma87:
If you have not ran this command yet then please stop. I will advise u something else.

@kayant: actually i reverted this change coz it modifies many unnecessary files which may cause problem later. The problem only is with 3 files in /hardware/ti/wlan/w1271
[Defy General] ldiomedi:
I ran the command but it don't work. Sync again and edit 2 or 3 files on that folder and it work. For now it's going...

Enviado desde mi MB526 usando Tapatalk 2
[Defy General] Kayant:
yh completely forgot :p .... you can still use the command which I used for mine but you have to cd to /hardware/ti/wlan/w1271 then use it which I forgot to add ....anyways good thing brajesh.sharma87 was there bail me out and it's working now :)
[Defy General] alexandre.ladeira:
:good: great tutorial! will try to compile o9n my work machine.
[Defy General] wizwin:
File size stats for AOSP JB from google. After 'repo sync' and code is extracted:

root@host:/home/user/Android/JellyBean# du -sh .repo/
9.9G .repo/

root@host:/home/user/Android/JellyBean# cd ..

root@host:/home/user/Android# du -sh JellyBean/
16G JellyBean/

Queries related to CM10:

1. Is there a way not to download files for all devices but only for jordan/MB525 with repo? (I had done this once for ICS and I guess I got the source code for all supported devices in the 'devices' directory)

2. Is it possible/easy to add/merge CM10 'jordan' files to AOSP and still build a CM10? (I would like to avoid another 4-9 GB of download from Cyanogen git)

3. If anyone has a link/guide to adding new devices to CM please post a link. (No not the Cyanogen Wiki, I did not find the required details there)

Thank you for this thread.
[Defy General] Kayant:
1. Yes you can all you need to do is remove what parts you don't want to sync from your mainfest.xml in the .repo folder.

2.Don't know I have never tried it but It shouldn't be hard..... You can build full AOSP with the CM repo all you need to do is use the lunch combo instead of brunch then select full_mb525 or full_mb526 and mka otapackage bacon....

3. Best and easiest way to do it is to look at the cm vendor folder and see how a new device is added through the commits then go to the a device repo and study and copy a cm.mk to your device's device repo then change the config in the cm.mk to match your device...
[Defy General] wizwin:
Thank you for the reply, things are getting clearer now.

Could you/anyone please suggest a 'ok' build machine configuration that might be able to build in about an hour or so. I have a plan to assemble a budget build machine. Build stats (including the hardware details like CPU, RAM, MB, HDD) from any of you would also be fine.

Also have you tried using 'ccache' for CM build?
[Defy General] skeevydude:
For the past 2 days I've been working on getting ParanoidAndroid JB to compile. After some tedious searching, I finally figured out all the tiwlan bs, only to get hit with the overlay <add-resources> error. My question is, does anyone know what needs to be merged from Quarx's android_framework_base into the PA android_framework_base?

I thought about doing a full merge of Quarx's JB repo into Paranoid JB, but I don't want to accidentally overwrite some of the PA files by accident (I've had it happen when merging Maniac's CM7 Defy repo over Quarx's CM7 Bravo repo).

device/moto/jordan-common/overlay/frameworks/base/core/res/res/values/arrays.xml:36: error: Resource does not already exist in overlay at 'config_vendorServices'; use <add-resource> to add.
device/moto/jordan-common/overlay/frameworks/base/core/res/res/values/arrays.xml:37: error: Resource at config_vendorServices appears in overlay but not in the base package; use <add-resource> to add.
device/moto/jordan-common/overlay/frameworks/base/core/res/res/values/config.xml:270: error: Resource at config_alwaysEnableLightSensor appears in overlay but not in the base package; use <add-resource> to add.
device/moto/jordan-common/overlay/frameworks/base/core/res/res/values/config.xml:292: error: Resource at config_fmSeparateVolumeControl appears in overlay but not in the base package; use <add-resource> to add.

If it helps, I'm compiling for the Motorola Bravo, but I've already set up all the necessary files for Defy & Defy+ so when I'm done it'll work for all of us. And yes, I know I can just remove those lines in the overlay but I also know that they're there for a good reason. Any help would be appreciated. Thanks. My github page - https://github.com/skeevy420 (not everything is up, mainly the tiwlan crap I copied from CM9)

/I'm hoping you AOKP guys had this issue and already know which commits to merge.

//Since I've seen it asked quite a bit, compiling CM7\9 adds 10-15gb to my hd.

///AMD 4200+ Dual Core 64bit, 2GB ram..., 2hrs for CM7, 3hrs for CM9.

//With no files compiled (/out empty), CM7+9+10+PA take up 60GB of space.

/If you don't have much room left on your compile partition, then symlink /out to a different partiton/hard drive. If you have tons of ram (20+gb,) you could symlink /out to ramfs to save wear and tear on your drives -- Just remember, when using ramfs, to copy your rom to the HD when you're done compiling\before you shut down your PC or you'll lose it
[Defy General] Kayant:
Great work man ^_^ ..... I seriously don't like PA's setup it's so weird :p ..... but now to hear you have done all that already am happy but I

bit sad as brajesh.sharma87 wanted yo try it out for himself but anyways good job..... Yes I think git merging the two framework repos, settings etc should be fine since PA is based on the CM.... I had previously done that with Salad bar by rob43 and it worked perfectly without any conflicts ^_^..... if you can any conflicts then I think selective cherry-picking is needed for that look at my github my AOKP frameworks and sees the first few commits a cherry-picked..... report back on your progress and may the force be with you :cyclops:
[Defy General] Kayant:
Yh I use Ccache when I remember set it up :p...... but it does work great ;)...... In the pathway is a bit different.

hmmmm..... That's quite difficult on a budget but I will say the most important things are CPU and RAM...... The more cores

there are the faster the build are it can do multiple jobs at a time also more RAM there is the faster it will build....... and HDD

it depends but for one build you need about 25GB or a bit more....
[Defy General] skeevydude:
I did the same with rob43's salad bar but my clock ended up being only halfway up the bar -- you could see the top half but the bottom half was below the screen. ICS Salad Bar, not JB.

Now that I'm awake I'll give the merge a shot :)
[Defy General] claudiobastos:
Problems with first build

Hi,

I'm trying my first build for mb525 with Quarx2k and Epsylon's repos.

I'm using Ubuntu 12.04 64bits with gcc 4.4 (downgraded)

but but I'm stucki with some errors

in quarx2k I got these:

target thumb C: hostap <= external/hostapd/hostapd/driver_wilink.c
external/hostapd/hostapd/regulatory.c:56:26: fatal error: APExternalIf.h: No such file or directory
compilation terminated.
make: *** [out/target/product/mb525/obj/EXECUTABLES/hostap_intermediates/hostapd/regulatory.o] Error 1
make: *** Waiting for unfinished jobs....
external/hostapd/hostapd/driver_wilink.c:68:26: fatal error: APExternalIf.h: No such file or directory
compilation terminated.
make: *** [out/target/product/mb525/obj/EXECUTABLES/hostap_intermediates/hostapd/driver_wilink.o] Error 1

and in epsylon's I got these:

target thumb C: libtiOsLibAP <= hardware/ti/wlan/wl1271_softAP/CUDK/os/linux/src/ipc_wpa.c
hardware/ti/wlan/wl1271_softAP/CUDK/os/linux/src/ipc_wpa.c:38:22: fatal error: wpa_ctrl.h: No such file or directory
compilation terminated.
make: *** [out/target/product/mb525/obj/STATIC_LIBRARIES/libtiOsLibAP_intermediates/ipc_wpa.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/ti/wlan/wl1271_softAP/CUDK/configurationutility/src/wpa_core.c:43:25: fatal error: config_ssid.h: No such file or directory
compilation terminated.
make: *** [out/target/product/mb525/obj/EXECUTABLES/tiap_cu_intermediates/src/wpa_core.o] Error 1

Could someone help me ?

What can I do to fix these errors ?

Thanks in advance
[Defy General] brajesh.sharma87:
delete external/hostpad

Delete softAP.

Both softAP and hostpad is not ready for JB yet.

best of luck in compiling now. :)
[Defy General] Kayant:
This is just Awesome

It's great to see everyone finally trying some new.... I can safely leave source built roms to brajesh.sharma87 and skeevy420(I know you already know how to use git and work source ;) ) once you learn how to use git

which isn't too hard :)