yashsingh1/xdaforums huggingface dataset:
[Android] gtpitch:
I have made a clean build at least 10 times and the issue and log are the same.

---------- Post added at 11:58 AM ---------- Previous post was at 11:57 AM ----------

The log is in the post from the bootloop if you could review.
[Android] Infinity:
Then definitely you lagging somewhere
[Android] NepoRood:
If you're trying to build AOSP from CM/LOS tree, you'll need to make some changes to your make files, and most likely add a "vendorsetup.sh" file of your own.

Read the guide again and/or search how to do this, Google is your friend :good:
[Android] Raja_12:
Thnx. Im on to it.
[Android] miidxs:
*11*44*64*91#
[Android] rohit9757:
Hello fellow builders,

I am experiencing an issue with building a ROM regarding bootanimation

If anyone can take a look or suggest some solution it would help. Thank You
[Android] Qiangong2:
I'm trying to upgrade a kernel to android 7.1, and it builds, but it does not boot. Is there a commit or something else i'm missing?

Kernel source: http://github.com/Qiangong2/android_kernel_blu_d790q
[Android] nicesoni_ash:
Your errors are pretty clear, open the said cpp file and fix the issue at said line. The identifier you are using are undefined, define them. If you are cherry picking stuff, make sure you are picking dependencies too.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] nicesoni_ash:
Why sometimes after repo sync, my branches HEAD get detached from the actual commit and I get "HEAD detached at "commit id" even though before repo sync I checkout out the branch. This happened to my previously made branches and newly created ones. Any way to keep them checked out after a sync?

Edit:

Got it, I made some new commits but didn't push them to remote that's why (if anyone else is interested)
[Android] Raja_12:
http://pastebin.com/mk1LpMyL
[MENTION=7237874]NepoRood[/MENTION]
[Android] Arvind7352:
Your local manifest has synced the Lights HAL to hardware/cyanogen whereas the ROM's manifest has already synced the same HAL to hardware/aoscp

Remove either of them. AOSCP's hardware/aoscp is identical with hardware/cyanogen

Don't remove both of them though...
[Android] Raja_12:
So can I rm entire hardware/cyanogen directory...
[Android] Raja_12:
ninja: Entering directory `.'

ninja: error: '/home/dragon/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/dragon/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

when searching abt this error they said it would clear by deleting this USE_CUSTOM_AUDIO_POLICY. but i cant find this line on my

BoardConfig.mk or BoardConfigCommon.mk .
[Android] Infinity:
Dude try this (but not so sure here)

Check audio policy is there in rom/packages or not

If it is not there then clone

And if it is there then remove it and clone
[Android] Raja_12:
ninja: Entering directory `.'

ninja: error: '/home/dragon/cypher/out/target/product/tomato/obj/SHARED_LIBRARIES/libqdutils_intermediates/export_includes', needed by '/home/dragon/cypher/out/target/product/tomato/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/import_includes', missing and no known rule to make it

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed.

cloned device/qcom/common

My hardware/qcom/ has following files

root@ubuntu:~/cypher/hardware/qcom# ls

audio bootctrl bt-caf display display-caf-new fm keymaster media-caf msm8960 msm8x26 msm8x84 wlan-caf

audio-caf bt camera display-caf display-mdss gps media media-caf-new msm8994 msm8x27 wlan

Dev tree-

https://github.com/CyanogenMod/android_device_yu_tomato

common-

https://github.com/CyanogenMod/android_device_cyanogen_msm8916-common

I hav tried some changes quoted regarding this issue in this thread but nothing seems wrking. [MENTION=7237874]NepoRood[/MENTION] [MENTION=7159965]Infinity[/MENTION] [MENTION=6049586]Arvind7352[/MENTION] guys suggest me something to work out.
[Android] Raja_12:
target Export Resources: framework-res (/home/dragon/emotion/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)

device/yu/tomato/overlay/frameworks/base/core/res/res/values/config.xml:168: error: Resource at config_deviceKeyHandlerLib appears in overlay but not in the base package; use <add-resource> to add.

device/yu/tomato/overlay/frameworks/base/core/res/res/values/config.xml:172: error: Resource at config_deviceKeyHandlerClass appears in overlay but not in the base package; use <add-resource> to add.

nothing matches overlay file default_wallpaper.png, for flavor hdpi-v4

nothing matches overlay file default_wallpaper.png, for flavor xhdpi-v4

nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4

nothing matches overlay file default_wallpaper.png, for flavor xxxhdpi-v4

[ 30% 14816/49117] build /home/dragon/emotion/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex

Building with Jack: /home/dragon/emotion/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex

ninja: build stopped: subcommand failed.
[Android] tathanhlam66:
Go to your device/overlay/frameworks/base/core/red/red/values, open config.XML remove line "config_deviceKeyHandler" and rebuild
[Android] Raja_12:
target C++: libril <= hardware/ril-caf/libril/RilSocket.cpp

In file*included from hardware/ril-caf/libril/RilSocket.cpp:20:

In file included*from hardware/ril-caf/libril/RilSocket.h:20:

hardware/ril-caf/libril/rilSocketQueue.h:19:10: fatal error: 'hardware/ril/librilutils/proto/sap-api.pb.h' file not found

#include <hardware/ril/librilutils/proto/sap-api.pb.h>

*
[Android] martinusbe:
make clean

sap-api.pb.h' gets generated
[Android] Raja_12:
clean build didn't work. still facing that issue.
[Android] sagarshah1729:
Go the line 19 of hardware/ril-caf/libril/rilSocketQueue.h and replace

#include <hardware/ril/librilutils/proto/sap-api.pb.h> with

#include <hardware/ril-caf/librilutils/proto/sap-api.pb.h>
[Android] Elanza_48:
Will I face any problem for this ?:rolleyes:
[Android] jhalayashraj:
Yup...you just need to delete shallow.lock file and it will be all right.
[Android] Raja_12:
I have successfully compiled a Rom & its working well. Thnks for your support guys [MENTION=7237874]NepoRood[/MENTION] [MENTION=7159965]Infinity[/MENTION] [MENTION=6049586]Arvind7352[/MENTION] [MENTION=5863325]sagarshah1729[/MENTION] [MENTION=3970640]tathanhlam66[/MENTION]
[Android] NepoRood:
That's Awesome, Congratulations :good:
[Android] Rohan purohit:
Could anyone Point out how to write a dependencies file?? LIKE for example if a rom source has..

audio and audio caf.. and my phone is caf based so how to make the build use that ,, i have already built two roms!

but they were cm based and AOSP is giving me headaches due to this PART
[Android] desalesouche:
not sure but may be you miss those files to enable caf folders?

https://github.com/CyanogenMod/andr...856d3469f747eb43c1239ccdf/core/qcom_target.mk

https://github.com/CyanogenMod/andr...6856d3469f747eb43c1239ccdf/core/qcom_utils.mk

let me (us) know if you find the good solution.
[Android] Rohan purohit:
no not that anyway could u help with this error , i cant figure it out thanks !

/home/rohan/temasek/out/target/product/taoshan/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/hwc_fbupdate.o:hwc_fbupdate.cpp:function qhwc::FBUpdateLowRes::preRotateExtDisplay(hwc_context_t*, hwc_layer_1*, overlay::utils::Whf&, hwc_rect&, overlay::utils::eMdpFlags&, int&): error: undefined reference to 'qhwc::updateSource(overlay::utils::eTransform&, overlay::utils::Whf&, hwc_rect&)'
/home/rohan/temasek/out/target/product/taoshan/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/hwc_fbupdate.o:hwc_fbupdate.cpp:function qhwc::FBUpdateLowRes::configure(hwc_context_t*, hwc_display_contents_1*, int): error: undefined reference to 'qhwc::configMdp(overlay::eek:verlay*, overlay::utils::PipeArgs const&, overlay::utils::eTransform const&, hwc_rect const&, hwc_rect const&, MetaData_t const*, overlay::utils::eDest const&)'
collect2: error: ld returned 1 exit status
make: *** [/home/rohan/temasek/out/target/product/taoshan/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/LINKED/hwcomposer.msm8960.so] Error 1
[Android] fritzcola:
What'se the problem here?

No private recovery resources for TARGET_DEVICE p880

make -C kernel/lge/x3 O=/home/lenz/liquid/out/target/product/p880/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /arm-eabi-" headers_install

make[1]: Entering directory '/home/lenz/liquid/kernel/lge/x3'

arm-linux-androideabi-gcc: error trying to exec '/home/lenz/liquid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.4/cc1': execv: Exec format error

make[2]: /arm-eabi-gcc: Command not found

arm-linux-androideabi-gcc: error trying to exec '/home/lenz/liquid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.4/cc1': execv: Exec format error

bionic/libc/crt.mk:95: recipe for target '/home/lenz/liquid/out/target/product/p880/obj/lib/crtbegin_static1.o' failed

make: *** [/home/lenz/liquid/out/target/product/p880/obj/lib/crtbegin_static1.o] Error 1

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

bionic/libc/crt.mk:41: recipe for target '/home/lenz/liquid/out/target/product/p880/obj/lib/crtbrand.s' failed

make: *** [/home/lenz/liquid/out/target/product/p880/obj/lib/crtbrand.s] Error 1

Export includes file: bionic/libc/Android.mk -- /home/lenz/liquid/out/target/product/p880/obj/STATIC_LIBRARIES/libc_intermediates/export_includes

CHK include/linux/version.h

make[1]: Leaving directory '/home/lenz/liquid/kernel/lge/x3'
[Android] howaboutnow:
Android ROM for the Epson Moverio BT-200

I have one question as a novice builder. I'm trying to build an Android ROM for the Epson Moverio BT-200. I'm still in process for downloading the 14 GB, however I went looking for the path for the build tree and could not find it. Can you tell me how I should go about finding the path for the Kernel, vendor, and device for the manifest file?

This is under the section "Building Rom For A Particular Device".
[Android] Lordomn:
path should look like this: (this is device tree for my device)

device/motorola/obake

kernel/motorola/ghost

vendor/motorola/msm8960dt-common

but if you haven't built anything then those folders have to be created. then you can clone the sources for those trees into the created folders. that's if the device has sources to clone.
[Android] ##W4TCH0UT##:
Linaro toolchain?
[Android] :
help

Hi

I try to build slimkat 5.0 for ks01lte

and I get the error
[Android] Lordomn:
it's looking for gralloc_priv.h you have to locate that file in your kernel sources then add it to your device sources in the include folder
[Android] desalesouche:
you might check if you're using good display/media folder.

you might need to add the needed file in your device tree.

https://github.com/LegacyXperia/and...45ba5fb50c4a19d215da0b/include/gralloc_priv.h

don't forget to add tag in your boardconfig.mk

TARGET_SPECIFIC_HEADER_PATH := device/semc/msm7x30-common/include <---> you need to adapt path of course... and to use proper needed gralloc file

---------- Post added at 06:29 PM ---------- Previous post was at 06:28 PM ----------

you were faster...xD :good:
[Android] sagi456:
Java for Jellybean?

If I need to build a ROM from a Jellybean stockrom does it matter if I use Java 6 or 7 (since 6 was indicated in the instructions for Kitkat and 7 for Lollipop...).

Great Job! Thanks for the great step by step guidance! :good:
[Android] katinatez:
Yes, compile kitkat with java 6 and lollipop with java 7.

Unless you cherry-picked commit to build with java 7 on kikat.
[Android] DSA:
So, ive started building cm12 from source, just basic stuff...then swapped to a custom toolchain, did some flag optimization changes, removed some stuff, added some new stuff in via local manifest etc...still compiling fine

ive also been reading as much as i can

so i decided to start cherry picking (slim pie) - found the two commits, put them in and fixed everything up and committed them

I've been compiling using

. build/envsetup.sh && lunch cm_jflte-userdebug && make -j16 otapackage

for weeks now and it builds everything i need it to without messing me around

now - constant error messages about the kernel not having modules enabled, so i enable them (make menuconfig) and i get told that the folder isn't clean, so i clean it (make mrproper) and i get told the modules aren't enabled - im going round and round in circles now

if i then start over (new source etc) and i can compile again...cherry picking seems to set the kernel off

ive read a lot of threads so far, all of them relate to actually building the kernel on its own (which i don't want to do) - i just want to cherry pick 1 thing and compile the rom...not bothered about the kernel at all

any ideas?
[Android] katinatez:
You did not mention which toolchains & version of toolchain 4.8 or 4.9. Or did not mention where the cherry-picks are going. Sounds like your missing commits in kernel that's why it errors out.
[Android] ##W4TCH0UT##:
Modules errors comes at the end of compilation.

The actual error is of you go up in the terminal. Post the error and something can be done.

And this is not related to slim pie.

Sent from my GT-I9082
[Android] DSA:
OK I'm now even more confused

I'm using linaro 4.8 for ROM and Christopher's 4.9.3 linaro for kernel

Using these, the ROM compiles fine with no other edits, takes just under an hour and the ROM flashes fine

As soon as I cherry pick (frameworks/base & packages/app/settings) I get the modules error....it doesn't happen at any other time and I've compiled 26 times so far without having this issue (because I'm not cherry picking)

If its not related to cherry picking, how come it only happens after I perform the action? How can I be missing commits in the kernel when I haven't touched it and it has been compiling fine for 3 weeks?
[Android] :
I do something wrong or not

and I get none zip in out
[Android] katinatez:
OK, I understand did you check to see any cherry-pick conflicts? By typing git status after cherry-pick. Any red letter text in terminal is what you have to fix if you don't it will cause errors on compiling.
[Android] desalesouche:
can you pastebin your boardconfig.mk?
[Android] gamzekal:
omg !!!!!!!!!

nice thread
[Android] Infinity:
Nice to heard this...

Best of luck for future projects too...
[Android] Elanza_48:
Please help !!

Always error while fetching:

platform/prebuilts/tools.

platform/prebuilts/go/darwin-x8600

platform/prebuilts/go/linux-x86.00

But the files exists. Should I remove them and try?
[Android] Pritansh Chandra:
It really helped. Thanks for the awesome guide. :)
[Android] kisiell:
Please help! :(

mkbootimg: error: argument --dt: can't open '/home/kisiell/hos/out/target/product/d855/dt.img': [Errno 2] No such file or directory: '/home/kisiell/hos/out/target/product/d855/dt.img'

little more log: hastebin.com/yadaracefa.lua
[Android] rohit9757:
JPEGLIB

frameworks/base/core/jni/android/graphics/YuvToJpegEncoder.h:7:14: fatal error: 'jpeglib.h' file not found.

getting this while compiling

sudo apt-get install libjpeg-dev /libjpeg62

did this too still no success.:crying:
[Android] Arvind7352:
Try installing either of these packages : libjpeg8-dev OR libjpeg9-dev

Both of these packages contains the header jpeglib.h in it, (open the link and search for jpeglib.h)

https://packages.debian.org/sid/libjpeg8-dev/filelist

https://packages.debian.org/sid/libjpeg9-dev/filelist

EDIT: [MENTION=5350575]rohit9757[/MENTION] install both of them, my system has both of them installed (LinuxMint 18.1 / Ubuntu 16.xx). libjpeg9-dev is only available for Ubuntu 16.xx
[Android] tathanhlam66:
---------- Post added at 02:17 PM ---------- Previous post was at 02:15 PM ----------

[/COLOR]

Install packeges and rebuild

sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev

sudo apt-get install ia32-libs
[Android] Matt07211:
Your missing the dt.img, which is needed for the kernel to interact with the hardware. Use an unmkbootimg tool to unpack a stock boot.img, grab the dt.img and into the "...../product/d855/" directory.

Or you can generate your own dt.img from your own kernel sources.
[Android] rohit9757:
Still getting same output. Anything from the sources?
[Android] Elanza_48:
Tried deleting those files from .repo project and p

project-object didn't worked. Instead getting error platform/tools/external/gradle files no location found.
[Android] Arvind7352:
Check if the folder external/jpeg is present, jpeglib.h is available there too.

If not, then manually clone it from any ROM's GitHub...

https://github.com/LineageOS/android_external_jpeg/tree/cm-14.1
[Android] NepoRood:
Either use force syncing:

repo sync -f --force-sync

Or Clean out the build directory and re-sync (takes longer)

rm -rf * && rm -rf .repo/project*

If you've done work on a device, remove it from build directory before cleaning
[Android] Elanza_48:
I removed and re-initited all.
[Android] theandroidguy:
Jiayu S3 has got almost the same specifications as the Xperia C5 Ultra Dual nd a custom 7.1.1 rom is available for the S3. So someone please help me to port the S3 rom to the C5 Ultra Dual, Thank You
[Android] lazybatman123:
Help

Hi I was wondering if you could help me since i cant download the vendor, device tree and kernel for the model of my phone (sm-g530h) is there anywhere i can find them
[Android] spookcity138:
https://github.com/Cyanogenmod-G530H?tab=repositories
[Android] spirto82:
Hi, I am trying to build a RR custom rom for Huawei P8 Lite (device tree, kernel - not mine).

Shortly after the initiation of the building process with ninja, I get some errors (the full output is here):

[ 3% 1925/49287] target Export Resources: framework-res (/home/spirus/RR/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
warning: string 'candidates_style' has no default translation.
warning: string 'global_actions_screenshot_status' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'wfcSpnFormat' has no default translation.
nothing matches overlay file default_wallpaper.png, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxxhdpi-v4
[ 4% 2129/49287] GENERATING hisi_cm_hi6210sft_defconfig ...
FAILED: /bin/bash -c "/home/spirus/RR/device/hisi/customize/build_script/kernel-config.sh -f /home/spirus/RR/kernel/arch/arm64/configs/ -d /home/spirus/RR/device/hisi/customize/config/arm64/hi6210sft/cm_hi6210sft/product_config/kernel_config -o /home/spirus/RR/kernel/arch/arm64/configs/hisi_cm_hi6210sft_defconfig"
/bin/bash: /home/spirus/RR/device/hisi/customize/build_script/kernel-config.sh: No such file or directory
[ 4% 2129/49287] target R.java/Manifest.java: framework-res (/home/spirus/RR/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp)
warning: string 'candidates_style' has no default translation.
warning: string 'global_actions_screenshot_status' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'wfcSpnFormat' has no default translation.
nothing matches overlay file default_wallpaper.png, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxxhdpi-v4
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/spirus/RR'

#### make failed to build some targets (09:23 (mm:ss)) ####

I would be pleased if someone could help me with these errors.

Thanks in advance.
[Android] lazybatman123:
lazybatman123 will foverer be in your debt :highfive:
[Android] rohit9757:
Yes that worked

Thank you!
[Android] Raja_12:
http://pastebin.com/zSdif9vr

what is the issue here?
[Android] Elanza_48:
please help !!

build error :

1 error generated.

[ 0% 59/33146] target Java: okhttp (/home/rishikundu6/RR/out...arget/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes)

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

[ 0% 59/33146] target Java: bouncycastle-nojarjar (/home/ris...j/JAVA_LIBRARIES/bouncycastle-nojarjar_intermediates/classes)

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/home/rishikundu6/RR'
[Android] Elanza_48:
please help :(
[Android] hyperterminal:
It has been a long time since the thread has last been updated, could this thread considered to be really relevant? [MENTION=5216756]jackeagle[/MENTION]
[Android] SlimShady's:
Anyone knows about this error? Building Unlegacy-Android 4.4 for the LG L5.

It happens at the beginning.

Thanks :)
[Android] blueberry6401:
I've sync with repo sync, now how can I checkout the source by several days ago? I've got some issue with today's build, so I want to go back to check something.
[Android] Raja_12:
http://pastebin.com/mpUX8HTa

target arm C: audio.primary.msm8916_32 <= hardware/qcom/audio/hal/voice.c

In file included from hardware/qcom/audio/hal/voice.c:32:

hardware/qcom/audio/hal/voice_extn/voice_extn.h:194:71: error: unused parameter 'adev' [-Werror,-Wunused-parameter]

static int voice_extn_compress_voip_set_mic_mute(struct audio_device *adev, bool state __unused)

target arm C: audio.primary.msm8916_32 <= hardware/qcom/audio/hal/msm8916/platform.c

In file included from hardware/qcom/audio/hal/msm8916/platform.c:35:

hardware/qcom/audio/hal/voice_extn/voice_extn.h:194:71: error: unused parameter 'adev' [-Werror,-Wunused-parameter]

static int voice_extn_compress_voip_set_mic_mute(struct audio_device *adev, bool state __unused)

[MENTION=7237874]NepoRood[/MENTION] [MENTION=7159965]Infinity[/MENTION]
[Android] Infinity:
Please correct me if i wrong

Delete audio from hardware/qcom/audio*

& Clone audio from cirtus-caf
[Android] Raja_12:
It didnt work bro.