yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] HaTeNL:
I did everything as in the guides, now I get this error when I want to build:

kay@Kay-Ubuntu:~/android/system$ . build/envsetup.sh && brunch galaxysmtd
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
Looking for dependencies

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_galaxysmtd
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_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_galaxysmtd
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_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Gestopt.
[Galaxy S I9000 Android Development] DROCSID:
Type "rm -rf prebuilt; repo sync -l prebuilt"
[Galaxy S I9000 Android Development] flowerpower84:
On the end remove the instruction for download and run teamhacksung build script and replace with:

. build/envsetup.sh && brunch galaxysmtd

Inviato dal mio GT-I9000 con Tapatalk 2
[Galaxy S I9000 Android Development] HaTeNL:
Thanks! It seems to be working now :)

By the way, I think this is not right, in the file "/etc/udev/rules.d/51-android.rules",

#Samsung SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"

I got an error at boot which said that the attribute SYSFS{idVender} does not exsist. I found out that SYSFS should be replaced with ATTR.
[Galaxy S I9000 Android Development] kasper_h:
I actually never did any of the USB stuff, wasn't necessary....
[Galaxy S I9000 Android Development] flowerpower84:
One week ago I have copiled cm9 source without errors, but today (after repo sync and rebuilt) I have this error: http://pastebin.com/pUTcxTD3 Can anyone help me?

Thanks!
[Galaxy S I9000 Android Development] kasper_h:
No issues here. Did you do anything to the source code/download any patches from gerrit?
[Galaxy S I9000 Android Development] flowerpower84:
No, I have ubuntu 10.04 LTS on a virtual machine and after this error I have recreated a new virtual machine on vmware workstation but I have again the problem!

What does it mean:

make: *** No rule to make target `vendor/samsung/galaxysmtd/proprietary/bin/rild', needed by `out/target/product/galaxysmtd/system/bin/rild'. Stop.

?
[Galaxy S I9000 Android Development] kasper_h:
De foutmelding betekend dat het builden van rild niet lukt. Nu is dat logisch: rild wordt niet gebuild, maar moet van de telefoon gehaald worden (met het extract-files.sh script). Is de map vendor/samsung/galaxysmtd/proprietary/bin/ aanwezig? En welke bestanden zitten hier in?
[Galaxy S I9000 Android Development] kasper_h:
Sorry about my previous post in Dutch. I was helping someone else with cm9 building in Dutch and typed a reply to you at the same time :(

The error means rild is missing (it would not be build). Did you execute the extract-files.sh script? Any errors?

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] Fuma:
Hi

been trying to build on my own...and got some errors.

followed the guide here and the git guide(first link)

i'm runnig ubuntu 11.10 ,java and android sdk are installed and working.

i got the repo synced fine ,paths are fine , i got all the directories i suppose to have( i hope) and still cant build.

So i have 2 questions :

what does "Trying dependencies-only mode on a non-exiting device tree" mean ? (if repo synced fine why does that show?)

i cant build because i have "make:*** No rule to make target 'bacon'. Stop." error?

http://pastebin.com/wTzWQ6gy
[Galaxy S I9000 Android Development] kasper_h:
If I read the errors correctly, you use the teamhacksung build script. I would try the default build script...

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] Fuma:
me again,still learning...

so i tried to build. everything went well this time around... repo synced fine.

used the default build scrip.

i got few errors and the build stopped after about an hour of building.

bigger log - http://pastebin.com/Xx55hCZR

i guess these are not suppose to happen... error with kernel .

but i don't understand whats wrong with it .

thanks for any help :-)

edit :

so found that i'm missing a dependency called lrzip.

and installed it.

trying to build again.
[Galaxy S I9000 Android Development] kasper_h:
It's a bit hard to judge from behind my own computer :)

I would double-check:

1. do you have all packages installed (especially when using a 64bit system)?

2. did you make a correct local_manifests.xml file in .repo directory?

3. did you run the get-prebuilts script?
[Galaxy S I9000 Android Development] Fuma:
Thank you for your help!

(sorry for the long post)

i'm on ubuntu 11.10 64bit in vmware.

followed this 2 : http://xdaforums.com/showthread.php?t=1505006 & http://xdaforums.com/showthread.php?t=1533711

and google for trouble...

I'll tell you what i did.

i got the java packages and installed the jdk ,then android sdk (installed the platform tools), wrote the bash file,made sure adb works.

at this point i entered the following :

[SIZE="3"]mkdir -p ~/bin
mkdir -p ~/android/system
curl [url]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/url] > ~/bin/repo
chmod a+x ~/bin/repo[/SIZE]

rebooted. added path:bin to bash. setup the repo & sync it.

now this :

[SIZE="3"]~/android/system/vendor/cm/get-prebuilts[/SIZE]

the local manifest :

[SIZE="3"]<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_galaxysmtd" path="device/samsung/galaxysmtd" />
<project name="CyanogenMod/android_device_samsung_aries-common" path="device/samsung/aries-common" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_aries" path="kernel/samsung/aries" remote="github" revision="android-samsung-3.0-ics" />
</manifest>[/SIZE]

i checked and the paths were fine because at an earlier try i changed them and it didnt work.

and added to bash :

[SIZE="3"]#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[/SIZE]

how the bash looks like : http://pastebin.com/6J0XymBn

now

./extract-files.sh

and again

./get-prebuilts

( idownloaded the exract.sh from here)

did prebuilts twice because at earlier tries the extracr.sh didnt work otherwise.

synced repo again and

. build/envsetup.sh && brunch galaxysmtd.

first try was the error above and i found that i miss some dependencies so i installed lrzip.

but i still get the same errors.

but this time at a different place... i guess more dependencies?

http://pastebin.com/qWK5N2pC

Thank again for your help and sorry for the long post.
[Galaxy S I9000 Android Development] kasper_h:
If you go to the directory:

~/android/system/kernel/samsung/aries/arch/arm/boot/compressed

do you see the file:

piggy.lzma.S

?
[Galaxy S I9000 Android Development] Fuma:
Yes,i see it...
[Galaxy S I9000 Android Development] kasper_h:
Odd, I don't know what causes this...

Two things you can do:

1. reboot.

2. try to reinstall all needed packages (if a package is already installed it will be skipped, so it is just to check whether all the packages are there).

I don't know if anyone else in this thread is building on a 64bit machine? I build on a 32bit machine, so maybe there are some tricks to get it working on 64bit machine which are missing from the guide in the OP?
[Galaxy S I9000 Android Development] Fuma:
thanks for all the help .

i already tried installing everything thats on the guides again,

all present.

i know of at least one 1 package extra for 64bit so maybe theres more...

will try some more and see if i get it right

if all failes->32bit.
[Galaxy S I9000 Android Development] kasper_h:
Good luck. I decided to go with 32bit ubuntu for the simple reason it is more often used than 64bit and it needs less packages :)
[Galaxy S I9000 Android Development] Fuma:
So after failing another build in ubuntu 11.10 64bit... I moved to ubuntu 11.10 32bit as suggested.

i get tons of warnings during the build, is that normal?

And error followed...

i have the packages installed ...what am i missing?

http://pastebin.com/VSaLCMcF
[Galaxy S I9000 Android Development] kasper_h:
Warnings are "normal". Most of them are for missing translation strings and such things. Nothin to worry about.

But the last line (make: *** Waiting for unfinished jobs...) is no good. I guess building didn't finish?!
[Galaxy S I9000 Android Development] Fuma:
no,didnt finish.

dont understand the error 1.

dont know whats missing.

:confused:
[Galaxy S I9000 Android Development] kasper_h:
I actually did things slightly different than in the OP. So if you would like to try that, be my guest :)

I would do is start with a fresh Ubuntu 12.04 32 bit and then:

-Install Android SDK

-Open terminal window & type:

$ cd android-sdk-linux/tools

$ ./android

-Install Android SDK Tools & Android SDK Platform-tools

-Open terminal window & type:

$ apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386

$ mkdir -p ~/bin

$ mkdir -p ~/android/system

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

$ chmod a+x ~/bin/repo (Reboot your computer after this)

>>reboot pc

-Open terminal window & type:

$ cd ~/android/system/

$ repo init -u git://github.com/CyanogenMod/android.git -b ics

$ gedit .repo/local_manifest.xml

>>add:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_galaxysmtd" path="device/samsung/galaxysmtd" />
<project name="CyanogenMod/android_device_samsung_aries-common" path="device/samsung/aries-common" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_aries" path="kernel/samsung/aries" remote="github" revision="android-samsung-3.0-ics" />
</manifest>

>>save & close

$ repo sync -j16

>>if not successful (often happens) rerun repo sync (without -j16)

$ ~/android/system/vendor/cm/get-prebuilts

$ cd ~/android/system/device/samsung/galaxysmtd

$ ./extract-files.sh

$ cd ~/android/system

$ repo sync

$ . build/envsetup.sh && brunch galaxysmtd

Don't install anything else, don't do anything to your .bashrc. Don't open/close new terminal windows, just follow as strictly as possible!
[Galaxy S I9000 Android Development] Fuma:
thanks! will try this.
[Galaxy S I9000 Android Development] abalam:
A better explanation is not there. kasper has helped me in this way and thanks to him I now run my own builds.

Thanks Casp!!;)

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] Fuma:
Hi kasper did it your way. and it didn't finish the build (again) unfortunately.

A clean 12.04 32bit was used and

all went fine until the extract files script,it couldn't find adb so I edited bash with

than it worked but couldn't pull the modem.bin(permission denied,tried chmod it didn't work and for some reason with sudo it couldn't find adb again) so i pulled it manually and put it in the right folder.

and then started to build. got a warning about java version but building continued.

and after 2 something hours it stopped.

thats the same error that showed up on 11.10 too.

any ideas what to do next?

what packages other than the one you wrote could be missing/needed?

and thanks again for all the help!

EDIT : collect2: ld terminated with signal 9 [Killed] - from what i read is caused due to low ram size...

EDIT2 :

: Finally! :D So low ram was the problem...there is a spike in RAM usage near the end of building,1GB RAM wasn't enough. searched the wrong error first time around. changed to 2GB ram and build was done in less than 2 hours.

and got my first unofficial...(preferred kang better)

:good:

Thanks kasper again for all your help!!! :highfive:
[Galaxy S I9000 Android Development] kasper_h:
This may be possible. I did not have a successful CM9 building on my virtual machine (which has 1GB RAM), whereas it works perfectly on my standalone ubuntu (3GB RAM).

Which ROM are you currently running, CM9?
[Galaxy S I9000 Android Development] Fuma:
got it to work (edited the post just before you replied.

And yes i'm running stock cm9.

I guess a vmware will need a minimum of 1.5GB ram.I setup mine with 2GB and the build went fine and pretty quick too.

so now that i can build i can learn new stuff...:)
[Galaxy S I9000 Android Development] kasper_h:
Great, happy you solved it!

The speed of building is the most important reason I switched to a standalone ubuntu in stead of vmware...
[Galaxy S I9000 Android Development] Fuma:
wrong thread
[Galaxy S I9000 Android Development] DROCSID:
Jep, noticed that too. Tried on several laptops on several resources (RAM / CPU etc) but the only VMWare can work fast with building is if you install it

on a VMWare host on an ESX server. But who has that at home ^^

For whom it may concern; it's no hard thing reinstalling a desktop or laptop with Linux (like Ubuntu). Even without a dual boot you'll be able to do e-ve-ry

thing. There are so many alternatives, there's Wine, you can build your ROM multiple times faster, superbe system and so on.

Just follow the clear and easy guide by Kasper (and/or Perka) and you're good to go.

Verstuurd van mijn GT-I9000 met Tapatalk
[Galaxy S I9000 Android Development] Fuma:
What is your avarage time(if you checked) for a build?

On vmware if i leave it unattended it takes less then 2 hours.
[Galaxy S I9000 Android Development] kasper_h:
I guess around 45 minutes.
[Galaxy S I9000 Android Development] DROCSID:
Here too!

Verstuurd van mijn GT-I9000 met Tapatalk
[Galaxy S I9000 Android Development] kasper_h:
And 10-12 minutes for only kernel :)

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] abalam:
35 min :D

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] kasper_h:
My laptop is getting old I guess :D

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] abalam:
Mine has 2Ghz and 4GB RAM. fast enough

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] malcho:
How about dual xenon with 8 cores,96gb ram and 1 tb storage on vmware?

Butt it's not mine:)Still i can use it
[Galaxy S I9000 Android Development] abalam:
:eek::eek::eek::eek::eek::D:D :thumbup:

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] kasper_h:
What build time can you reach?

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] malcho:
This is server that is shared with other virtual machines.

Since i do clean build(completly delete out folder) about 50 min.
[Galaxy S I9000 Android Development] kasper_h:
That's not bad :)

How often should one clean the full out folder? I do it almost never...

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] Zatta:
I builded cm7 in 4 hours, I don't dare to try cm9... But at least I have a very large penis :D

Taptalked u see
[Galaxy S I9000 Android Development] malcho:
Every build
[Galaxy S I9000 Android Development] malcho:
I'm not bad also:)At least no one complains:)
[Galaxy S I9000 Android Development] DROCSID:
LOL!

CM Team has got 3x these servers:

http://www.dell.com/us/business/p/poweredge-r610/pd

Pretty damn sexy things to have, whehe. Guess with

several VM Hosts on top. These ones can build a nightly

in about 10 minutes.
[Galaxy S I9000 Android Development] malcho:
Vmware Esxi5 could do the job.Free.

Anyway,what u use for backup?

I use Clonezilla.Pretty good for full backup and disk clone.
[Galaxy S I9000 Android Development] DROCSID:
Jep, Clonezilla here too. Checked and tested several things, but Clonezilla

is the best there is. Fast and easy ;).
[Galaxy S I9000 Android Development] kasper_h:
Now, my CM9 stops already after a few minutes with the following error:

make: *** Er is geen regel om doel 'out/target/common/obj/JAVA_LIBRARIES/libarity_intermediates/javalib.jar' te maken, nodig voor 'out/target/common/obj/APPS/Superuser_intermediates/classes-full-debug.jar'. Gestopt.

Are others building successfully? I really don't understand what the problem is...
[Galaxy S I9000 Android Development] DROCSID:
I'll give it a try when I'm back at home later this day!
[Galaxy S I9000 Android Development] abalam:
Just make a build. just for check delete al my files in out to make a brand new clean build. No problem on this site. No error

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] kasper_h:
Thanks, I just prepared a completely fresh ICS repo. Now it builds fine. Guess it's one of the patches. Started a document to keep track of all my code changes (both home-made and downloaded from gerrit).

Advantage is that I did take a good look at all my old patches to determine which to keep (or not keep :)).
[Galaxy S I9000 Android Development] Fuma:
I have a question,If i picked cheeries on a test branch and i want to ignore them the next build,and go back to main branch isnt it enough to go to the dir that the cherry is and git reset ->git checkout master

and then repo sync?

i have some persistant changes that wont go away after repo sync and i dont know why cause i didnt commit any changs.
[Galaxy S I9000 Android Development] kasper_h:
If I want to get rid of a cherry, I usually actively remove it using "git rebase -i SHA_OF_AN_OLDER_PICK". Using qgit you can always check the state of a certain project, so that you can be sure whether it is removed.
[Galaxy S I9000 Android Development] Fuma:
thanks been trying to use qgit but it didnt show the git on the system...probably was too late for me to read right :-)
[Galaxy S I9000 Android Development] kasper_h:
I finally found the cause of my problems:

I removed some packages from my repo (Calculator/Music/VideoEditor). When Calculator is build, libarity_intermediates are created. After I removed Calculator, all was fine. Until I cleaned my full /out directory. When rebuilding after this cleaning, libarity_intermediates were not recreated during Calculator building (as it was removed from building). And SuperUser also needs these libarity_intermediates. So that's why the error message was as shown above: libarity_intermediates are needed for building SuperUser.
[Galaxy S I9000 Android Development] abalam:
Glad it is solved :D

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] kasper_h:
Thanks to you as well, as I finally understood the function of this folder :)
[Galaxy S I9000 Android Development] rubervalrfl:
Good afternoon, I would like to know about compiling GAPS to CM9, someone has something that can help or link?
[Galaxy S I9000 Android Development] malcho:
Hello,

Strange question?

What you mean by compile?Google apps comes as separate packages and i don't think that it has sources.

Sent from CNA
[Galaxy S I9000 Android Development] kasper_h:
Gapps can not be compiled yourself, that's why there is a separate download. Technically, it is possible to have the gapps automatically included in the zip-file. However, as gapps are automatically backupped and restored when updating, I don't really see the benefit. In addition, you are not allowed to share your own GAPPS-containing builds.
[Galaxy S I9000 Android Development] malcho:
Hej kasper_h,

How to include google apps in rom?

I was looking for guide butt i cannot find it.

Thanks in advance

Sent from CNA
[Galaxy S I9000 Android Development] rubervalrfl:
Thank you both, I have to do a package with the app's straightforward then.
[Galaxy S I9000 Android Development] kasper_h:
I've never done it, but you should be able to make a gapps folder in the /vendor/cm/common/prebuilts folder and have the mk-script include these apps (just take a good look at how the bootanimation/sounds etc. are added by the script and adjust it so it also includes the gapps).
[Galaxy S I9000 Android Development] malcho:
Ok i will try.

Thanks

Sent from CNA
[Galaxy S I9000 Android Development] rubervalrfl:
thanks, that was what I wanted to hear.
[Galaxy S I9000 Android Development] rubervalrfl:
Guys, someone could tell me if there is already manifest in the CM for jb?

cd ~ / cm / jb; rm-rf. repo, repo init -u http://github.com/CyanogenMod/android.git -b jb

speech that does not exist.
[Galaxy S I9000 Android Development] kasper_h:
Shouldn't it be jellybean, so full name not jb?
[Galaxy S I9000 Android Development] kasper_h:
Anyone here tried building jellybean yet?

Verstuurd van mijn GT-I9000
[Galaxy S I9000 Android Development] malcho:
I successfully build cm10.

Same procedure as cm9.
[Galaxy S I9000 Android Development] abalam:
What name you have get, jb or jellybean

Sent from my GT-I9000
[Galaxy S I9000 Android Development] matt73300:
That's jellybean, like branch names in GitHut repo ;)
[Galaxy S I9000 Android Development] malcho:
Yes jellybean.
[Galaxy S I9000 Android Development] abalam:
Oke, when I am at home I make a repo end see what I can do with some tweaks and a nice kernel:D:D

Sent from my GT-I9000