yashsingh1/xdaforums huggingface dataset:
[LG Optimus G (International)] cdub50:
CM 10.1 build error

Hey guys,

Export includes file: frameworks/compile/llvm-ndk-cc/Android.mk -- /home/cdub/CM10.1/out/host/linux-x86/obj/EXECUTABLES/llvm-ndk-cc_intermediates/export_includes

host Executable: llvm-ndk-cc (/home/cdub/CM10.1/out/host/linux-x86/obj/EXECUTABLES/llvm-ndk-cc_intermediates/llvm-ndk-cc)

collect2: ld returned 1 exit status

make: *** [/home/cdub/CM10.1/out/host/linux-x86/obj/EXECUTABLES/llvm-ndk-cc_intermediates/llvm-ndk-cc] Error 1

EDIT:

Ok figured out the error above, but I am running into a different issue now below.

make: *** [/home/cdub/CM10.1/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes-with-local.dex] Killed

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

Edit: figured out this issue as well. Turns out it was due to not enough memory allocated to my build VM.

Cdub
[LG Optimus G (International)] arcardinal:
I've figured out how to sync everything I need. Now I'm getting this error when trying to build:

http://pastebin.com/ET6RgLKk

I'm hoping someone can help.
[LG Optimus G (International)] Haze028:
I've gotten that error before. I got past it by commenting out the two(I believe) references to midq it complains about. This is hack job though, since i haven't a clue what does but will build and operate fine, from my findings, commented out.

go to the transport.c file it talks about to the line it states and comment out the midq line it doesn't like. I can't remember the other file i believe also needs to be commented out, but if you try to build again after commenting transport.c line it will tell ya in the error.

Sorry i don't have a cleaner solution for you but, as i've stated, i'm not a programmer and most of the code goes over my head as well. That should get you building again. Hope it helps.
[LG Optimus G (International)] houstonn:
If you're compiling with 4.6 it should work fine. But if you use 4.7 then you need to use the wall flag or fix the files so that 4.7 can build

EDIT: by using the wall flag in the Makefile it will elimate those waybe uninitialized errors in all the files that will come up as those errors or like I said you can manually patch each files up :P digging around will get the commits that one needs.. sorry to quote yours Haze I meant to do a double quote but driving and using tapatalk doesn't yield great results lol
[LG Optimus G (International)] arcardinal:
Thanks for the replies. When I downloaded the Liquid Smooth source it includes both 4.6 and 4.7, but defaults to building with 4.7. I'll try to edit the necessary files.
[LG Optimus G (International)] tuxattack80:
temple run crash

I just built beanstalk ROM using team lgog source for att geeb along with the newest prima driver and the only bug that I've encountered (other than usb tethering) is temple run crashing. I know there is a commit that fixes the issue but I'm unable to find it. If anyone can point me in the right direction it would be appreciated.
[LG Optimus G (International)] houstonn:
if you have this commit in your frameworks/base http://code.google.com/p/android/issues/detail?id=55873 you want to revert it.
[LG Optimus G (International)] tuxattack80:
thanks for the share :good:
[LG Optimus G (International)] tuxattack80:
quick question? should I revert const from all entries?

believe I have it figured out, had to compare some other frameworks/base/native/android files from different roms on git. Building now so I guess we shall see the outcome. Thanks again houst0nn for the point in the right direction. Definitely new at all of this but having a great time learning it, now if only I could get beyond loops that write out "Hello World" then I may get somewhere lol.
[LG Optimus G (International)] arcardinal:
I have successfully built Liquid Smooth using Houst0nn's Rootbox kernel. When I flash the zip in the output folder I do not have any service (there are no APN's and I cannot save one) and no wifi. I am wondering what files I am missing?

Edit: I was able to compile with Smoocha and have WiFi and cell service working now. The only thing not working is the soft key backlights. The WiFi modules and lights module do not seem to be generated when the kernel is compiled. I'm hoping somebody can tell me what I'm doing wrong.
[LG Optimus G (International)] chillybean:
cherry pick these

http://review.cyanogenmod.org/49690 and http://review.cyanogenmod.org/49691
[LG Optimus G (International)] cdub50:
I was able to build after changing the make files Thanks chillybean. I have the text output of the build link below. The problem is the rom doesn't boot I get past the google logo, but then screen just flickers. I was trying to use linaro 4.8.2 gcc to build with and dvhexer's sources for device, vendor, and kernel.

[Got it figured out]
[LG Optimus G (International)] core720:
Fetching projects: 99% (422/426) Username for 'https://github.com':
[LG Optimus G (International)] Haze028:
How are you going about syncing the repo? Might be best to delete the folder, redo the whole int and sync process.
[LG Optimus G (International)] core720:
Whats folder?

Enviado desde mi LG-E975 usando Tapatalk 4
[LG Optimus G (International)] Haze028:
If you've yet to complete a sync, i would delete the working-dir and start over, seems like something got a little messed along the way
[LG Optimus G (International)] core720:
I try to delete and start over

Enviado desde mi LG-E975 usando Tapatalk 4
[LG Optimus G (International)] core720:
which is the local_manifests for E975?.....AOKP
[LG Optimus G (International)] core720:
Error build AOKP for LG G E975, building 20 min and...

host C++: libicuuc <= external/icu4c/common/patternprops.cpp

host C++: libicuuc <= external/icu4c/common/stringtriebuilder.cpp

host C++: libicuuc <= external/icu4c/common/ucharstrie.cpp

host C++: libicuuc <= external/icu4c/common/ucharstriebuilder.cpp

host C++: libicuuc <= external/icu4c/common/ucharstrieiterator.cpp

host C++: libicuuc <= external/icu4c/common/dictionarydata.cpp

host C++: libicuuc <= external/icu4c/common/ustrcase_locale.cpp

host C++: libicuuc <= external/icu4c/common/unistr_titlecase_brkiter.cpp

host C++: libicuuc <= external/icu4c/common/uniset_closure.cpp

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

make[1]: se sale del directorio «/home/evogp/aokp/kernel/lge/gee»

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Se espera a que terminen otras tareas....

My local_manifest is...

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="gh"

fetch="git://github.com/" />

<project path="kernel/lge/gee" name="TeamPlaceholder/android_kernel_lge_gee" remote="gh" revision="cm-10.2-update" />

<project path="device/lge/geehrc_intl" name="TeamPlaceholder/android_device_lge_geehrc_intl" remote="gh" revision="jb_2.5" />

<project path="device/lge/gee-common" name="TeamPlaceholder/android_device_lge_gee-common" remote="gh" revision="cm-10.2" />

<project path="vendor/lge/gee" name="TeamPlaceholder/proprietary_vendor_lge_gee" remote="gh" revision="cm-10.2" />

</manifest>

http://pastebin.com/pGVbhwFX
[LG Optimus G (International)] Haze028:
That is not the actual error. That is only saying that there is an error with your kernel. You'll need to scroll up more to find the error. Sometimes it can be up quite a bit, depending on how many jobs you build at.

Scroll up until you see another error.
[LG Optimus G (International)] core720:
Log full....https://www.dropbox.com/s/xiwto0w0h8pw2qc/Full
[LG Optimus G (International)] 2nd Sky:
ok e975 is geerc

att is gee or another...

is this the problem?

Gesendet von meinem LG-E975 mit Tapatalk 2
[LG Optimus G (International)] core720:
E975 is geehrc_intl

Enviado desde mi LG-E975 usando Tapatalk 4

---------- Post added at 05:43 PM ---------- Previous post was at 04:58 PM ----------

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c: In function 'cpufreq_interactive_timer':

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c:295:2: error: 'now_idle' undeclared (first use in this function)

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c:295:2: note: each undeclared identifier is reported only once for each function it appears in

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c:296:2: error: 'delta_idle' undeclared (first use in this function)

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c:404:7: error: 'governidle' undeclared (first use in this function)

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c:405:8: error: 'struct cpufreq_interactive_cpuinfo' has no member named 'timer_idlecancel'

/home/evogp/aokp/kernel/lge/gee/drivers/cpufreq/cpufreq_interactive.c:277:6: warning: unused variable 'load_since_change' [-Wunused-variable]

error, forbidden warning: cpufreq_interactive.c:277

make[4]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1

make[3]: *** [drivers/cpufreq] Error 2

make[2]: *** [drivers] Error 2

make[2]: *** Se espera a que terminen otras tareas....
[LG Optimus G (International)] ahsan64:
Hi

How much the compilng takes time...

I used make -j4
[LG Optimus G (International)] Haze028:
I can't give you an exact time... I build at j16 and it takes roughly an hour to an hour and a half
[LG Optimus G (International)] ahsan64:
and what exactly -j4 means ... ?

i have i5 laptop with 4gb ram ..
[LG Optimus G (International)] core720:
what is recommend for the E975 local_manifest?
[LG Optimus G (International)] Haze028:
It means it is building that many jobs at one time. I have a quad core with hyper threading 8 cores as seen by pc.... I build at 16.

From what I read 2 jobs per core.
[LG Optimus G (International)] Haze028:
That all depends on whose repos you want to use.

You need a kernel, vendor, device repos

Since our device has so many variants there are generally two device repos, a common and variant specific.

Check teamplaceholder or teamlgog repos, decide which you'd like to use.
[LG Optimus G (International)] core720:
Teamlgog is 10.1 no 10.2

https://github.com/TeamLGOG/android_device_lge_geehrc_intl

Enviado desde mi LG-E975 usando Tapatalk 4
[LG Optimus G (International)] Haze028:
here is what I would use as a local manifest for e975
[LG Optimus G (International)] core720:
Thks test and comment

Enviado desde mi LG-E975 usando Tapatalk 4
[LG Optimus G (International)] core720:
Error building...

device/lge/e975/overlay/frameworks/base/core/res/res/values/config.xml:91: error: Resource at config_deviceHardwareKeys appears in overlay but not in the base package; use <add-resource> to add.
device/lge/gproj-common/overlay/frameworks/base/core/res/res/values/config.xml:35: error: Resource at config_intrusiveBatteryLed appears in overlay but not in the base package; use <add-resource> to add.
device/lge/gproj-common/overlay/frameworks/base/core/res/res/values/config.xml:38: error: Resource at config_multiColorBatteryLed appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/home/evogp/aokp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Se borra el archivo «/home/evogp/aokp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk»
make: *** Se espera a que terminen otras tareas....
evogp@evogp:~/aokp$

Testing remove the lines 91/35/38....
[LG Optimus G (International)] Haze028:
Go to each file it mentions in the overlay folder and remove the resource causing the error.

Example go to line 91 of overlay/framework/base/core/res/red/values/config.xml and delete the reference to device hardware keys.

Do the same for every overlay resource causing an issue
[LG Optimus G (International)] core720:
thanks, tried it last night and it worked. I need to know how I can change some things before compiling

Enviado desde mi LG-E975 usando Tapatalk 2
[LG Optimus G (International)] Haze028:
You'll need to be more specific... Change what?
[LG Optimus G (International)] core720:
install....init....FC.....freeze :crying:
[LG Optimus G (International)] Haze028:
I, nor really anyone else can help you without details. What is force closing....can you get a logcat? when is the ladt time you syncd your repo?
[LG Optimus G (International)] core720:
may be to use the full local_manifest CM?
[LG Optimus G (International)] Haze028:
That is an option you have for sure, not sure what to suggest since I don't have any details as to what is wrong.

You can try cm repos to see if you've different results...again need some details on your issue
[LG Optimus G (International)] core720:
I will compile everything again and send the log
[LG Optimus G (International)] mjkute:
I want to build rom from here https://github.com/X-ROM

I don't understand something, please help me

My device is galaxyS

Device Source

git clone repo -b branch https://github.com/X-ROM/android_vendor_crom

Preparing Source

nano vendor/X-ROM/vendorsetup.sh

touch vendor/X-ROM/products/full_galaxysmtd.mk

nano vendor/aokp/products/full_galaxysmtd.mk

nano vendor/X-ROM/products/AndroidProducts.mk

I'm right?

Thanks so much
[LG Optimus G (International)] Haze028:
I've never built that rom before, but I took a quick look at the link you gave. First off it looks like the folder is crom, not xrom... Looks like it is not prepared like aokp.

You will need to add your device to vendor/crom/vendorsetup.sh

then you will need to make a crom.mk in your device/samsung/XXXX(whatever your device tree is.

copy the crom.mk from the galaxymtd device tree and edit it to match your device.

Any questions let me know i'll try to explain better if needed.
[LG Optimus G (International)] core720:
bulding 10min and...

make[2]: *** [.tmp_vmlinux1] Error 1
make[1]: *** [sub-make] Error 2
make[1]: se sale del directorio «/home/evogp/aokp/kernel/lge/gee»
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Se espera a que terminen otras tareas....
evogp@evogp:~/aokp$
[LG Optimus G (International)] ShadowsDie:
hello, im trying to port kernel 3.x for Samsung Galaxy Ace Plus (cm10.1), but as im a noob and the dev doesn't have the device , he can't really build it

i was wondering if you guys could help me building it? i actually dont understand this very good as i dont know where the heck i find my device source and other
[LG Optimus G (International)] Haze028:
Sorry I gave you bad info before..... Xboxfanj set me straight.

With teamplaceholders kernel 3.10 is the cutting edge branch and is not currently recommended for use when building. He recommends using branch cm-10.2

Delete your current kernel folder,change the branch in your local manifest and resync
[LG Optimus G (International)] core720:
if I tried to cm10.2 teamplaceholders and gives me that error after 10 min building

Enviado desde mi LG-E975 usando Tapatalk 2
[LG Optimus G (International)] Haze028:
Your sure you are using the cm-10.2 branch?

What is the actual error you get? What you posted wasn't your error....
[LG Optimus G (International)] mjkute:
i tried a lot, finally i did it. But When i finished to build rom, i don't see zip file for flash?
[LG Optimus G (International)] Haze028:
When the build is done there will be a zip in out/target/product/DEVICE

if there is no zip in that folder then the build did not complete correctly.
[LG Optimus G (International)] mjkute:
i did step by step as you say, i didn't see any issue when i did. So i don't know what problem is

you have any idea about that

thanks so much
[LG Optimus G (International)] Haze028:
You did make otapackage? Did it say done at the end? The last thing it does is sign and zip ROM. So if it completed correctly it will say about signing the list out/target......where the zip is. If you're not seeing that at the end of your output then it didn't complete properly.

Scroll up..and up...until you see where the error happened. Sometimes it can be quite a ways up there. If it didn't list the zip at the end though there will be an error somewhere.

Make sure you have your scroll back line in your terminal settings up fairly high so you can make sure you'll get the error in the window. If its not set to enough lines there is a chance your error is getting cut off
[LG Optimus G (International)] ninja29:
Trying to build Carbon rom for E975

This is my local manifest file:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="nm"

fetch="git://github.com/" />

<project path="kernel/lge/gproj" name="CyanogenMod/lge-kernel-gproj" remote="nm" revision="cm-10.2" />

<project path="device/lge/e975" name="CyanogenMod/android_device_lge_e975" remote="nm" revision="cm-10.2" />

<project path="device/lge/gproj-common" name="CyanogenMod/android_device_lge_gproj-common" remote="nm" revision="cm-10.2" />

<project path="vendor/cm" name="CyanogenMod/android_vendor_cm" remote="nm" revision="cm-10.2" />

after building the rom gets stuck on the LG logo.

Any ideas where i'm going wrong?

Thanks in advance
[LG Optimus G (International)] Haze028:
one quick thing i can see, though i'm not sure it's your issue completely. is you're not getting the lge vendor files... you're getting cm's vendor files...

I'm don't think they're needed at all... and if they are they'll be called in the main manifest for carbon. The local manifest should be only you're device specific repos and/or removing any projects from the main carbon repo.

try replacing the android_vendor_cm with their android_vendor_lge repo then make clean and build again. might be you're only problem... maybe not, but it's a start
[LG Optimus G (International)] ninja29:
I can not find the lge vendor repo on cyanogenmod only the device..

I'm a noob.. Kind of lost...
[LG Optimus G (International)] Haze028:
Use TeamPlaceHolder's vendor repo

Also noticed, just now, that cyanogen uses ls970-common device repo, and you'll have to edit the ls970-common.mk files to direct it to your vendor repo from teamplaceholder.

so....

add this to your local manifest:

<project path="device/lge/ls970-common" name="CyanogenMod/android_device_lge_ls970-common" remote="gh" revision="cm-10.2" />

<project path="vendor/lge/gee" name="TeamPlaceHolder/vendor_lge_gee" remote="gh" revision="cm-10.2" />

then open device/lge/ls970-common/ls970-common.mk and right at the top it should say something about e975-vendor.mk... you'll have to edit that line to your team placeholder repo vendor/lge/gee/gee-vendor.mk

hopefully that gets ya going better here...
[LG Optimus G (International)] ninja29:
Ls970-common.mk has nothing about e975 ay the top of the file
[LG Optimus G (International)] Haze028:
oops, wrong file, it's in the device.mk in the e973 repo.
[LG Optimus G (International)] ninja29:
I'm gona pull my hair out... :).

Trying to build a carbon rom for my e975.
[LG Optimus G (International)] Haze028:
That should fix you up though. That'll point you to the right proprietary files and add everything that was missing by not having the common directory in the build.

If you, or anyone else, has noticed something in the guide that should be clarified or changed to make things easier let me know.
[LG Optimus G (International)] ninja29:
That means i have to use the E973 repo to build instead of the e975.

I just changed edited the cm.mk part where the vendor part points to e975 n pointed it to gee. Do you think this will work.

Last question do i have to make clean before building.....
[LG Optimus G (International)] Haze028:
Yeah that should work... Sorry somehow got it in my head you were building for the e973...

As long as you have it pointing to your vendor files it should go

And yes I would make clean..then make clobber just to make sure you start your build fresh
[LG Optimus G (International)] ninja29:
So far so good. I'm getting there.. :)

. the only problem i have is that i do not have any apns n the prompt to put my sim card pin never comes up...

Any ideas.... Is it the kernel
[LG Optimus G (International)] Haze028:
Apns are in the device tree..usually device/sample I believe... As for the sim code I'm not too sure...
[LG Optimus G (International)] ninja29:
Cannot detect my sim... thats all i'm missing.... any idea where the problem would be...
[LG Optimus G (International)] Haze028:
You boot with no network? I was having this issue building this weekend, first time back at it in months now, I switched the vendor repo i was using and issue seemed to have gone. Have full connectivity again.

Instead of TeamPlaceHolder's vendor I used TeamLGOG's proprietary_vendor_lge repo. This has the e975 vendor directory that cyanogenmod was looking for before directing it to placeholder's gee folder.

Try deleting the vendor/lge folder and change your local_manifest vendor line to be

<project path="vendor/lge" name="TeamLGOG/proprietary_vendor_lge" remote="gh" revision="cm-10.2" />

then resync and try again. don't forget to to change where it points to the vendor dir back to e975 too

Sorry for the poor info before, I hadn't been buildin in a while and didn't know.
[LG Optimus G (International)] ninja29:
No worries.. I managed to build, then I flashed a different kernel after flashing my build and it worked. Now I know where the problem is. Will try it out tomorrow.

First build :) android 4.3.1
[LG Optimus G (International)] core720:
ninja what is your local_manifest?
[LG Optimus G (International)] Haze028:
You should leave the T-Mobile vendor files as they are for themechooser.
[LG Optimus G (International)] ninja29:
I'll do that on the next build. Phone seems to bee working pretty well...:). Any idea on how to get the split gmail inbox like on tablets or do it have to change the dpi...

I'll do a little right up to add to your how too incase anyone is looking to complete compile carbon..
[LG Optimus G (International)] whitemamba:
Hello guys!

I have an error at brunch:

host Java: guavalib (/home/richard/android/system/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)
logtags: /home/richard/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/content/EventLogTags.java <= frameworks/base/core/java/android/content/EventLogTags.logtags
logtags: /home/richard/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/speech/tts/EventLogTags.java <= frameworks/base/core/java/android/speech/tts/EventLogTags.logtags
logtags: /home/richard/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/webkit/EventLogTags.java <= frameworks/base/core/java/android/webkit/EventLogTags.logtags
[B]make: *** No rule to make target `/home/richard/android/system/out/host/linux-x86/bin/dx', needed by `/home/richard/android/system/out/target/common/obj/APPS/Apollo_intermediates/proguard.classes-with-local.dex'. Stop.[/B]
make: *** Waiting for unfinished jobs....
logtags: /home/richard/android/system/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/src/src/java/com/android/internal/telephony/EventLogTags.java <= frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Anyone knows what's causing it? It couldn't be the roomservice.xml in local_manifest as I used the one which another person successfully built CM with. I also repo sync'ed a few times already. I tried make clobber and built again, but nothing :crying:

I am building PACMAN ROM (4.3) now by the way.

All help is appreciated (with a thank!) :D
[LG Optimus G (International)] a2441918:
Use pastebin pls
[LG Optimus G (International)] Haze028:
Looks like its missing something that really should be coming with the rom source. If a resync isn't working to correct it, I'm not sure what to tell ya. Try deleting your working dir and downloading PAC source again? Other than that I'm at a loss.
[LG Optimus G (International)] whitemamba:
Yup I don't know what caused it, but deleting everything fixed it. :)
[LG Optimus G (International)] whitemamba:
Now I have a new problem with building the kernel:

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

make[1]: Leaving directory '/home/Richard/android/pac/kernel/sony/msm8960t

make: ***[TARGET_KERNEL_BINARIES] Error 2

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

I tried make clean, didn't work.

I will try deleting everything and start over later.