yashsingh1/xdaforums huggingface dataset:
[Android] kevin130:
build/core/Makefile:32: warning: overriding commands for target `out/target/product/shooter/root/init'

build/core/base_rules.mk:502: warning: ignoring old commands for target `out/target/product/shooter/root/init'

build/core/Makefile:32: *** Prebuilt apk found in PRODUCT_COPY_FILES: device/htc/shooter/prebuilt/com.adobe.flashplayer.apk:system/app/com.adobe.flashplayer.apk, use BUILD_PREBUILT instead!. Stop.

kevin@kevin-laptop:~/AOSP_4.2$

I know i am supposed to change PRODUCT_COPY_FILES to BUILD_PREBUILT but i cant what the line im supposed to change it in. Anyone can help me? i have a feeling its a quick and easy fix
[Android] x10forevers:
Here is my error while compiling

anybody know whats the problem ??

target Generated: libwebcore <= external/webkit/Source/WebCore/css/CSSCharsetRule.idl
target Generated: libwebcore <= external/webkit/Source/WebCore/css/CSSFontFaceRule.idl
target Generated: libwebcore <= external/webkit/Source/WebCore/css/CSSImportRule.idl
target Generated: libwebcore <= external/webkit/Source/WebCore/css/CSSMediaRule.idl
gccgccgccgcc: error trying to exec ': error trying to exec ': error trying to exec 'cc1pluscc1pluscc1plus': execvp': ': execvp: : execvp: : error trying to exec 'No such file or directoryNo such file or directory

No such file or directory
cc1plus': execvp: No such file or directoryCan't call method "fileName" without a package or object reference at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 122.

Can't call method "fileName" without a package or object reference at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 122.
Can't call method "fileName" without a package or object reference at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 122.
Can't call method "fileName" without a package or object reference at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 122.
make: *** [out/target/product/d2att/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSImportRule.h] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/d2att/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSFontFaceRule.h] Error 1
make: *** [out/target/product/d2att/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSCharsetRule.h] Error 1
make: *** [out/target/product/d2att/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSMediaRule.h] Error 1
raj@raj-linux:~/4.2$

*****************************************************

EDIT : Solved

$ sudo apt-get install g++
[Android] mg2195:
Its probably in your device.mk...something in your device tree is calling for that rebuilt apk...just find which file is calling it (again probably your device.mk) and remove that line that calls it.

Or you can download the flash apk, make sure the name matches your error (com.adobe.flashplayer.apk:system) and put it in device/HTC/shooter/prebuilt

All its trying to do as copy the apk into the ROM so that flash player is installed...its not necessary...just an addition
[Android] kevin130:
Thanks! it worked lika charm.

---------- Post added at 07:43 PM ---------- Previous post was at 07:39 PM ----------

make: *** No rule to make target `vendor/__VENDOR__/__DEVICE__/proprietary/system/lib/hw/camera.default.so', needed by `out/target/product/shooter/obj/lib/hw/camera.default.so'. Stop.

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

The file camera.default.so is there. I dont understand why im recieveing this error, Thanks in advance
[Android] triptosyll:
It sounds like the file that is calling for it is looking it the wrong spot. Make sure that its looking in the right place for the file.
[Android] kevin130:
What file am i supposed to make changes to?

EDIT: Nvm. Got it Vendor/htc/shooter/shooter-vendor-blobs.mk
[Android] kevin130:
New Error.

make: *** No rule to make target `vendor/htc/shooter/proprietary/system/bin/ipd', needed by `out/target/product/shooter/system/bin/ipd'Export includes file: external/iptables/iptables/Android.mk -- out/target/product/shooter/obj/EXECUTABLES/ip6tables_intermediates/export_includes

. Stop.

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

I have no idea where i am supposed to get this file. I dont get teh last part of the message. Any ideas? Just when i thought i wasnt going to get anymore errors.

EDIT: FIxed
[Android] bobpantsspongesquare:
Been searching all over this thread but can't seem to get past this error:

build/core/config.mk:157: *** TARGET_ARCH not defined by board config: device/samsung/hercules/BoardConfig.mk. Stop.

** Don't have a product spec for: 'full_hercules'
** Do you have the right repo manifest?

And just to clarify, in the aforementioned BoardConfig.mk I went ahead and added the

TARGET_ARCH_VARIANT := armv7-a-neon

for good measure. I appreciate any help on this. Thanks. :D
[Android] mg2195:
You need to add this:

TARGET_ARCH := arm
[Android] x10forevers:
Hello

I am facing this error can anybody direct me for solution ???

Export includes file: external/valgrind/tsan/Android.mk -- out/target/product/d2att/obj/SHARED_LIBRARIES/vgpreload_tsan-arm-linux_intermediates/export_includes
make: *** No rule to make target `out/target/product/d2att/kernel', needed by `out/target/product/d2att/boot.img'. Stop.
make: *** Waiting for unfinished jobs....
Generated: (out/target/product/d2att/android-info.txt)
raj@raj-linux:~/4.2$

in out/target/product/d2att/android-info.txt >> that file has only this line : board=MSM8960
[Android] bobpantsspongesquare:
Thanks for that. Build fired off after that fix. Now, however, I'm getting this:

device/samsung/msm8660-common/power/power.c: In function 'cm_power_hint':
device/samsung/msm8660-common/power/power.c:150:10: error: 'POWER_HINT_BOOST' undeclared (first use in this function)
device/samsung/msm8660-common/power/power.c:150:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/hercules/obj/SHARED_LIBRARIES/power.msm8660_intermediates/power.o] Error 1
make: *** Waiting for unfinished jobs....

It is in reference to http://pastebin.com/AXa30wRQ
[Android] toxicthunder:
This error means that you don't have the kernel files synced for this device.

In your .repo folder, create a file called local_manifest.xml (if you don't have it already) and add the relevant lines for the kernel.

It would be something like -

project =android_kernel_samsung_smdk44 or something.

Please do a search, it has been already answered.
[Android] mg2195:
That won't work as this is aosp. Aosp does not support inline kernel building. You need to get a prebuilt kernel and place it in the out directory or somewhere else and tell it to copy it to the out directory using a device.mk
[Android] manuel100:
hello

i'm getting this weired error while compiling paranoidandroid 2.99 for my galaxy5 (lunching ./rom-build.sh galaxy5)

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

PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bootanimation/240.zip:system/media/bootanimation.zip ignored.

build/core/Makefile:44: attenzione: sovrascrittura dei comandi per l'obiettivo "/home/alessio/android/system/pa_jb/out/target/product/galaxy5/system/etc/mkshrc"

build/core/base_rules.mk:529: attenzione: comandi obsoleti per l'obiettivo "/home/alessio/android/system/pa_jb/out/target/product/galaxy5/system/etc/mkshrc" ignorati

PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bootanimation/320.zip:system/media/bootanimation.zip ignored.

make: *** Nessuna regola per generare l'obiettivo "bacon". Arresto. -->(in english is make: *** No rule to make target `bacon')

i know the command bacon, but why it gaves me error?

ps: i have resolved my previous error, but i didn't had this :confused:

thanks :angel:
[Android] kevin130:
What is an inline kernel? Whenever i look in the file resample.c, it points to a for loop and then im guessing the number after the line is in, is the loop number it has a problem in.

EDIT: Also. Got a little problem. What does a ERROR 1 mean? Ive seen this in the thread but never understood what it ment.

external/speex/libspeex/resample.c: In function 'update_filter':

external/speex/libspeex/resample.c:605:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:686:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:694:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:697:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:704:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c: In function 'speex_resampler_process_int':

external/speex/libspeex/resample.c:870:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:873:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c: In function 'speex_resampler_process_float':

external/speex/libspeex/resample.c:926:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:933:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:943:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

make: *** [out/target/product/shooter/obj/SHARED_LIBRARIES/libspeexresampler_intermediates/libspeex/resample.o] Error 1

make: *** Waiting for unfinished jobs....
[Android] Phil3759:
Hi,

I was building cm10 for i9300 without issues

After that, I downloaded source for the n7100

It added a new common folder

device/samsung/smdk4412-common

Since that, when building for i9300, I get this at early stage

LATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=cm_i9300
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_OS_EXTRA=Linux-3.2.0-32-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/root/Desktop/build_cm10/android/system/out
============================================
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported version
of java.

Your version is: java version "1.6.0_24".
The correct version is: Java SE 1.6.

Please follow the machine setup instructions at
https://source.android.com/source/download.html
************************************************************
build/core/base_rules.mk:171: *** device/samsung/smdk4412-common/camerawrapper: MODULE.TARGET.SHARED_LIBRARIES.camera.exynos4 already defined by device/samsung/i9300/camerawrapper. Stop.

Is there any quick fix that will avoid me digging into the make files or removing one of the 2 devices?

Many thanks for your help
[Android] SMillerNL:
Move the smdk4412 camera wrapper to the other device directory and edit makefiles accordingly?

Just an experienced noob at this, so that would be my attempt.

King of the mashed potatoes©
[Android] Phil3759:
Thanks

I fixed it just after the post:

- deleted the i9300 device folder

- git device i9300 again

and now it works

Strange as even a repo -sync did not fix it

Anyway, thank you. I did not want to go into editing the mk files
[Android] dastin1015:
Repo sync will only update repos included in the manifest.xml and local_manifest.xml. To update a cloned repo navigate to the repo with terminal and do a 'git pull'

私のEVO 3Dから送信される。
[Android] Phil3759:
Thank you for the advice. You are right. I cloned n7100 repo much later compared to i9300 and they added the common repo with i9300 meanwhile which caused conflicts.

Updating i9300 repo fixed it. I will follow your advice and pull to update my device repos

:good: (out of my 8 thanks for today)
[Android] mg2195:
An inline kernel is a kernel that is built from source while the ROM compiles as well...like killing two birds with one stone. You just plug in the kernel source and when you compile the ROM it will compile the kernel as well.

Unfortunately aosp does not support this. It is something cyanogenmod introduced a while ago to make things more standard and clean. So what we have to do is use prebuilt kernels...which is exactly what the name says...a kernel that has already been built
[Android] mg2195:
Yep...just delete whatever line it says it doesn't have a resource for
[Android] x10forevers:
I delete whole xml files

Do I need to delete only lines ??

I mean for best output what is more preferable ?

To delete a single line an error showing or just delete whole xml ???
[Android] SMillerNL:
I would just comment out the line. It might prove useful later on.

King of the mashed potatoes©
[Android] x10forevers:
Can somebody tell what is the solution of my error

I already copy Kernel folder of my device from source to out/target/product/d2att/

Is there anything i can do to make boot.img from there ?

or i need to make boot.img or replace it from earlier version ???

Target boot image: out/target/product/d2att/boot.img
error: could not load kernel 'out/target/product/d2att/kernel'
make: *** [out/target/product/d2att/boot.img] Error 1
make: *** Waiting for unfinished jobs....
Copying: out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
raj@raj-linux:~/revo$
[Android] SMillerNL:
Kernel needs to be an already compiled file.

King of the mashed potatoes©
[Android] x10forevers:
I know it should be there but its not....

Anybody can confirm that if i use cm10 boot.img and put it to the out directory, it will work or not ???
[Android] SMillerNL:
What does compiling that kernel give you?

King of the mashed potatoes©
[Android] x10forevers:
It has only ramdisk.IMG in my out directory as of compiling kernel
[Android] kevin130:
i have still not found a solution to this. Ive looked everywhere :(

In file included from external/speex/libspeex/resample_neon.h:38:0,

from external/speex/libspeex/resample.c:103:

/home/kevin/AOSP_4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

external/speex/libspeex/resample.c: In function 'update_filter':

external/speex/libspeex/resample.c:605:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:686:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:694:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:697:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:704:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c: In function 'speex_resampler_process_int':

external/speex/libspeex/resample.c:870:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:873:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c: In function 'speex_resampler_process_float':

external/speex/libspeex/resample.c:926:10: error: 'for' loop initial declarations are only allowed in C99 mode

external/speex/libspeex/resample.c:926:10: note: use option -std=c99 or -std=gnu99 to compile your code

external/speex/libspeex/resample.c:926:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:933:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/speex/libspeex/resample.c:943:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

make: *** [out/target/product/shooter/obj/SHARED_LIBRARIES/libspeexresampler_intermediates/libspeex/resample.o] Error 1

make: *** Waiting for unfinished jobs....
[Android] x10forevers:
Hello Everybody

Can anyone tell me that which files I need to put under Kernel in out folder for following error ????

Target boot image: out/target/product/d2att/boot.img
target Jar: telephony-common (out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar)
error: could not load kernel 'out/target/product/d2att/kernel'
make: *** [out/target/product/d2att/boot.img] Error 1
make: *** Waiting for unfinished jobs....
'out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.dex' as 'classes.dex'...
make: *** wait: No child processes. Stop.
[Android] kevin130:
EDIT: Try a different kernel
[Android] kevin130:
/home/kevin/AOSP_4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

How do you enable neon instructions? Ive tried this:

TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp

TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp

LOCAL_NEON_CFLAGS := -mfloat-abi=softfp -mfpu=neon -march=armv7

Can anyone help me? ive been on this error for a while. Thanks in advance
[Android] DragunKorr:
been on on this error for 2 days now any help to fix please!

rmoved sdk/uiautomatorviewer and built fine made my system ui fc

removed error message from base rules lost half my jars !:rolleyes:
[Android] Kayant:
Sorry for this but I need some guidance with this weird error. I have tried reinstalling gcc & g++ didn't help

and nothing is coming up when a search.

Thanks for the help :)

host C++: libbcinfo <= frameworks/compile/libbcc/bcinfo/BitcodeTranslator.cpp
i686-linux-g++: error: n: No such file or directory
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libbcinfo_intermediates/BitcodeTranslator.o] Error 1
make: *** Waiting for unfinished jobs....
[Android] manuel100:
hello

i have finally managed to build paranoidandroid for my g5, and i have the solution for 'bacon' problem:

you have to change TARGET_NO_RECOVERY from true to false (boardconfig), and all is fixed :victory:

just a question: i have see gcc 4.7 on android Git repositories, how can i switch the primary compiler (4.6) with this (4.7)?
[Android] sharingan92:
hey can anyone help me with this small error dont know whats happened i followed all the instructions to the letter and this is my only error

~/WORKING_DIRECTORY$ make -j3

make: *** No targets specified and no makefile found. Stop.

any help is greatly appreciated
[Android] mg2195:
Did you run set up?

. build/envsetup.sh

lunch

Pick your device

make -j3

Although you will probably want make -j3 otapackage that way you get a flashable zip...
[Android] sharingan92:
Yes tried that but at . build/envsetup.sh it does nothing

im what Willis was talking about
[Android] mg2195:
Not sure who Willis is...

Anyways . build/encsetup.sh isn't supposed to start a build. It loads the necessary tools required to compile the ROM after running . build/envsetup.sh you have to immediately run the lunch command. It will give you a list of devices, choose yours then run your make command of choice...
[Android] AntiBillOS:
LOL! Tass is galaxy mini legacy armv6 device :D

So you need more edits... Look:

github.com/jellaxy

github.com/thewhisp

P.S. I too have Samsung GT-S5570 Galaxy Mini but now i try to build for my Sony Xperia Neo V.
[Android] kevin130:
make: *** No rule to make target `vendor/htc/shooter/proprietary/proprietary/system/lib/libcamera_client.so', needed by `out/target/product/shooter/obj/lib/libcamera_client.so'. Stop.

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

I know what error is saying and i know how to fix the problem. The directory is wrong. It has two /proprietary. Where am i supposed to change this? Thanks in advance

http://pastebin.com/uWXL00bV heres more up in the error incase thats necassary lol
[Android] bobpantsspongesquare:
Okay, I've managed to get a successful AOSP build for the T989 Hercules but I can not get it to boot beyond the Samsung logo. I know it has to be a kernel issue and I was curious as to what files I'll need to just get going. I figured I could use the CM10 kernel for now to just get it up and running but I'm not sure what I need. I know it's a very noob thing to ask at this point but I'm kind of stuck. Thanks!
[Android] Phil3759:
Hi,

I have a basic question:

When building recovery, *.sh file permissions need to be set before compile time? I always thought no, but looking at it closely, the output doesn't have good permissions by default, at least in root/sbin folder :confused:

The img final file is good despite that?
[Android] kevin130:
Logcat it and check whats wrong. Fix The fatals and check if it boots.
[Android] dastin1015:
No need for the extract script for you since I have a vendor/htc repo

私のEVO 3Dから送信される。
[Android] kevin130:
Im not using your CM10 repo though. Im building AOSP 4.2. Im using someones elses Device repo. Does it matter? Btw, the file its pointing at is there. Its just not pointing to the right place.

EDIT: FIXED: Typos in shooter-vendor-blobs.mk
[Android] mg2195:
Won't work...this is before the kernel is loaded...so no logcat

Just use a cm10 kernel for now and see if it will boot up, you can either replace the current one in the zip or you can use heimdall to flash it

heimdall flash --kernel boot.img

exactly like that...two dashes and everything...you need heimdall though...and you need to navigate to the directory of the boot.IMG you wanna flash
[Android] bobpantsspongesquare:
So can I not simply place the boot.img into the flashable zip of my freshly built aosp rom?
[Android] mg2195:
I said you could...

I said take a cm10 kernel and place it in your aosp zip or heimdall flash...either or
[Android] bobpantsspongesquare:
Doh! Don't know how I read over that. Sorry and thank you very much for the help. ;)
[Android] azoller1:
So what files do I need to change in the ram disk for this to work on an ICS device?
[Android] kevin130:
Is there some kind of way to get a list of all the warnings your recieved while you were compiling? That way i can fix them after the compiling is done.
[Android] kevin130:
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp

aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko

device/htc/shooter/overlay/frameworks/base/core/res/res/values/config.xml:117: error: Resource at config_networkLocationProviderPackageName appears in overlay but not in the base package; use <add-resource> to add.

device/htc/shooter/overlay/frameworks/base/core/res/res/values/config.xml:120: error: Resource at config_geocodeProviderPackageName appears in overlay but not in the base package; use <add-resource> to add.

make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1

make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'

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

I know i can delete the overlay folder or comment out those lines but is there another way around it? Looks like those two things are important. Or are they not?
[Android] mg2195:
I think you would have to edit the actual file in frameworks...so this file would need to be edited: frameworks/base/core/res/res/values/config.xml

You'd probably have to compare it to a cm10 version to see the difference on what they added...

Could be completely wrong about the above though....idk
[Android] kevin130:
I already looked there. Nothing different from the rest of the cm files. Where is the location of the files its asking for?
[Android] mg2195:
Idk...was just an idea...