CM 12.0 Build Failed with Error 127 - Nexus 9 Q&A, Help & Troubleshooting

I'm trying to build CM 12.0 for Nexus 9.
I followed instructions from here :
https://wiki.lineageos.org/devices/flounder/build#start-the-build
Only thing I changed is replacing CM-14.1 with CM-13.0 in the following command:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
I am getting Error 127. These are the details:
Code:
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar' failed
make: *** [/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar] Error 127
make: *** Waiting for unfinished jobs....
Notice file: packages/providers/DataUsageProvider/NOTICE -- /home/attila/android/cm13/out/target/product/flounder/obj/NOTICE_FILES/src//system/priv-app/DataUsageProvider/DataUsageProvider.apk.txt
make: Leaving directory '/home/attila/android/cm13'
#### make failed to build some targets (20:33 (mm:ss)) ####
Not sure What I'm doing wrong. Any help will be greatly appreciated.

pikudroid said:
I'm trying to build CM 12.0 for Nexus 9.
I followed instructions from here :
https://wiki.lineageos.org/devices/flounder/build#start-the-build
Only thing I changed is replacing CM-14.1 with CM-13.0 in the following command:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
I am getting Error 127. These are the details:
Code:
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar' failed
make: *** [/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar] Error 127
make: *** Waiting for unfinished jobs....
Notice file: packages/providers/DataUsageProvider/NOTICE -- /home/attila/android/cm13/out/target/product/flounder/obj/NOTICE_FILES/src//system/priv-app/DataUsageProvider/DataUsageProvider.apk.txt
make: Leaving directory '/home/attila/android/cm13'
#### make failed to build some targets (20:33 (mm:ss)) ####
Not sure What I'm doing wrong. Any help will be greatly appreciated.
Click to expand...
Click to collapse
In case someone faces the same problem in future, the error was there because I was missing maven.
Just do
Code:
sudo apt-get install maven

Related

[Q] Error while compiling CM12.1

Code:
Import includes file: /home/builder/cm12.1/out/target/product/ks01lte/obj/EXECUTABLES/rfc_intermediates/import_includes
make: *** No rule to make target “/home/builder/cm12.1/out/target/product/ks01lte/obj/EXECUTABLES/rild_intermediates/import_includes” Needed by “/home/builder/cm12.1/out/target/product/ks01lte/obj/SHARED_LIBRARIES/libril_intermediates/export_includes”. Stop.
make: *** Waiting for unfinished jobs
Export includes file: external/bluetooth/bluedroid/test/rfcommtest/Android.mk -- /home/builder/cm/out/target/product/ks01lte/obj/EXECUTABLES/rfc_intermediates/export_includes
#### make failed to build some targets (02:48 (mm:ss)) ####
I always encountered this 2min after brunch. I have re-sync for many times, but it won't help.
Any way to solve this ? Thanks!

[Q] Philz Recovery Compile error

I am currently compiling a recovery for my mk802iv with cm12.1 sources and here are some of the last lines of the compile
Code:
Export includes file: bootable/recovery/utilities/Android.mk -- /home/patrick/android/rk3188/cm12.1/out/target/product/rk3188/obj/STATIC_LIBRARIES/libminizip_intermediates/export_includes
Export includes file: bootable/recovery/minadbd/Android.mk -- /home/patrick/android/rk3188/cm12.1/out/target/product/rk3188/obj/STATIC_LIBRARIES/libminadbd_intermediates/export_includes
make: *** No rule to make target '/home/patrick/android/rk3188/cm12.1/out/target/product/rk3188/obj/STATIC_LIBRARIES/libmkyaffs2image_intermediates/export_includes', needed by '/home/patrick/android/rk3188/cm12.1/out/target/product/rk3188/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/busybox/Android.mk -- /home/patrick/android/rk3188/cm12.1/out/target/product/rk3188/obj/STATIC_LIBRARIES/libbusybox_intermediates/export_includes
#### make failed to build some targets (55 seconds) ####
[email protected]:~/android/rk3188/cm12.1$
Any help is appreciated!
C,
hi, goto bootable/recovery [philz]
and in the $TOP makefile [Android]
remove all yaffs unyaffs references
m

'libaudiopolicymanager" error CAF build

Hello all,
Iḿ trying to build Temasek CAF but im stuck at this error:
Code:
make: *** No rule to make target '/home/fsadino/android/temasek-caf/out/target/product/bacon/obj/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/fsadino/android/temasek-caf/out/target/product/bacon/obj/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes'. Pare.
make: ** Esperando que outros processos terminem.
Import includes file: /home/fsadino/android/temasek-caf/out/target/product/bacon/obj/STATIC_LIBRARIES/libcpustats_intermediates/import_includes
make: Leaving directory '/home/fsadino/android/temasek-caf'
#### make failed to build some targets (03:46 (mm:ss)) ####
When i mka libaudiopolicymanager it fails:
Code:
make: *** No rule to make target 'libaudiopolicymanager'. Pare.
Thanks in advance
Got the solution?
ankurpandeyvns said:
Got the solution?
Click to expand...
Click to collapse
what you expect?

make: *** No rule to make target 'device/infinix/d5110_infinix/audio/audio.cpp CM12.1

Hi! I ported the Infinix Hot 2 device tree and vendor files to my BLU Energy X 2, but I kept the name the same. That is why it says infinix_d5110. So, I ran make -j8 otatools and it is telling me
Code:
make: *** No rule to make target 'device/infinix/d5110_infinix/audio/audio.cpp', needed by '/home/nate/cm12.1/out/target/product/d5110_infinix/obj/SHARED_LIBRARIES/audio.primary.mt6580_intermediates/audio.o'. Stop.
Without modifications to the device tree and vendor, straight from the Infinix Hot 2, this error is not present. In the audio folder, there is only Android.mk, and no file called audio.cpp. It says it is needed by audio.o but when I look in the out directory, that file does not exist.
Terminal:
Code:
make: *** No rule to make target 'device/infinix/d5110_infinix/audio/audio.cpp', needed by '/home/nate/cm12.1/out/target/product/d5110_infinix/obj/SHARED_LIBRARIES/audio.primary.mt6580_intermediates/audio.o'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: hardware/libhardware/modules/audio/Android.mk -- /home/nate/cm12.1/out/target/product/d5110_infinix/obj/SHARED_LIBRARIES/audio.primary.default_intermediates/export_includes
#### make failed to build some targets (04:50 (mm:ss)) ####
Please help! Thanks

(Need Help) Error In Compiling Rom

ERROR: /home/johnmike/lineage/external/owasp/sanitizer/src/main/org/owasp/html/HtmlTokenType.java:0: The type java.util.Map$Entry cannot be found in source files, imported jack libs or the classpath
build/core/java.mk:636: recipe for target '/home/johnmike/lineage/out/target/common/obj/JAVA_LIBRARIES/owasp-html-sanitizer_intermediates/classes.jack' failed
make: *** [/home/johnmike/lineage/out/target/common/obj/JAVA_LIBRARIES/owasp-html-sanitizer_intermediates/classes.jack] Error 41
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/johnmike/lineage'
#### make failed to build some targets (06:39 (mm:ss)) ####
[email protected]:~/lineage$
Kaneki30 said:
ERROR: /home/johnmike/lineage/external/owasp/sanitizer/src/main/org/owasp/html/HtmlTokenType.java:0: The type java.util.Map$Entry cannot be found in source files, imported jack libs or the classpath
build/core/java.mk:636: recipe for target '/home/johnmike/lineage/out/target/common/obj/JAVA_LIBRARIES/owasp-html-sanitizer_intermediates/classes.jack' failed
make: *** [/home/johnmike/lineage/out/target/common/obj/JAVA_LIBRARIES/owasp-html-sanitizer_intermediates/classes.jack] Error 41
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/johnmike/lineage'
#### make failed to build some targets (06:39 (mm:ss)) ####
[email protected]:~/lineage$
Click to expand...
Click to collapse
I have the same problem. Could you fix it?

Categories

Resources