cm-13.0 building error - Android Q&A, Help & Troubleshooting

I can;t build my rom from sources of cm-13.
art/runtime/base/time_utils.h:77:9: error: 'CLOCK_REALTIME' macro redefined [-Werror,-Wmacro-redefined]
#define CLOCK_REALTIME 0xebadf00d
^
/usr/include/time.h:154:9: note: previous definition is here
#define CLOCK_REALTIME _CLOCK_REALTIME
...
*** [/Volumes/android/cm/out/host/darwin-x86/obj/EXECUTABLES/patchoat_intermediates/patchoat.o] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:18:07 (hh:mm:ss)) ####
Whats the problem and how to fix this?
OS: macOS Sierra
Target device: WileyFox Spark+(porridge)

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!

'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?

(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?

CM 12.0 Build Failed with Error 127

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

build lineage i9100

Can someone there help me I try to compile rom i9100 more of this error
find: '/home/viperx/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
build/core/base_rules.mk:183: *** vendor/samsung/galaxys2-common/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libUMP already defined by hardware/samsung/exynos4/hal/libUMP.
make: *** [build/core/ninja.mk:167: /home/viperx/android/lineage/out/build-lineage_i9100.ninja] Error 1
make: Leaving directory '/home/viperx/android/lineage'
#### make failed to build some targets (01:53 (mm:ss)) ####

Categories

Resources