Error while building AOSP - Android Q&A, Help & Troubleshooting

Hi everyone this is my first post on this forum.
I am trying to build AOSP from source for samsung galaxy tab 2 7 (GT-P3113) but i got many errors and build stops here is my build log :
[[email protected] android4.3]$ make otapckage -j10
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=full_p3113
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.1-1-ARCH-x86_64-with-glibc2.2.5
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/p3113/system/usr/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/bin/hostapd'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/bin/hostapd'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libdomx.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libdomx.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libI420colorconvert.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libI420colorconvert.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libmm_osal.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libmm_osal.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/lib/libOMX_Core.so'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/lib/libOMX_Core.so'
build/core/Makefile:32: warning: overriding recipe for target `out/target/product/p3113/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:520: warning: ignoring old recipe for target `out/target/product/p3113/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE p3113
make: *** No rule to make target `otapckage'. Stop.
Can you help me please ?

Charly1811 said:
make: *** No rule to make target `otapckage'. Stop.
Click to expand...
Click to collapse
I think you missed one char in otapackage
Sent from my HTC Incredible S using XDA Premium 4 mobile app

yes that's right sorry . But i got another error :
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSStyleRule.h] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSImportRule.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSPrimitiveValue.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSValue.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSStyleSheet.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8MediaQueryList.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8Counter.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSPageRule.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSStyleDeclaration.h] Killed
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8Rect.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8StyleSheet.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSFontFaceRule.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSRule.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSCharsetRule.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8StyleMedia.h] Error 12
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8RGBColor.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSMediaRule.h] Error 12
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
open2: fork failed: Cannot allocate memory at external/webkit/Source/WebCore/bindings/scripts/IDLParser.pm line 87.
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSValueList.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8WebKitCSSMatrix.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8MediaList.h] Error 12
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSRuleList.h] Error 12
target Generated: libwebcore <= external/webkit/Source/WebCore/dom/ClientRectList.idl
target Generated: libwebcore <= external/webkit/Source/WebCore/dom/Clipboard.idl
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8WebKitCSSKeyframeRule.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8WebKitCSSTransformValue.h] Killed
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8ClientRectList.h] Killed
make: *** Deleting file `out/target/product/p3113/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8ClientRectList.h'
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
What to do now

Related

[Q] Compiling, getting errors?

Can't get past errors, compiling for bionic, ICS from dhackers manifest...
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=cm_targa
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MR1
============================================
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/targa/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/bin/lsof'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/root/init.rc'
system/core/rootdir/Android.mk:42: warning: ignoring old commands for target `out/target/product/targa/root/init.rc'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/root/ueventd.rc'
system/core/rootdir/Android.mk:49: warning: ignoring old commands for target `out/target/product/targa/root/ueventd.rc'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/etc/wifi/tiwlan.ini'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/etc/wifi/tiwlan.ini'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/app/BackupRestoreConfirmation.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/app/BackupRestoreConfirmation.apk'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/app/CalendarProvider.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/app/CalendarProvider.apk'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/app/Calendar.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/app/Calendar.apk'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/lib/libspeexresampler.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/lib/libspeexresampler.so'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/bin/tiap_loader'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/bin/tiap_loader'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/etc/dbus.conf'
system/core/rootdir/Android.mk:31: warning: ignoring old commands for target `out/target/product/targa/system/etc/dbus.conf'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/lib/libvoicesearch.so'
build/core/Makefile:25: warning: ignoring old commands for target `out/target/product/targa/system/lib/libvoicesearch.so'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/targa/system/bin/whisperd'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/targa/system/bin/whisperd'
build/core/Makefile:55: warning: overriding commands for target `out/target/product/targa/root/default.prop'
build/core/Makefile:25: warning: ignoring old commands for target `out/target/product/targa/root/default.prop'
build/core/Makefile:323: warning: overriding commands for target `out/target/product/targa/system/etc/event-log-tags'
build/core/Makefile:25: warning: ignoring old commands for target `out/target/product/targa/system/etc/event-log-tags'
No private recovery resources for TARGET_DEVICE targa
host Executable: mkbootimg (out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg)
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
target thumb C: libc <= bionic/libc/bionic/__errno.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg] Error 1
Help would be much appreciated, thanks. I see "cannot find lstdc++" and the make error 1
If you have an Ubuntu running on 64 Bit it might help to install the g++-multilib package. At least that did it for me ;-)

[Q] Need help compiling CM9 for SGM2 (jena) msm7x27a

I got some build error, can you help me figure it out please?
Code:
[email protected]:~/android/cm9$ make -j`grep 'processor' /proc/cpuinfo | wc -l` otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_jenad
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/jenad/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/app/Superuser.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/app/Superuser.apk'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/etc/mkshrc'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/bin/rild'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/bin/rild'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/lib/libril.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE jenad
build/core/tasks/kernel.mk:40: ***************************************************************
build/core/tasks/kernel.mk:41: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:42: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:43: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:44: * source repository to kernel/samsung/msm7x27a
build/core/tasks/kernel.mk:45: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:46: * for more information *
build/core/tasks/kernel.mk:47: ***************************************************************
Copy: out/target/product/jenad/kernel
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
target SharedLib: libdl (out/target/product/jenad/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target StaticLib: libc_common (out/target/product/jenad/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
target thumb C++: libstdc++ <= bionic/libstdc++/src/one_time_construction.cpp
true
bionic/libstdc++/src/one_time_construction.cpp:1: error: bad value (cortex-a5) for -mtune= switch
make: *** [out/target/product/jenad/obj/SHARED_LIBRARIES/libstdc++_intermediates/src/one_time_construction.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: libstdc++ <= bionic/libstdc++/src/new.cpp
bionic/libstdc++/src/new.cpp:1: error: bad value (cortex-a5) for -mtune= switch
make: *** [out/target/product/jenad/obj/SHARED_LIBRARIES/libstdc++_intermediates/src/new.o] Error 1
[email protected]:~/android/cm9$
Same error wirh CM10.1

[Q] Building CM9 error PLEASE .-.

here is the code
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_cooperve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv6-vfp
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
system/core/toolbox/Android.mk:98: warning: overriding recipe for target `out/target/product/cooperve/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/bin/lsof'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/root/init'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/root/init'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/root/sbin/adbd'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/root/sbin/adbd'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/bin/vold'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/bin/vold'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/lib/libril.so'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/lib/libril.so'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/bin/rild'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/bin/rild'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/lib/hw/sensors.goldfish.so'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/lib/hw/sensors.goldfish.so'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/app/Superuser.apk'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/app/Superuser.apk'
build/core/Makefile:36: warning: overriding recipe for target `out/target/product/cooperve/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old recipe for target `out/target/product/cooperve/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE cooperve
build/core/tasks/kernel.mk:40: ***************************************************************
build/core/tasks/kernel.mk:41: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:42: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:43: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:44: * source repository to kernel/samsung/cooperve
build/core/tasks/kernel.mk:45: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:46: * for more information *
build/core/tasks/kernel.mk:47: ***************************************************************
build/core/tasks/kernel.mk:160: warning: overriding recipe for target `out/target/product/cooperve/kernel'
build/core/Makefile:36: warning: ignoring old recipe for target `out/target/product/cooperve/kernel'
make: *** Sem regra para processar o alvo `device/samsung/tassve/prebuilt/kernel', necessário por `out/target/product/cooperve/kernel'. Pare.

[PROBLEM] Compiling Omni from source fails

Hi,
I was trying to compile Omni 6.0.1 from source for a Samsung Galaxy Grand Prime [ gprimeltevl ], and the process was halting when validatekeymaps was about to be built.
I wanted to post this in Miscellaneous Android Development section but I'm still new so i couldn't.
Here is the console output of make:
Code:
[email protected]:/mnt/android/omni/frameworks/base/tools# m -j8 -C /mnt/android/omni/
make: Entering directory '/mnt/android/omni'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=full_gprimeltevl
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.2-1-ARCH-x86_64-with-Ubuntu-15.10-wily
HOST_BUILD_TYPE=release
BUILD_ID=MOB30M
OUT_DIR=/mnt/android/omni/out
============================================
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
including ./bootable/recovery/Android.mk ...
/bin/bash: line 0: test: -ge: unary operator expected
/bin/bash: line 0: test: -ge: unary operator expected
. .
. .
. .
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/vold/Android.mk ...
including ./vendor/omni/Android.mk ...
including ./vendor/samsung/fortuna/Android.mk ...
including ./vendor/samsung/gprimeltevl/Android.mk ...
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/auto_pair_devlist.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/auto_pair_devlist.conf'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_did.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_did.conf'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_stack.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_stack.conf'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libaudioroute.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libaudioroute.so'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libminui.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libminui.so'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libtinyalsa.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libtinyalsa.so'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/vendor/etc/audio_effects.conf'
PRODUCT_COPY_FILES device/samsung/gprimeltevl/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf ignored.
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/wifi/wpa_supplicant.conf'
No private recovery resources for TARGET_DEVICE gprimeltevl
device/samsung/gprimeltevl/mkbootimg.mk:20: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/boot.img'
build/core/Makefile:580: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/boot.img'
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/samsung/gprimeltevl
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
Import includes file: /mnt/android/omni/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes
make: *** No rule to make target 'NOTICE-HOST-STATIC_LIBRARIES-libinput', needed by '/mnt/android/omni/out/host/linux-x86/bin/validatekeymaps'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: frameworks/base/tools/validatekeymaps/Android.mk -- /mnt/android/omni/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/export_includes
make: Leaving directory '/mnt/android/omni'
#### make failed to build some targets (57 seconds) ####
[email protected]:/mnt/android/omni/frameworks/base/tools#
I'm still a bit new to Android development; this is my first foray into ROM building, though I am experienced in C and am familiar with Java, C++ though I'm not that good with Makefiles. I've been stuck at this point for days, any sort of help would be appreciated at all. Thanks.

allocsize and gralloc_module errors

Im trying to build cm13 for my device (msm8974) and I couldn't solve this error. The solitions that I found on the internet didin't fix this errors. Especially allocSize.
Any reply would be appreciated.
Code:
target thumb C++: gralloc.msm8974 <= hardware/qcom/display-caf/msm8974/libgralloc/framebuffer.cpp
hardware/qcom/display-caf/msm8974/libgralloc/gpu.cpp: In constructor 'gralloc::gpu_context_t::gpu_context_t(const private_module_t*,gralloc::IAllocController*)':
hardware/qcom/display-caf/msm8974/libgralloc/gpu.cpp:48:5: error: 'allocSize' was not declared in this scope
allocSize = gralloc_alloc_size;
^
build/core/binary.mk:706: recipe for target '/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/gpu.o' failed
make: *** [/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/gpu.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: gralloc.msm8974 <= hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp
hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp:367:14: error: 'GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY' was not declared in this scope
case GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY:
^
build/core/binary.mk:706: recipe for target '/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/mapper.o' failed
make: *** [/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/mapper.o] Error 1
#### make failed to build some targets (12:28 (mm:ss)) ####

Categories

Resources