Problem building CM 13 - Android Q&A, Help & Troubleshooting

Hey.
I'm having a problem building CM 13 for my phone... What can i do?
Code:
mkbootfs (/home/valascus/CM13/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/home/valascus/CM13/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/valascus/CM13/out/target/product/p8000/obj/ETC/sepolicy_intermediates/policy.conf
device/elephone/p8000/sepolicy/resmon.te:23:ERROR 'syntax error' at token 'unconfined_domain' on line 16869:
#line 23
unconfined_domain(resmon)
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:85: recipe for target '/home/valascus/CM13/out/target/product/p8000/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/valascus/CM13/out/target/product/p8000/obj/ETC/sepolicy_intermediates/sepolicy] Error 1

Related

CM 12 Build Error

I am attempting to build CM 12 for my phone as the latest prebuilts I could find were all for CM11. I am following the Cyanogenmod Wiki build guide for my phone and my build errored out thusly:
Code:
device/samsung/d710/selinux/system.te:2:ERROR 'unknown type system' at token ';' on line 11185:
allow system input_device:chr_file { read ioctl write open };
#line 1 "device/samsung/d710/selinux/system.te"
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/sarah/android/system/out/target/product/d710/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
It seems odd that 'system' would be an unknown device type, and I haven't edited the file, this is all what downloaded automatically. What can I do to fix this?

Compiler can not find headers in compiling lolipop kernel

Hi,
I want to compile Honor 4C kernel which I downloaded the source code from huawei website, I'm running Ubuntu 15.04 and arm-linux-gnueabihf-gcc Linaro 4.7.3 when I try to compile the source I get this error:
Code:
drivers/hisi/hi6xxx/hi6xxx_sim.c:24:24: fatal error: hi6xxx_sim.h: No such file or directory
compilation terminated.
scripts/Makefile.build:316: recipe for target 'drivers/hisi/hi6xxx/hi6xxx_sim.o' failed
make[3]: *** [drivers/hisi/hi6xxx/hi6xxx_sim.o] Error 1
scripts/Makefile.build:468: recipe for target 'drivers/hisi/hi6xxx' failed
make[2]: *** [drivers/hisi/hi6xxx] Error 2
scripts/Makefile.build:468: recipe for target 'drivers/hisi' failed
make[1]: *** [drivers/hisi] Error 2

Build help?

prebuilts/sdk/api/23.txt:41128: error 8: Removed public class android.widget.SeekBar
prebuilts/sdk/api/23.txt:41136: error 8: Removed public class android.widget.SeekBar.OnSeekBarChangeListener
host C: toybox-instlist <= external/toybox/scripts/install.c
make[1]: Entering directory '/home/Builder/CypherOS/kernel/motorola/msm8916'
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
build/core/tasks/apicheck.mk:46: recipe for target '/home/Builder/CypherOS/out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp' failed
make: *** [/home/Builder/CypherOS/out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp] Error 38
make: *** Waiting for unfinished jobs....
Import includes file: /home/Builder/CypherOS/out/target/product/surnia/obj/EXECUTABLES/recovery_intermediates/import_includes
/home/Builder/CypherOS/out/target/common/obj/PACKAGING/public_api.txt:1696: error 17: Field android.R.id.monitor_box has changed value from 16908401 to 16908349
/home/Builder/CypherOS/out/target/common/obj/PACKAGING/public_api.txt:1705: error 17: Field android.R.id.seek_bar has changed value from 16908402 to 16908350
/home/Builder/CypherOS/out/target/common/obj/PACKAGING/public_api.txt:1812: error 17: Field android.R.string.default_string has changed value from 17039384 to 17039385
******************************
You have tried
"make update-api" doesn't work either

Sony - Xperia - SGP611 - Custom Rom build error

Hi there all,
I have been trying for about a week to get a custom android 5 built for a client for their Xperia Z3 tablet i have followed all the instructions on the Sony website and am running Ubuntu 16, after getting the repositories and required sony Vendor files i finally get to the make -j4 command, this starts to run until it hits an error saying that there is no vendor file for scorpion_windy and then breaks the make process, my question is can i download this resource separately, and also if not how can i choose what files the make command uses can i not just skip the scorpion_windy file?
I am a complete noob and any assistance in this regard would be much appreciated!
Thanks in advance
The info on this thread is what I used http://forum.xda-developers.com/z3-...torial-stock-android-marshmallow-6-0-t3409486 It worked fine on LinuxMint KDE.
SGP611 Build errors
Hi There,
I appreciate the input, but i am attempting to compile the aosp archive, once i complete the setup and finally get to make -j4 the process runs along until it gives me an error regarding the file healthd and the specific error of battery monitor error, i have tried to do this in kit kat, jellybean and marshmallow now have all the sony device files followed the instructions here
developer.sonymobile.com/open-devices/aosp-build-instructions/how-to-build-aosp-marshmallow-for-unlocked-xperia-devices/
But no dice im pretty confused and frustrated at this point any thoughts would be very much appreciated
Can you post a copy of the error from the terminal console?
iancornelius said:
Can you post a copy of the error from the terminal console?
Click to expand...
Click to collapse
Hi There,
Thank you for your reply here is the error im getting
...
including ./vendor/sony/yukon-seagull/proprietary/Android.mk ...
including ./vendor/sony/yukon-tianchi/proprietary/Android.mk ...
No private recovery resources for TARGET_DEVICE scorpion_windy
make: *** No rule to make target 'external/openssl/flavor.mk'. Stop.
#### make failed to build some targets (01:02 (mm:ss)) ####
very frustrating when you learning
Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:50:56 (hh:mm:ss)
Any help would be much appreciated!
Monkybomb said:
Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:50:56 (hh:mm:ss)
Any help would be much appreciated!
Click to expand...
Click to collapse
I've recently built Nougat for my device and came across no errors and followed the guide to the single letter. Have you done everything it has asked to? Most importantly the first part regarding openjdk-8 and the other libraries to be installed.

Ninja error while building Lineage OS

I get this error when I try to build Lineage OS:
[ 99% 955/956] glob test/vts/utils/Android.bp
ninja: error: 'cm-api-stubs-docs', needed by '/home/lennertf/android/lineage/out/target/common/obj/PACKAGING/cm_public_api.txt', missing and no known rule to make it
05:33:41 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
Does someone knows a solution?

Categories

Resources