yashsingh1/xdaforums huggingface dataset:
[Android] amit020:
build error

need help, getting error while building resurrection remix oreo rom for moto c plus

[44/44] bootstrap /Volumes/untitled/rr...ut/soong/.minibootstrap/build.ninja.in
[4/4] /Volumes/untitled/rr-oreo/out/so...-oreo/out/soong/.bootstrap/build.ninja
[872/873] glob vendor/rr/build/soong/Android.bp
[56/56] /Volumes/untitled/rr-oreo/out/...untitled/rr-oreo/out/soong/build.ninja
/Volumes/untitled/rr-oreo/out/build-m_e_arm.ninja is missing, regenerating...
[592/1069] including ./packages/apps/ResurrectionOTA/Android.mk ...
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
[739/1069] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1069/1069] including ./vendor/rr/prebuilt/common/Android.mk ...
[ 99% 1272/1273] glob external/llvm/lib/Target/X86/TargetInfo/*.cpp
[100% 1/1] build bacon
FAILED: bacon
/bin/bash -c "(mv /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip ) && (mv /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/system/etc/RR/Changelog.txt /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/-Changelog.txt ) && (md5 -q /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip | sed \"s|/Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/||\" > /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip.md5sum ) && (echo \"Package Complete: /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip\" >&2 ) && (./vendor/rr/tools/rr.sh )"
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
ninja: build stopped: subcommand failed.
01:02:04 ninja failed with: exit status 1

#### failed to build some targets (12:55 (mm:ss)) ####
[Android] rahul1892:
Replace bacon with your device name or the combo which you've added in vendorsetup.sh file.
[Android] amit020:
I got the same error by replacing bacon with the device name , and have tried . build/envsetup.sh && brunch <device name> but while using make -j4 I got different error

ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
ninja: error: '/.txt', needed by '/Volumes/untitled/rr-oreo/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
09:42:17 ninja failed with: exit status 1

And when I use make update-api && make , I got this error

ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
[ 0% 44/13784] //system/tools/hidl:li...dl-gen-ast yacc hidl-gen_y.yy [darwin]
FAILED: /Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.cpp /Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/darwin-x86/bison/bison -d --defines=/Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.h -o /Volumes/untitled/rr-oreo/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/darwin_x86_64_shared/gen/yacc/system/tools/hidl/hidl-gen_y.cpp system/tools/hidl/hidl-gen_y.yy
[ 0% 49/13784] //external/libcxxabi:l... clang++ src/cxa_demangle.cpp [darwin]
ninja: build stopped: subcommand failed.
09:49:26 ninja failed with: exit status 1
[Android] eccko:
Hello, I try to build Dirty Unicorns with n7x-caf but I get that error :confused:

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/ptaoubi/android/dirty/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/home/ptaoubi/android/dirty/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex', missing and no known rule to make it
build/core/ninja.mk:161: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (26 seconds) ####

Full error - https://pastebin.com/p9dnceTN
[Android] KP6_Xda:
Did u find any fix??
[Android] IKGapirov:
https://xdaforums.com/showpost.php?p=66266964&postcount=3038

https://plus.google.com/s//obj/JAVA...ic_intermediates/classes.jack', needed by/top
[Android] bunnyy:
Something is wrong in device/overlay/framework/res/res/values/config.xml
[Android] IceWizard.0912:
There's no directory like that :/
[Android] pix106:
What I understand from this :

In your device tree (device/your_vendor/your_device) you have an overlay directory, which has some XML files in it to override values that exist in android source ; one or more of the values you define in your device tree do not exist in android source, that's what the error says
[Android] IceWizard.0912:
how can I fix it?
[Android] pix106:
By removing things you're trying to override but do not exist (so there's nothing to override) :)

I suppose you 're using a device tree for some other source than the one you're using now
[Android] IceWizard.0912:
Yes I'm building DOT OS with AOSP extended device trees
[Android] Albe96:
Somebody can look into it?

http://jenkins5.legacyserver.in/job/LINEAGE_SAMSUNG_ALBE/38/console

Seems like something is getting wrong with dtbs.Here's my kernel source link--> https://github.com/Albe96XDA/android_kernel_samsung_exynos7420
[Android] AnkitGourav:
Yes, I got the fix the error was in system/media that was isn't synced properly.
[Android] IceWizard.0912:
I can't find config.xml under device/xiaomi/kenzo/overlay/frameworks/base/core/res/res

Please tell me where I'm doing wrong:(
[Android] pix106:
You should give an URL to your device tree if you want help... On GitHub, gitlab, bitbucket...
[Android] IceWizard.0912:
I asked the maintainer where is the config.xml for frameworks, he said I will find it in the common tree, that's where I found it :D
[Android] eccko:
Hello, I try to build bliss rom. How to fix that ?..

[1031/1031] including ./vendor/samsung/ks01ltexx/Android.mk ...
device/samsung/msm8974-common/ril/libril/Android.mk: error: libril (SHARED_LIBRARIES android-arm) missing librilutils (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing sap-api-java-static (JAVA_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/core/main.mk:728: error: exiting from previous errors.
10:52:20 ckati failed with: exit status 1

#### failed to build some targets (51 seconds) ####
[Android] Rush-er:
Same error here..

https://del.dog/uqivasoger.sql
[Android] eccko:
I fixed it, by using another kernel and another device/qcom and vendor, msm-kernel. :)

Let me know if this fixed.

Also did you install all requiment tools?
[Android] Rush-er:
yeah... this is ok ?

https://del.dog/ajasuyiwam.sql

i' ll try thanks btw
[Android] eccko:
Tools, I mean this - https://www.hastebin.com/obiriwoxem.sql

You want build with clang?

TARGET_GCC_VERSION = 4.9
TARGET_NDK_GCC_VERSION =
TARGET_KERNEL_TOOLCHAIN = 4.9
====================================
[Android] Rush-er:
duble checked.. all the same

This is the default one, i didn't change anything just synced the source and the device
[Android] eccko:
What ROM you want to build and for what device ? If I can ask you. about that :)
[Android] Rush-er:
Tipsy for angler (nexus 6p), tried GZOSP also but ended with the SAME errors..
[Android] eccko:
Okay I found kernel for your angler (nexus 6p)

Delete your currently kernel and git clone this with branch oreo-mr1 or branch with valid android version.

https://github.com/franciscofranco/angler

Also give me links to your sources if you can :) (device, kernel, vendor)
[Android] darkness:
i m try to port kernel

https://github.com/SmartPack/SmartPack-Kernel-Project_kltexxx for s4 i9506

drivers/built-in.o: In function `max77803_led_get_en_value':
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:194: undefined reference to `led_flash_en'
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:194: undefined reference to `led_torch_en'
drivers/built-in.o: In function `max77803_led_probe':
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:487: undefined reference to `led_torch_en'
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:487: undefined reference to `led_flash_en'
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:487: undefined reference to `camera_class'
drivers/built-in.o: In function `max77803_led_en':
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:230: undefined reference to `led_flash_en'
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:230: undefined reference to `led_torch_en'
drivers/built-in.o: In function `max77803_led_remove':
/home/ptaoubi/SmartPack/drivers/leds/leds-max77803.c:525: undefined reference to `camera_class'
Makefile:885: recipe for target '.tmp_vmlinux1' failed
[Android] knight182:
how to fix this error?

>> https://www.hastebin.com/iboqojekid.sql

device tree :: https://github.com/asus-devs/android_device_asus_Z00T

Kernel :: https://github.com/asus-devs/android_kernel_asus_msm8916

msm8916-common :: https://github.com/asus-devs/android_device_asus_msm8916-common

Vendor :: https://github.com/asus-devs/proprietary_vendor_asus
[Android] IKGapirov:
U can try delete this line or the folder doze

U can try change this to 0
[Android] surya02:
dude did you got a solution for this error?
[Android] bunnyy:
*solved
[Android] XTutorials:
I have been trying to build dotOS 7.1.2 for some time already and I've been getting a lot of build errors. Most of them are jack-server related. I have got most of them fixed because I have just 4000 files to compile from 40.000(~90%). But now I get a Java error which I can't get any idea to fix. Can someone help me please?

Here is part of the error:

ERROR: /home/andrei/dotos/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4516: The method eraseMiniThumb(long) is undefined for the type MiniThumbFile

And here is the whole log: https://hastebin.com/opofowiwoj.cs

Thanks in advance

Regards,
[Android] IceWizard.0912:
Gettings the same error when I'm trying to build RR nougat

/Code

ERROR: /home/mystrypal00/dotN/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4300: The method eraseMiniThumb(long) is undefined for the ty

pe MiniThumbFile

ERROR: /home/mystrypal00/dotN/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4325: The method eraseMiniThumb(long) is undefined for the ty

pe MiniThumbFile

ERROR: /home/mystrypal00/dotN/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4516: The method eraseMiniThumb(long) is undefined for the ty

pe MiniThumbFile

/Code
[Android] IceWizard.0912:
Found a fix for this,

rm -rf packages/providers/MediaProvider

git clone https://github.com/Viper-Project/android_packages_providers_MediaProvider -b

nougat packages/providers/MediaProviders

---------- Post added at 10:44 AM ---------- Previous post was at 10:43 AM ----------

Found a fix for this,

rm -rf packages/providers/MediaProvider

git clone https://github.com/Viper-Project/android_packages_providers_MediaProvider -b nougat packages/providers/MediaProviders
[Android] albertoduqe:
Hi everyone!

I'm having this error trying to build Candy GSI:

[ 85% 6/7] glob art
ninja: error: '/home/albertoduqe/candy/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/home/albertoduqe/candy/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex', missing and no known rule to make it
12:42:14 ninja failed with: exit status 1

#### make failed to build some targets (01:36 (mm:ss)) ####

I search around and yeah, ril-caf project is in place.

Any more ideas??ç

Thanks!
[Android] bunnyy:
Okay seems to be some files missing.
[Android] bcrichster:
+1

Thank you so much for posting this and [MENTION=672433]amog[/MENTION] for finding this fix, I've been searching for weeks and gave up on several ROMs. This is a blessing and is now building, Thank you again
[Android] IceWizard.0912:
Well thanks to Amog sir(Viper OS) maintainer, he helped me with it.

---------- Post added at 06:35 PM ---------- Previous post was at 06:01 PM ----------

Well thanks to Amog sir(Viper OS) maintainer, he helped me with it.
[Android] Fullbustah:
Hello, I encountered this error while compiling Bootleggers rom for Lenovo P2 (kuntao). Sources are treble enabled.

kernel

device

vendor
[Android] Albe96:
Help Needed--> https://hastebin.com/uwiqafosoy.pl

Full Last_KMSG--> https://drive.google.com/open?id=1SCqwkSeqC8GRiSiVjxeRSVPfOsETLir5
[Android] Hlcpereira:
Try change the HALs to LineageOS ones instead of GZOSP.
[Android] albertoduqe:
Hello everyone,

In some roms, lately, I am findig one of those parsing overlays errors. It happens only in some of the roms I work on for lithium, not in others.

I add the overlay "config_answer_proximity_sensor_enabled" following this implementation to the Dialer package:

https://github.com/BootleggersROM/p...mmit/ec32a0a01ccb57d1a4de1ab03d0fa3ee1ee7a350

(The same commit is found in LineageOS, Cardinal, etc.)

Now building Bootleggers the error occurs:

[ 48% 43402/88748] AAPT2 link /home/albertoduqe/bootleggers/ou...t/lithium/obj/APPS/framework-res_intermediates/package-res.apk
FAILED: /home/albertoduqe/bootleggers/out/target/product/lithium/obj/APPS/framework-res_intermediates/package-res.apk
/bin/bash /home/albertoduqe/bootleggers/out/target/product/lithium/obj/APPS/framework-res_intermediates/package-res.apk.rsp
/home/albertoduqe/bootleggers/out/target/product/lithium/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8996-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_answer_proximity_sensor_enabled does not override an existing resource.
/home/albertoduqe/bootleggers/out/target/product/lithium/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8996-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
/home/albertoduqe/bootleggers/out/target/product/lithium/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8996-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_multiColorNotificationLed does not override an existing resource.
/home/albertoduqe/bootleggers/out/target/product/lithium/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8996-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
error: failed parsing overlays.
[ 48% 43405/88748] Building with Jack: /home/albertoduqe/bootl...mmon/obj/JAVA_LIBRARIES/colorpicker_intermediates/classes.jack
ninja: build stopped: subcommand failed.

Why does this happen? Why does it happen with some roms and not with others?

My guess is that the overlay must exist also in some other instance of the rom source for the error to not happen. In frameworks somewhere I guess?

Also: if the overlay is defined as true in the Dialer package, what I am doing adding it to the device tree overlay is totally redundant, right? I could just don't add it and the proximity check would work?

I can of course just test it but well, maybe someone would care to share some real knowledge as to how and why these overlay business truly work.

THANKS!
[Android] Hlcpereira:
multiColorNotificationLed overlay doesn't exist on BTLG. Seems it's already included on ROM sources. The config_answer_proximity_sensor_enabled one, I think, that it's not included on source, or the same case as multiColorNotificationLed one. Delete NotificationLed one, and comment out config_answer one.
[Android] Jay_B:
Hi, Guys.

I am a newbie to ROM development. Been doing it for the past couple of months. I am compiling Oreo-based ROMs for Oxygen (Xiaomi Mi Max 2). The Oreo sources are not out yet for it.

The issue we have been facing is the "in-call" vol. We are not able to increase or decrease the vol during a call be it from the phones hardware keys or from a headphones hardware keys. For the rest of the media, it works quite good.

I have searched google, git and asked a lot of developers to check and help however it turns out either they are too busy to answer or not interested in helping a noob.

I might not understand a lot about how android works, however, it's a not just for me that I request help. It's for each and every Oxygen user out there using custom ROM that I want to be helped.

I am attaching a call log along with links to the trees I am using, hoping someone out on XDA might be able to help us out.

Oxygen DT : https://github.com/jayant-b/device_xiaomi_oxygen

msm8953-common DT :

https://github.com/jayant-b/device_xiaomi_msm8953-common

Kernel :

https://github.com/jayant-b/andorid_kernel_xiaomi_oxygen

Vendor

https://github.com/jayant-b/proprietary_vendor_xiaomi_oxygen
[Android] knight182:
how to fix this error ?

[ 51% 47802/93116] build /home/vishwaspatel654/out/tar...T/obj/APPS/framework-res_intermediates/package-res.apk
FAILED: /home/vishwaspatel654/out/target/product/Z00T/obj/APPS/framework-res_intermediates/package-res.apk
/bin/bash /home/vishwaspatel654/out/target/product/Z00T/obj/APPS/framework-res_intermediates/package-res.apk.rsp
AAPT2 link /home/vishwaspatel654/out/target/product/Z00T/obj/APPS/framework-res_intermediates/package-res.apk
/home/vishwaspatel654/out/target/product/Z00T/obj/APPS/framework-res_intermediates/flat-res/device/asus/msm8916-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/fullScreenDT2S does not override an existing resource.
/home/vishwaspatel654/out/target/product/Z00T/obj/APPS/framework-res_intermediates/flat-res/device/asus/msm8916-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
error: failed parsing overlays.

https://www.hastebin.com/likeqodulo.cs

Thanks...
[Android] bunnyy:
Device tree??
[Android] IKGapirov:
Change the line like this..
[Android] knight182:
common :: https://github.com/asus-devs/android_device_asus_msm8916-common/tree/aosp-8.1

---------- Post added at 09:18 AM ---------- Previous post was at 09:17 AM ----------

thanks i will try this..

update :: it's worked ☺
[Android] alphamale:
Delete
[Android] Airtioteclint:
Can we use the same work folder for multiple devices? I have two tablets I would like to build resurrection remix for. Would it be possible to clone device trees for both devices in same rr folder considering I'm using same branches throughout? Every thing would go to their specific folders but I'm wondering if theree would be some conflicts during the build env setup.
[Android] DiamondJohn:
I build RR for multiple devices, and it works. You set which branches ie folder contents are used within the includes within the make files. Two devices could share the same kernel and vendor, while using a different device tree.
[Android] sheepkill15:
Tried building lineageos for a5y17lte multiple times and at 32% make stops with this error:

FAILED: /home/simonarons15_gmail_com/android/lineage/out/target/product/a5y17lte/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/simonarons15_gmail_com/android/lineage/out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o /home/simonarons15_gmail_com/android/lineage/out/target/product/a5y17lte/obj/ETC/nonplat_sepolicy.cil_interm

ediates/nonplat_policy_raw.cil.tmp /home/simonarons15_gmail_com/android/lineage/out/target/product/a5y17lte/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf ) && (grep -Fxv -f /home/simonarons15_gmail_com/android/lineage/out/target/

product/a5y17lte/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil /home/simonarons15_gmail_com/android/lineage/out/target/product/a5y17lte/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp > /home/simonarons15_gmail_

com/android/lineage/out/target/product/a5y17lte/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil )"

device/samsung/universal7880-common/sepolicy/cpboot-daemon.te:3:ERROR 'attribute domain_deprecated is not declared' at token ';' on line 22359:

# modem daemon sec label

A little bit more on the error: https://pastebin.com/tEvRs37M
[Android] Jay_B:
Guys any help with this please...
[Android] DiamondJohn:
The following suggestion is not a fix, its a temporary workaround to see what lies ahead. Someone else may have the actual fix.

locally delete the file: device/samsung/universal7880-common/sepolicy/cpboot-daemon.te

Then restart the build from where it stopped.

Make a backup of the file (if its not already on github or such) and a personal note of the error, so as to come back to the issue once the ROM does build 100%.
[Android] sheepkill15:
Thanks for the suggestion, I deleted the file, but the building stops at the exact same time.

I'm wondering if there is a way to exclude sepolicy from building since I don't need it for userdebug.
[Android] DiamondJohn:
It may stop at the same %, but, it would most likely be due to a different allow. You could simply delete every file in that path, if you aren't willing to get a log of your issues. You could also delete all the other SEPolicy files as well to really help it along at this early stage.

It IS used for userdebug, as you can build userdebug as Enforcing. Most builds you see around are userderbug.

The easiest way to remove them is to simply delete files, specifically the ones with allows; you could alternatively remove them from the build, with one or two make file change.
[Android] Infect_Ed:
Why are you making user builds? Use userdebug or eng builds until you start booting. Build permissive. And don't delete sepolicy files.... All you're going to do is break stuff.
[Android] DiamondJohn:
He IS building userdebug. And if you are running permissive, you will not "break" stuff by deleting SEPolicy files (unless you delete definitions/declaration). Also, as I said, make a note and come back to it, there will probably be more serious errors to deal with further into the build, some may be a lot more difficult to correct than SEPolicy. NB: Building permissive does not stop SEPolicy conflicts from stopping the build. ie building permissive will not assist his build to finish/compile, its a boot/run-time effect.