yashsingh1/xdaforums huggingface dataset:
[Android] jooz920:
hi... i have this error

make: *** No rule to make target '/home/jooz/android/out/target/product/NX402/obj/KERNEL_OBJ/usr', needed by '/home/jooz/android/out/target/product/NX402/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. stop.

thanks for your help.....
[Android] neonkat:
yes.check http://xdaforums.com/showthread.php?p=63434487
[Android] DarkFrenzy:
Framework is not building .

deleting [MENTION=4409600]intde[/MENTION]f and [MENTION=936943]string[/MENTION]Def annotation class files

Then it starts deleting framework class files
[Android] Arvind7352:
That's pretty normal. This action is done after the 'framework' module (framework.jar) has been generated from those classes...

Extra Info : Framework .java files --Compiled--> collection of framework .class --Packed--> framework.jar

Error 1 : Missing maven package. Install it by executing this

sudo apt-get install maven

Error 2/3/4... :

Check if the Source has been properly synced. From the Log, it seems that external/okhttp and external/bouncycastle aren't synced (I may be wrong).

And, as a Secondary note, use hastebin.com for pasting Error logs...
[Android] desalesouche:
about maven :

maven : Depends: libmaven3-core-java (= 3.3.9-3) but it is not going to be installed.

external/okhttp and external/bouncycastle seem to be synchronised with cm sources, staging-cm-14.0
[Android] jooz920:
hi im trying buils cm13 but have this error

build/core/binary.mk:825: fallo en las instrucciones para el objetivo '/home/jooz/android/out/target/product/NX402/obj/EXECUTABLES/tc_intermediates/q_prio.o'

make: *** [/home/jooz/android/out/target/product/NX402/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1

thanks for your help.....
[Android] Arvind7352:
Late answer. I'd answer this tho.

Use PRODUCT_COPY_FILES, applies to every file you may need to symlink. (If you know it's location in the Phone)

eg. In your device tree, add this to your makefile (viz device.mk OR <device-name>.mk )

PRODUCT_COPY_FILES += \
device/${VENDOR}/${DEVICE}/location_to/cal.bin:/data/cal.bin

Example : (Considering your Device && Assuming cal.bin to be present in 'calib' folder)

PRODUCT_COPY_FILES += \
device/semc/coconut/calib/cal.bin:/data/cal.bin
[Android] tschmid:
Thank you very much, I'll try this

Gesendet von meinem Nexus 6P mit Tapatalk
[Android] TimSchumi:
Could you provide more lines of the log? Also, kernel and device tree please.
[Android] Qiangong2:
Hello everyone, twrp building issue here. I keep getting 'bad mtd index' for my partitions

complete log: http://pastebin.com/K9jmS14u

my device tree: https://github.com/Qiangong2/android_device_blu_scx15_sp7715ga_FS001/tree/twrp
[Android] jooz920:
hi Hello everyone,

[MENTION=7331587]TimSchumi[/MENTION], Where do I find the log ?

device tree is: https://github.com/jooz/ZTE-NX402
[Android] MSF Jarvis:
Copy more of the lines you did earlier
[Android] TimSchumi:
Do you also build kernel from source? I didn't find such a entry in BoardConfig, but sometimes kernel source is found anyways
[Android] jooz920:
thank you very much [MENTION=7331587]TimSchumi[/MENTION], what happens is that my device I have been building slowly guiding me other models, because they do not exist for my device , I appreciate if there is anything wrong mk this tell me how to correct it , again thank you very much

device tree is: https://github.com/jooz/ZTE-NX402
[Android] TimSchumi:
Can you provide more of the build log? Simply add the following to the last command:

|& tee build.log

So the build command for AOSP would not be "make", but "make |& tee build.log"

For CyanogenMod it wouldn't be "make bacon" but "make bacon |& tee build.log"

Then upload the last ~500 lines of the log to pastebin (Do NOT post them here).

Also, which commands do you use to build?

EDIT: Could you also upload your stock build.prop to pastebin (please into another paste)?
[Android] Garv Maggu:
Sorry, old post quoted, but how did you solve this? [MENTION=6552280]MSF Jarvis[/MENTION] I am getting this error too.
[Android] MSF Jarvis:
This is an OS issue, I switched server providers and never faced it again. I've had the very best minds try fixing this, but to no avail :(
[Android] Garv Maggu:
By the way, I am getting this error, same problem and same solution?

[MENTION=6552280]MSF Jarvis[/MENTION]

Pinging [MENTION=6049586]Arvind7352[/MENTION] for help.
[Android] MSF Jarvis:
Yes, same issue, IDK why AOSP is still using static x86 binaries when builds are done on x64 and x86_64 machines only. Another of their craziness I can't decipher :/
[Android] Garv Maggu:
You said about changing servers, I mean, which servers are you talking about? I have Ubuntu 16.04.1
[Android] MSF Jarvis:
Physical servers lol, I build on servers, not local machines. You need to change your hardware I guess or build inside an emulator
[Android] jooz920:
i have a new error

log build https://www.dropbox.com/s/6dufrsgq8f8gnvp/log%20build?dl=0

thanks for your help
[Android] TimSchumi:
Sorry, can't help with that one.

You could try a repo sync.

By the way, Did you fix the last error?
[Android] saintxseiya:
suddenly i get an error that com.cyanogen.ambient.ridesharing package is missing, searched for it on the net, but can't find it, where did that package pop up from ?`and how do i get it to my source?

Any ideas?

Saint!
[Android] Modder001:
Hey guys .. please tell me system specifications for compiling aosp 7

Thanks
[Android] MSF Jarvis:
16 gigs of RAM, quad core processor and a minimum of 100 gigabytes of free storage space on your machine.
[Android] Modder001:
What about operating system and Java ? I mean .. can I use Ubuntu 16.04 ? Which Java version do I need ?

Thanks
[Android] sai milind:
trying to build nitrogen os 7.0.0 rom for grand and getting this error can anyone please help me out, although i have modified the files in device tree to support the rom but still no success.

error -

sai_milind@MILIND:/media/sai_milind/my_folder/nitrogen$ . build/envsetup.shincluding device/lge/geehrc/vendorsetup.sh

including sdk/bash_completion/adb.bash

sai_milind@MILIND:/media/sai_milind/my_folder/nitrogen$ brunch i9082build/core/envsetup.mk:151: *** No config file found for TARGET_DEVICE . Stop.

** Don't have a product spec for: 'aosp_i9082'

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

Edit- one thing I noticed is that whenever I am trying to compile for my device galaxy grand it is referring the lge gheerc device tree, don't know why!!!

Thanks!!
[Android] neonkat:
java 1.7 for mm or lower and java 1.8 for android n.
[Android] nicesoni_ash:
Yes, you can. Java version depends on the Android version you are building for. v1.7 is for Marshmallow, v1.8 is for Nougat.

Sent from my "1+2" powered by Unofficial RR

Compiled by myself.
[Android] Garv Maggu:
Getting this error while compiling PA, any help?

1 warning generated.

[ 37% 11000/29349] build /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy

FAILED: /bin/bash -c "(/home/garvmaggu/roms/pa/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/policy.conf ) && (/home/garvmaggu/roms/pa/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (/home/garvmaggu/roms/pa/out/host/linux-x86/bin/sepolicy-analyze /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ]; then	echo "==========" 1>&2;	echo "ERROR: permissive domains not allowed in user builds" 1>&2;	echo "List of invalid domains:" 1>&2;	cat /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy )"

device/qcom/sepolicy/common/audioserver.te:39:ERROR 'attribute qti_debugfs_domain is not declared' at token ';' on line 20942:

typeattribute audioserver qti_debugfs_domain;

#line 39

checkpolicy: error(s) encountered while parsing configuration

/home/garvmaggu/roms/pa/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/policy.conf

[ 37% 11000/29349] host C: fc_sort <= system/sepolicy/tools/fc_sort/fc_sort.c

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

Total time elapsed: 103 minutes (6239.386738201 seconds)

garvmaggu@GarvMaggu:~/roms/pa$
[Android] NepoRood:
Use (copy & paste):

nano -c device/qcom/sepolicy/common/audioserver.te

Then comment line #39
[Android] Garv Maggu:
[MENTION=7237874]NepoRood[/MENTION] Bolded Line is line#39

# access to perflock

allow audioserver mpctl_socket:dir r_dir_perms;

unix_socket_send(audioserver, mpctl, perfd)

unix_socket_connect(audioserver, mpctl, perfd)

#debugfs access to audio

userdebug_or_eng(`

typeattribute audioserver qti_debugfs_domain;

allow audioserver debugfs:dir r_dir_perms;

allow audioserver debugfs:file rw_file_perms;

')

# Allow audioserver to create socket files for audio arbitration

allow audioserver audio_data_file:sock_file { create setattr unlink };

allow audioserver audio_data_file:dir remove_name;
[Android] NepoRood:
This: attribute qti_debugfs_domain

Is the line that's offending SELinux, so, in your case, it would be line #40
[Android] Garv Maggu:
So, what should I do?
[Android] nicesoni_ash:
As he said comment it out, put # in front of the line.

Sent from my "1+2" powered by Unofficial RR

Compiled by myself.
[Android] Garv Maggu:
[MENTION=7237874]NepoRood[/MENTION] Now, this error is coming.

FAILED: /bin/bash -c "(/home/garvmaggu/roms/pa/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/policy.conf ) && (/home/garvmaggu/roms/pa/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (/home/garvmaggu/roms/pa/out/host/linux-x86/bin/sepolicy-analyze /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ]; then	echo "==========" 1>&2;	echo "ERROR: permissive domains not allowed in user builds" 1>&2;	echo "List of invalid domains:" 1>&2;	cat /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/sepolicy )"

libsepol.report_failure: neverallow on line 566 of system/sepolicy/domain.te (or line 9272 of policy.conf) violated by allow audioserver debugfs:file { ioctl read write lock append open };

libsepol.check_assertions: 1 neverallow failures occurred

Error while expanding policy

/home/garvmaggu/roms/pa/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/garvmaggu/roms/pa/out/target/product/nicki/obj/ETC/sepolicy_intermediates/policy.conf

[ 0% 4/18357] -e Building Kernel Config

make: Entering directory `/home/garvmaggu/roms/pa/kernel/sony/msm8x27'

GEN /home/garvmaggu/roms/pa/out/target/product/nicki/obj/KERNEL_OBJ/Makefile

#

# configuration written to .config

#

make: Leaving directory `/home/garvmaggu/roms/pa/kernel/sony/msm8x27'

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

garvmaggu@GarvMaggu:~/roms/pa$
[Android] NepoRood:
As a good friend of mine said: SELinux sux

Unfortunately, I can't help with that one, sorry. There's more knowledgeable people around here that can though, so be paitent :good:
[Android] Zeus Revolution:
I send this link friend , I hope you serve .....

https://github.com/CyanogenMod/android_device_huawei_msm8916-common/tree/cm-14.0?files=1

---------- Post added at 12:22 PM ---------- Previous post was at 12:20 PM ----------

[MENTION=4479868]desalesouche[/MENTION], I send this link friend , I hope you serve .....

https://github.com/CyanogenMod/andro...m-14.0?files=1
[Android] hackslash:
Adopting SELinux is tedious task and there are few people who know about it. You can just disable SELinux completely (or set it to enforcing) and remove all those SELinux policies files from your device tree. Then try to build boot image to see if it works.
[Android] Garv Maggu:
But how do I do it? I am a noob here. :(

How do I remove SELinux policies files from my device tree?
[Android] :
Guys someone to help me?

http://pastebin.com/ETwmJQEx
[Android] hackslash:
First an edit to my first post: (or set SELinux to permissive)

In your BoardConfig.mk, edit the BOARD_KERNEL_CMDLINE line such that set androidboot.selinux to permissive. After that remove every file from SELinux folder in your device tree. The SELinux policies won't compile and so would get rid of those errors. However, your logcat will clog up with AVC Denied warnings which simply means all events/permissions that would have been rejected if SELinux was set to Enforcing (if you didn't used hardware specific sepolicies).

You can also go an extra mile to disable SELinux completely (this is however not recommended). To do that edit your kernel's defconfig to comment the following lines:

CONFIG_SECURITY_SELINUX=y

CONFIG_DEFAULT_SECURITY_SELINUX=y

CONFIG_DEFAULT_SECURITY="selinux"
[Android] Startrek852:
WRONG! That is NOT how you disable SELinux. Look at this commit to find out how to disable SELinux: https://github.com/dorimanx/DORIMAN...mmit/2358579ab8300c067ab3fe8c3ac17d3a92faaafd Also, can someone explain to me why SELinux is such a big deal and why is not recommended to disable it? SELinux has never given me anything but trouble. Also, I've been running a SELinux disabled kernel for a long time, and I haven't noticed any downside to it.
[Android] MSF Jarvis:
Chill, both work. SELinux is a bit of a placebo since with our sepolicies no way we're passing CTS so the whole point is lost. It takes one line of code in an Android app to disable it for good, however best setup in my opinion would be to run SELinux in permissive, so that you can log denials but they won't break anything. Just my two cents :silly:
[Android] NepoRood:
One way is to add this to BoardConfig.mk:

$(shell mkdir -p $(OUT)/obj/KERNEL_OBJ/usr)

There's probably a "better" way, but the above works...
[Android] MSF Jarvis:
KANG BANG! :p

Edit : adding the line recommended above to the first makefile called is recommended fix, like cm.mk or du.mk
[Android] NepoRood:
See, told you there was a better way... (see post by [MENTION=6552280]MSF Jarvis[/MENTION])
[Android] :
HI I add the line to cm.mk :good:

but i get another error :crying:

http://pastebin.com/Vg5Pbe2i

Thanks for Help :)
[Android] Startrek852:
sudo apt install maven
[Android] :
Thanks this helped me ..If i have any eeror i will ask you and Everyone who helped me i will give credits if i get sucess:D

---------- Post added at 22:41 ---------- Previous post was at 21:59 ----------

HI another error :crying::crying:

can you help me!:D

http://pastebin.com/Ej1jyuRA

Thanks:good:
[Android] TimSchumi:
Add a line to (Kernel Source)/include/linux/pkt_sched.h like in this commit: https://github.com/SiniTurk/android...mmit/8a4f0677e5b963aa42c8b0f36d1fbb4fab0ab42c

Other solution would be to reverse a commit in external/iproute2, but the above solution is better
[Android] arunmcops:
CM 14 Error

ninja: error: '/home/arun/cm14/out/target/product/kenzo/obj_arm/SHARED_LIBRARIES/libtime_genoff_intermediates/export_includes', needed by '/home/arun/cm14/out/target/product/kenzo/obj_arm/SHARED_LIBRARIES/libandroid_servers_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/arun/cm14'
[Android] josip-k:
You can actually disable ninja.

Add "export USE_NINJA=false" to .bashrc and try again.
[Android] :
Tnx i will try ?
[Android] Sachin7843:
Successfully built me a CM 13 ROM using your guide :)

Now that Nougat is our, I wanted to build AOSP Nougat 7.0 for onyx, I don't know what files do I need to change. Would you guide me for that? I synced AOSP 7.0 repo, but I had device tree, kernel tree and common tree posted by a developer who made CM14. I want to know what would be changes to make in those trees to make them work with AOSP?
[Android] hackslash:
Thanks for pointing out my mistake. (You could have instead of writing capitalized 'WRONG', wrote 'That's not how it's disabled')

Anyways, SELinux (Security Enhanced Linux) is set of policies/rules that block or allow certain applications to access deep down system settings, modify them or just deny access to a port, file location, etc. Keeping SELinux to 'Permissive' means that all those policies are no longer applied and any application would be allowed access to anything it wants to. If you set it to 'Enforcing' things might break as those applications would be denied that access and so would refuse to work (take Unicon as an example).

SELinux was a 'headache' many years ago. However, as time passed, many applications included SELinux rules and patched the main base OS SE Policy so that they could run flawlessly in 'Enforcing Mode' (requires ROOT access).

If you're concerned about security, keeping SELinux enabled is a top notch priority because any malware could just tap into any system settings, modify them at will since the policies are not active anymore and so all apps are allowed unrestricted access. However keeping SELinux at 'Permissive' is for diagnostic purposes. When SELinux is set at 'Permissive', if there is a rule which blocks access to certain thing, that rule won't be active but if there is an app that violates that rule, those violations will be logged (AVC_Denied errors in logcat). However, that application will still be allowed access. This allows System Administrators to fix loopholes and improve the overall security of their servers, VMs, whatever.

For a normal user, SELinux won't matter. Keeping it disabled (or setting to 'Permissive) doesn't affects the normal daily-life tasks but it does means that the system is more vulnerable to attacks.

Resources:

https://access.redhat.com/documenta...nux-Targeted_Policy-Unconfined_Processes.html

https://access.redhat.com/documenta...ing_Problems-Allowing_Access_audit2allow.html

If you don't know how SELinux works and the concpets involved, then this coloring book is a great place to start:

https://people.redhat.com/duffy/selinux/selinux-coloring-book_A4-Stapled.pdf
[Android] NepoRood:
Out of "Thanks"...

Saying it "Out Loud": Thank You for that useful post
[Android] :
Hi solved with reset commint in external/iproute2

i get new error :crying::crying:

http://pastebin.com/3z5rnvFr

Thanks for your help :good::good:
[Android] TimSchumi:
I still would recommend to change the kernel source, because reverting a commit won't fix the problems for other people building with your device tree.

EDIT: Reverting this commit may also break other stuff, especially if the commit with enabling this enable_flow stuff wasn't the latest one. What Rom and which Version are you building?

About your error: It seems that some header file is missing in some include directory. May I see your Device and Kernel tree?
[Android] :
Thanks again for your time and Help... First i tried that you recommend me (Add a line to (Kernel Source)/include/linux/pkt_sched.h ) but there's no pkt_sched.h file.....

https://github.com/TeamRegular/android_vendor_alcatel_idol3

https://github.com/TeamRegular/android_device_alcatel_idol3

https://github.com/TeamRegular/android_kernel_alcatel_msm8916
[Android] TimSchumi:
You could either try to copy the contents of linux/pkt_sched.h from here (http://lxr.free-electrons.com/source/include/linux/pkt_sched.h?v=2.6.35) and add the line by yourself or get the already patched file from here (http://www.github.com/TeamFreeDroid/android_kernel_samsung_msm8610)

Note that reverting the commit may have side effects depending on which Rom/Version you are building and 8f it was the latest commit.

About your newest problem: What ROM and what Version are you building? Else I can't check the right repositories for the file.

EDIT: Can someone confirm, if my solution for the missing pkt_sched.h file could work?
[Android] :
I'm building CM 13 for IDOL 3 5.5 (Snapdragon 615)
[Android] aoleary:
[MENTION=5216756]jackeagle[/MENTION]

I found this link, that provides a preconfigured VirtualBox VM, completely setup for building MM ROMs from the get-go, so newbies can go straight to the repo step.

https://nathanpfry.com/builduntu-virtual-machine-android-rom-compiling/

Need Beta2.0 version for compiling MM ROMs.
[Android] Startrek852:
Thank you for that very informative post. I'm sorry for writing that capitalized WRONG. :)
[Android] HASH:
Building RR MM for galaxy core prime

Can any help me to solve this error

Error only appears when using eng build

The error wont appear when using userdebug but the build doesnt bootup

I am stuck at this error

Please anyone help
[Android] somadsul:
anyone have solution for this?
[Android] neonkat:
follow next posts after http://xdaforums.com/showthread.php?p=67376420.
[Android] somadsul:
Yes I was corrected 1st error, can I use other files before getting errors? Coz that serial 2 errors I have faced already

sent from my Tencent OS G900H
[Android] neonkat:
it may or may not come. better keep fix in hand and use when needed.

i guess you disabled jack(that's why this error).anyways,continue compiling and add fixes when needed.
[Android] somadsul:
Yes i disabled jack for some errors

sent from my Tencent OS G900H
[Android] 33bca:
Xiamo Mi5 AOSP Build

Hey Guys, I'm trying to build AOSP for the Mi5 (we only have CM and CM based rom for our device...)

We also use a prebuilt kernel, maybe thats the reason for this error, but i hope you guys can maybe help. The prebuilt kernel works on every other rom and is NOT configured to work with cm, so i think it should not be a problem.

http://pastebin.com/9YwfV43e
[Android] Jeik:
It doesn't look like you are using the prebuilt kernel,"drivers/" folder is in the kernel source,if I am not wrong.

It would skip the Kernel/obj if you were using the prebuilt kernel.
[Android] spookcity138:
Not sure why the "no rule to make target zImage" I'm sure someone else will know this.

Maybe try "make zImage" though?
[Android] somadsul:
Now this which is not in you given links,

Is this happening due to jack if so then what i need to do more?
[Android] 33bca:
Thx man!

I already thought it is the problem, but i dont know why it works with near the same config like i used for PAC or AICP, where i did not get this error... but now its working, without any change....

Here you also have the next error i got... http://pastebin.com/xYak2VgV

Here is the source device source

https://github.com/33bca/android_device_xiaomi_gemini/tree/aosp-caf
[Android] Jeik:
aosp/out/target/product/gemini/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/src/crypto/poly1305/poly1305_arm_asm.o: unknown CPU architecture

Did you define it all in the BoardConfig.mk?