yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] black@pirate:
Need Help

I'm facing errors in both AOSP and KK purity Rom building for LG optimus 4x hd.

Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair_intermediates/classes-jarjar.jar

make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.

I believe this is the error. I did remove calculator app and resync again but same error. If I remove Calculator app at all, it will stop again at Camera2 app, and then so on etc. I have Oracle Java 6 and, I did set up java correctly.

java -version, sudo update-alternatives --config jar, etc: all gives correct result. Can anyone please help me.
[Android Q&A, Help & Troubleshooting] aweosomeabhijeet:
I'm compiling CM7(I know it's too old) for my Motorola XT530.

I've always got this error :

http://pastebin.com/EGj7kYFC

Nothing seemed to solve it.

Hope somebody could help me getting past it.

Thanks
[Android Q&A, Help & Troubleshooting] F-L-Y-E-R:
Hello, got couple of questions, not really related to problems.

When I make a rom and when I wan't to make next version is it must to 'make clean'?

If no, will the build time be shorter?

Thanks
[Android Q&A, Help & Troubleshooting] Tommy-Geenexus:
the build time for the next build will shorten if you set up cchache.

Gesendet von meinem Nexus 5 mit Tapatalk
[Android Q&A, Help & Troubleshooting] speed_bot:
make clean only if you modified BoardConfig.mk
[Android Q&A, Help & Troubleshooting] speed_bot:
you might wanna declare this somewhere in the file

ARM_SMP_defined_but_no_DMB

Global should do see the score of the function which uses it first
[Android Q&A, Help & Troubleshooting] F-L-Y-E-R:
So I don't have to make clean before new build? Because I always do that and it takes me 2 hours to make a new version lol :D

So what you mean by modifying BoardConfig.mk manually? So when I do (source build/envsetup.sh) it doesn't modify it anyhow?
[Android Q&A, Help & Troubleshooting] speed_bot:
name that doesnt modify ..BoardConfig is user dependant completely
[Android Q&A, Help & Troubleshooting] F-L-Y-E-R:
Presumably I need to update it but I have no clue how :?

... A new repo command ( 1.21) is available.
... You should upgrade soon:

cp /home/arcioma/android/.repo/repo/repo /home/arcioma/bin/repo
[Android Q&A, Help & Troubleshooting] thewisenerd:
Just run what it tells you to?

cp /home/arcioma/android/.repo/repo/repo /home/arcioma/bin/repo

:fingers-crossed:
[Android Q&A, Help & Troubleshooting] russellvone:
alright guys, id like to make my own device tree.

how do i get the files from/for my specific device so that i can build my own tree, and not rely on some one else's?

i have already kernel source code, but thats about it.

if anyone could help me with this it would be great

---------- Post added at 04:11 AM ---------- Previous post was at 04:10 AM ----------

oh and duh, i have the device also.....
[Android Q&A, Help & Troubleshooting] speed_bot:
Well see what each file is meaning in other tress technically the files that you are referring to is vendor blobs which you can get from your device if they are of same api level.
[Android Q&A, Help & Troubleshooting] russellvone:
yes, how do I get the files from my device to make my tree?

---------- Post added at 05:01 AM ---------- Previous post was at 04:58 AM ----------

I'm currently working on jellybean.... my device API (not sure the number) but is currently 4.1.2 , so how's abouts do I build my tree? thanks
[Android Q&A, Help & Troubleshooting] speed_bot:
So your device has 4.1.2

? And you want a cm10 tree right?
[Android Q&A, Help & Troubleshooting] russellvone:
nope, jellybean

---------- Post added at 05:04 AM ---------- Previous post was at 05:03 AM ----------

I've retarded my development stage to just current OS building lol

---------- Post added at 05:05 AM ---------- Previous post was at 05:04 AM ----------

I repo sync -b jellybean
[Android Q&A, Help & Troubleshooting] speed_bot:
There are three versions of jellybean
[Android Q&A, Help & Troubleshooting] russellvone:
right, but I synced "-b jellybean" isn't this 4.1.x?

---------- Post added at 05:18 AM ---------- Previous post was at 05:08 AM ----------

I just want to know how to build my device's tree, that's all.....

any help would make me full of gratitude
[Android Q&A, Help & Troubleshooting] speed_bot:
ok first make a list of all binary blobs..like your decoders will be names libevrnencdec.so touchscreen drivers like key.kl etc just look at some device tree and try to make a inference for each line if you need more help ping me on skype or hangouts
[Android Q&A, Help & Troubleshooting] russellvone:
thanks, I started looking at a "proprietary-files.txt" from another tree, then used it as a skeleton to add the names of the files on my device. then I can run the extract-files.sh.

? Is this kind of correct ?
[Android Q&A, Help & Troubleshooting] forzaferrari0:
Hi, i got this compilation error:

make[3]: `include/generated/mach-types.h' is up to date.

/bin/sh: 1: Syntax error: "(" unexpected

make[3]: *** [kernel/bounds.s] Error 2

make[2]: *** [prepare0] Error 2

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

make[1]: Leaving directory `/home/android/omni/kernel/htc/ace'

make: *** [TARGET_KERNEL_BINARIES] Error 2

How can i solve it?

Thanks

Inviato dal mio Desire HD utilizzando Tapatalk
[Android Q&A, Help & Troubleshooting] speed_bot:
Yeah
[Android Q&A, Help & Troubleshooting] speed_bot:
can i have more log plz
[Android Q&A, Help & Troubleshooting] russellvone:
ok, my builds are finally getting WAY further than before!

now, how do I push my proprietary blobs and what not to github to start my tree finally?

thanks in advance
[Android Q&A, Help & Troubleshooting] skull47:
Repo Sync Error !!!

i have been building PAC 4.4 successfully for my LWW since 1 month now....but today when i tried repo sync to update the sources i am getting the following error:

admin01@CMS:~$ cd 12packk
admin01@CMS:~/12packk$ repo sync
Traceback (most recent call last):
File "/home/admin01/12packk/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/admin01/12packk/.repo/repo/main.py", line 384, in _Main
result = repo._Run(argv) or 0
File "/home/admin01/12packk/.repo/repo/main.py", line 143, in _Run
result = cmd.Execute(copts, cargs)
File "/home/admin01/12packk/.repo/repo/subcmds/sync.py", line 629, in Execute
if mp.HasChanges:
File "/home/admin01/12packk/.repo/repo/project.py", line 2569, in HasChanges
elif self._revlist(not_rev(HEAD), revid):
File "/home/admin01/12packk/.repo/repo/project.py", line 2178, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/admin01/12packk/.repo/repo/project.py", line 2335, in rev_list
p.stderr))
error.GitError: manifests rev-list ('^HEAD', u'31e012eb9adf59791185e7986a64e984d7a413cb', '--'): fatal: bad revision '^HEAD'

admin01@CMS:~/12packk$

Can any1 pls help me out if u know the solution or any workaround???.....

Thanks
[Android Q&A, Help & Troubleshooting] Recon Freak:
I would re-initialize your repo and try to sync again.
[Android Q&A, Help & Troubleshooting] F-L-Y-E-R:
Hello got a problem with repo, everything was ok until I wanted to build a ROM for another device so I edited .repo/local_manifests/local_manifest.xml with adding links for another device... Since then my whole build directory got messed up and even when I deleted whole /device/ directory I can't sync it anymore , everything downloads but actual folders are not there :confused:

For example when I try cherry-pick in /build/ I get this:

fatal: Not a git repository (or any of the parent directories): .git

When I run repo sync, seems as it's downloading everything but after fetching files I get this:

error: manifest required for this command -- please run init

And when I try to breakfast ville, I get this:

device/htc/ville/BoardConfig.mk:44: *** missing separator. Stop.
Device ville not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

So after it to retrieve repositories I get this:

device/htc/ville/BoardConfig.mk:44: *** missing separator. Stop.

** Don't have a product spec for: 'cm_ville'
** Do you have the right repo manifest?
[Android Q&A, Help & Troubleshooting] skull47:
PAC 4.4 build error!!

i need help on an error...details given in my post here

pls guide me i f u can...

Thanks
[Android Q&A, Help & Troubleshooting] F-L-Y-E-R:
Is it possible to build cyanogenmod without having the device? Or you can't do it without extracting proprietary blobs? Thanks
[Android Q&A, Help & Troubleshooting] shimp208:
It is possible to build Cyanogenmod without having the actual device you just need either a git repository that contains the proprietary vendor blobs for your device (Usually will be named vendor_manufacturer_device-code-name or will sometimes be integrated into the device tree repository) or a copy of that devices stock firmware so you can manually pull the blobs and binaries that are needed.
[Android Q&A, Help & Troubleshooting] speed_bot:
sorry for the delayed reply..make sure you change the device and vendor name..just get initial tree ready then we can blobs as we need..
[Android Q&A, Help & Troubleshooting] speed_bot:
re init repo that would solve all repo errors..and that boardconfig.mk might have some missing text or something like that run a git checkout on that repo..
[Android Q&A, Help & Troubleshooting] koolkunz:
Hi...I want to ask how to clean my repo sync...I mean first I was developing for S Advance but now I switched to S2...how to modify the repo for s2
[Android Q&A, Help & Troubleshooting] speed_bot:
are u planning to modify a advance tree to use it for s2 ? if yes..stop..that doent work s2 already has trees clone or fork them..and for cleaning do make clean&&make clobber
[Android Q&A, Help & Troubleshooting] koolkunz:
No trees are already there for s2..I just want to clear any s advance files [MENTION=4445428]speed_bot[/MENTION]
[Android Q&A, Help & Troubleshooting] speed_bot:
technically it shouldnt affect your build but still if you insist make clean and make clobber should suffice.
[Android Q&A, Help & Troubleshooting] koolkunz:
If I have once installed build packages..do I need to reinstall them each time I make a new build?
[Android Q&A, Help & Troubleshooting] thewisenerd:
technically, make clean, and clobber are the same.

evidence: https://github.com/CyanogenMod/android_build/blob/cm-11.0/core/main.mk#L932

clobber just points to clean, which is a few lines above.
[Android Q&A, Help & Troubleshooting] speed_bot:
Nope not needed.
[Android Q&A, Help & Troubleshooting] speed_bot:
From what I know clean removes device specific files and clobber is just short form of rm-rf out
[Android Q&A, Help & Troubleshooting] thewisenerd:
Actually, its two characters longer than "make clean" :p
[Android Q&A, Help & Troubleshooting] speed_bot:
I might be wrong.. I learnt during gb days maybe it has changed. I'll look into that makefile when I get on Pc.
[Android Q&A, Help & Troubleshooting] teemo:
rm -rf out is much faster :D
[Android Q&A, Help & Troubleshooting] koolkunz:
What does it do?
[Android Q&A, Help & Troubleshooting] teemo:
It removes your "out" folder. Same as make clobber, but faster.
[Android Q&A, Help & Troubleshooting] koolkunz:
I am facing errors while installing cherry picks..merge conflicts....are they because of some problem with my repo sync...cause i first synced for s advance and then switched to s2 halfway...will i have to redownload the source?
[Android Q&A, Help & Troubleshooting] koolkunz:
Guys..having this error while bulding rom

Any idea what to do?
[Android Q&A, Help & Troubleshooting] ktempleton:
You didn't get the actual error it like it's in the kernel though
[Android Q&A, Help & Troubleshooting] koolkunz:
Sorry please elaborate??
[Android Q&A, Help & Troubleshooting] ktempleton:
Scroll up and look for where it says stop or error then post that out put
[Android Q&A, Help & Troubleshooting] koolkunz:
ok heres everything i can see in my terminal

go to line 66.. is that the error??

http://pastebin.com/iQyft3CS
[Android Q&A, Help & Troubleshooting] thewisenerd:
You'd need to set the CROSS_COMPILE path correctly, in your kernel sources.

from your pastebin:

/arm-eabi-gcc: No such file or directory
[Android Q&A, Help & Troubleshooting] koolkunz:
OK thanks..will try that...do I need to repo sync again or I can just restart building
[Android Q&A, Help & Troubleshooting] thewisenerd:
"repo sync" is to update your sources. You can do it, when you feel like doing so. For example: if you're building ICS, there's no need to repo sync, as there are seldom any changes in its code, now. but, if you're building kitkat or so, its better to "repo sync" periodically (ex: once in a couple of days), so that you catch up with all the upstream bug fixes/enhancements.
[Android Q&A, Help & Troubleshooting] koolkunz:
OK thnx
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
Can anyone here tell me how to compile pacman rom 4.4.2 for my device galaxy grand which is unsupported step by step. please.

I have the device and kernel sources and also the repository of pacman.
[Android Q&A, Help & Troubleshooting] koolkunz:
There are many guides for building rom from source
[Android Q&A, Help & Troubleshooting] koolkunz:
hi guys...i figured i am having this issue (check the link)

https://groups.google.com/forum/#!msg/android-building/3jbiSDpQjes/7WCED1KVEScJ

i didn't clearly understand how that guy fixed it(i am new to rom building) but if anyone of you understood how to fix it then please explain!
[Android Q&A, Help & Troubleshooting] koolkunz:
^^^^Anyone
[Android Q&A, Help & Troubleshooting] demkantor:
Maybe throw up your exact error code here, or is it identical to the link?
[Android Q&A, Help & Troubleshooting] koolkunz:
exactly identical
[Android Q&A, Help & Troubleshooting] useltonm:
So I recently decided to learn to build from source as A) I have wanted to learn for a while now how to build a ROM and B) I'm really itching to get PAC-rom on my Note 3.

I was able to complete the build (what a long process that is at 225 minutes) and got a zip file. I was under the impression that building using build-pac.sh would get me a flashable zip file as the output from building had a line that mentioned signing it. However, when I rebooted into TWRP recovery I got the error that the zip file could not be opened and flash failed. How do I go about troubleshooting this issue?

I do not have a pastie, it just said zip could not be opened, flash failed.

I'm running a T-mobile Galaxy Note 3 (N900t, hltetmo)

I'm using the Cyanogenmod device tree for hlte (unified) which I obtained through breakfast hlte.

I used this guide: http://xdaforums.com/showthread.php?t=2464683 to configure for compiling roms. Then I used the PAC readme for compiling the rom.

If I haven't been specific enough or need to add more info, let me know.

Thanks!
[Android Q&A, Help & Troubleshooting] thewisenerd:
You'd need to understand relative paths for this. Unix allows you to set paths in two ways:

> The complete path, aka the absolute path

> The relative path

The complete path is the full path. Assuming you're in the source directory, and set the CCACHE_DIR as:

../../ccache

or similar, you are setting a relative path.

The actual, absolute, complete path would be something like:

/home/<username>/ccache

or something like that.

Here's something to read: Absloute path vs relative path in Linux/Unix

As an avid linux user, ( you might actually turn into one, eventually, after years of usage :p ), relative and absolute paths would just become more and more clear. For now, just set the CCACHE_DIR variable, preferably set in ~/.bashrc (?) to the full absolute path, rather than a relative path :fingers-crossed:
[Android Q&A, Help & Troubleshooting] koolkunz:
I guess I understood what you are trying to tell me...will report what happens

---------- Post added at 01:18 PM ---------- Previous post was at 12:46 PM ----------

Everything is messed up at the moment.... Is there any way to restore my working directory to original state(state with 1st repo sync)...removing all modifications i made.. i want to start over but dont want to redownload repo sync??

i found this somewhere :

repo sync -d

repo forall -c 'git reset --hard'

repo forall -c 'git clean -f -d'

will thise do what i want??

I want to refresh my directory to the state where i can start working on another device and dump my current device??
[Android Q&A, Help & Troubleshooting] ktempleton:
Just delete the folders you made changes in and type repo sync
[Android Q&A, Help & Troubleshooting] mshome007:
Hi

i am new in building AOSP

since 2 days working on linux 64(ubuntu)

now after make -j4 got last part error:

/home/mshome/AOSP/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

make: *** [out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1

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

/home/mshome/AOSP/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1

/home/mshome/AOSP/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1

/home/mshome/AOSP/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1

Now what to do ? :crying::crying:
[Android Q&A, Help & Troubleshooting] koolkunz:
i mean like as i was devoloping for s2..i added local manifest related to it...so it downloaded kernel etc.of it...how to get rid of it?
[Android Q&A, Help & Troubleshooting] demkantor:
Delete the kernel folder and change or delete local_manifest
[Android Q&A, Help & Troubleshooting] handofstand:
Cyanogenmod 9 LG P930 Release

I am trying to compile the ICS Release branch of Cyanogenmod 9. I have followed the instructions here. Here is the terminal output which includes the error: Pastebin

I apologize for making this request, I know that this was available to download on Cyanogenmod's website, but I mistakenly thought I had make a backup of it.
[Android Q&A, Help & Troubleshooting] Gnome:
It seems the GCC is missing some components, try syncing again then build.
[Android Q&A, Help & Troubleshooting] thewisenerd:
Kernel directory is either missing or derped.

cyanogenmod_p930_defconfig is missing in arch/arm/configs, causing the error.
[Android Q&A, Help & Troubleshooting] mshome007:
Thanks

will try and let you know
[Android Q&A, Help & Troubleshooting] androidGuillaume:
Hi,

Try to add the i386 arch to your package manager:

$ sudo dpkg --add-architecture i386

$ sudo apt-get update

then, install the following packages (source: official android web pages - I cannot insert the URL since I'm a new user :) )

$ sudo apt-get install git gnupg flex bison gperf build-essential \

zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \

libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \

libgl1-mesa-dev g++-multilib mingw32 tofrodos \

python-markdown libxml2-utils xsltproc zlib1g-dev:i386

and create the following symbolic link:

$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

Then, you can recompile android and it should work.
[Android Q&A, Help & Troubleshooting] mshome007:
Thanks for reply

done but got this error at last when i did these commands:

$ source build/envsetup.sh

$ lunch

$ make -j16

......................

out/target/product/generic/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]

out/target/product/generic/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/gpu/media/h264_parser.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/gpu/media/gpu_video_decode_accelerator.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/gpu/sync_point_manager.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/gpu/texture_image_transport_surface.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/indexed_db/indexed_db_key.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/indexed_db/indexed_db_key_path.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/indexed_db/indexed_db_key_range.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/indexed_db/indexed_db_param_traits.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/inter_process_time_ticks_converter.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/media/media_param_traits.cc

target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/media/media_stream_options.cc

In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:

out/target/product/generic/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token

out/target/product/generic/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token

out/target/product/generic/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token

out/target/product/generic/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token

external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input

cc1plus: all warnings being treated as errors

make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1

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

............................

and for emulator :

$ emulator &

got this respond :

emulator: ERROR: No initial system image for this configuration!

Thanks in advance for helping me
[Android Q&A, Help & Troubleshooting] -Johannes-:
Hello together,

I'm trying to build mahdi ROM for nexus 5 but I always get the error, you see on the attached screenshot!

It looks like something with phyton but for me it looks like, I have the right version (look at my screenshot please).

Full picture:

Spoiler content hidden.

Does anyone know something I can do?

Thanks in advance :)

Gesendet von meinem Nexus 5 mit Tapatalk