[HELP] Inspire OS 4.4.4 Compilation Error - Android Q&A, Help & Troubleshooting

I've compiled CyanogenMod before, however I've scoured Google and am unable to solve this error in compilaion:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
TARGET_PRODUCT=InspireOS_m8
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-29-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84P
OUT_DIR=/home/brendan/android/inspire/out
============================================
/home/brendan/android/inspire/out/target/product/m8/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/copybit_priv.h'
*** Overlay change detected, clean shared intermediate files...
*** rm -rf /home/brendan/android/inspire/out/target/common/obj/APPS/TelephonyProvider_intermediates /home/brendan/android/inspire/out/target/common/obj/APPS/Settings_intermediates /home/brendan/android/inspire/out/target/common/obj/APPS/framework-res_intermediates /home/brendan/android/inspire/out/target/common/obj/APPS/Camera2_intermediates /home/brendan/android/inspire/out/target/common/obj/APPS/Mms_intermediates /home/brendan/android/inspire/out/target/common/obj/APPS/TeleService_intermediates /home/brendan/android/inspire/out/target/common/obj/APPS/SystemUI_intermediates
build/core/Makefile:66: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/system/lib/hw/consumerir.default.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/system/lib/hw/consumerir.default.so'
build/core/Makefile:66: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/system/lib/libcamera_metadata.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/system/lib/libcamera_metadata.so'
No private recovery resources for TARGET_DEVICE m8
device/htc/m8/mkbootimg.mk:33: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/dt.img'
device/htc/m8/mkbootimg.mk:33: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/dt.img'
device/htc/m8/mkbootimg.mk:42: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/boot.img'
device/htc/m8/mkbootimg.mk:42: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/boot.img'
device/htc/m8/mkbootimg.mk:51: warning: overriding commands for target `/home/brendan/android/inspire/out/target/product/m8/recovery.img'
device/htc/m8/mkbootimg.mk:51: warning: ignoring old commands for target `/home/brendan/android/inspire/out/target/product/m8/recovery.img'
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/curlbuild.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/curl.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/curlrules.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/curlver.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/easy.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/mprintf.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/multi.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/stdcheaders.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libcurl/curl/typecheck-gcc.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libexpat/expat.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libexpat/expat_external.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libpng/png.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libpng/pngconf.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libpng/pngusr.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/selinux/selinux.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/selinux/label.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/selinux/context.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/selinux/avc.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/selinux/android.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libsonivox/eas.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libsonivox/eas_types.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libsonivox/eas_reverb.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libsonivox/jet.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/libwpa_client/wpa_ctrl.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/gralloc_priv.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/gr.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/alloc_controller.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/memalloc.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/copybit.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/copybit_priv.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/display_config.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/mdp_version.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/qdMetaData.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/IQService.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/qcom/display-caf-new/IQClient.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/clnt.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/pmap_clnt.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/rpc.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/svc.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/types.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/librpc/rpc/xdr.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Component.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Core.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Image.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Index.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Other.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Types.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_Video.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/OMX_VideoExt.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-core/omxcore/QCMetaData.h
mkdir -p /home/brendan/android/inspire/out/target/product/m8/obj/KERNEL_OBJ
Header: /home/brendan/android/inspire/out/target/product/m8/obj/include/mm-video/DivxDrmDecrypt/DivXDrmDecrypt.h
mkdir -p /home/brendan/android/inspire/out/target/product/m8/system/lib/modules
Import includes file: /home/brendan/android/inspire/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/import_includes
Export includes file: system/core/cpio/Android.mk -- /home/brendan/android/inspire/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/export_includes
Export includes file: external/libsepol/Android.mk -- /home/brendan/android/inspire/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/export_includes
Yacc: checkpolicy <= external/checkpolicy/policy_parse.y
Import includes file: /home/brendan/android/inspire/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/import_includes
prebuilts/misc/linux-x86/bison/bison -d -v -o /home/brendan/android/inspire/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/checkpolicy/policy_parse.y
Lex: checkpolicy <= external/checkpolicy/policy_scan.l
Export includes file: external/checkpolicy/Android.mk -- /home/brendan/android/inspire/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- /home/brendan/android/inspire/out/host/linux-x86/obj/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Import includes file: /home/brendan/android/inspire/out/host/linux-x86/obj/STATIC_LIBRARIES/libselinux_intermediates/import_includes
Export includes file: external/sepolicy/tools/Android.mk -- /home/brendan/android/inspire/out/host/linux-x86/obj/EXECUTABLES/checkfc_intermediates/export_includes
Notice file: external/libselinux/NOTICE -- /home/brendan/android/inspire/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libselinux.a.txt
Notice file: external/sepolicy/NOTICE -- /home/brendan/android/inspire/out/target/product/m8/obj/NOTICE_FILES/src//root/file_contexts.txt
Export includes file: bionic/libc/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/SHARED_LIBRARIES/libc_intermediates/export_includes
Export includes file: bionic/libm/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/SHARED_LIBRARIES/libm_intermediates/export_includes
Export includes file: bionic/libstdc++/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/SHARED_LIBRARIES/libstdc++_intermediates/export_includes
Export includes file: system/core/fs_mgr/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/export_includes
Export includes file: system/core/logwrapper/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/liblogwrap_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: bionic/libc/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libc_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Export includes file: system/extras/ext4_utils/Android.mk -- /home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/export_includes
make: *** No rule to make target `/home/brendan/android/inspire/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/export_includes', needed by `/home/brendan/android/inspire/out/target/product/m8/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
I suspect it has to do with an error in my Android.mk, but I can't figure out what.. Here it is if anyone wants to see it:
Code:
# Copyright 2010 The Android Open Source Project
LOCAL_PATH:= $(call my-dir)
libext4_utils_src_files := \
make_ext4fs.c \
ext4fixup.c \
ext4_utils.c \
allocate.c \
contents.c \
extent.c \
indirect.c \
uuid.c \
sha1.c \
wipe.c \
crc16.c
#
# -- All host/targets including windows
#
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext4_utils_src_files)
LOCAL_MODULE := libext4_utils_host
LOCAL_STATIC_LIBRARIES := \
libsparse_host \
libz
ifneq ($(HOST_OS),windows)
LOCAL_STATIC_LIBRARIES += libselinux
endif
include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := make_ext4fs_main.c
LOCAL_MODULE := make_ext4fs
LOCAL_STATIC_LIBRARIES += \
libext4_utils_host \
libsparse_host \
libz
ifeq ($(HOST_OS),windows)
LOCAL_LDLIBS += -lws2_32
else
LOCAL_STATIC_LIBRARIES += libselinux
LOCAL_CFLAGS := -DHOST
endif
include $(BUILD_HOST_EXECUTABLE)
#
# -- All host/targets excluding windows
#
ifneq ($(HOST_OS),windows)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext4_utils_src_files)
LOCAL_MODULE := libext4_utils
LOCAL_SHARED_LIBRARIES := \
libselinux \
libsparse \
libz
ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true)
LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE
endif
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext4_utils_src_files)
LOCAL_MODULE := libext4_utils_static
LOCAL_STATIC_LIBRARIES += \
libselinux \
libsparse_static
ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true)
LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := make_ext4fs_main.c
LOCAL_MODULE := make_ext4fs
LOCAL_SHARED_LIBRARIES := \
libext4_utils \
libselinux \
libz
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := make_ext4fs_main.c
LOCAL_MODULE := utility_make_ext4fs
LOCAL_MODULE_STEM := make_ext4fs
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
LOCAL_STATIC_LIBRARIES += \
libext4_utils_static \
libselinux \
libmincrypt \
libsparse_static \
libz \
libcutils \
libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := ext2simg.c
LOCAL_MODULE := ext2simg
LOCAL_SHARED_LIBRARIES += \
libext4_utils \
libselinux \
libsparse \
libz
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := ext2simg.c
LOCAL_MODULE := ext2simg
LOCAL_STATIC_LIBRARIES += \
libext4_utils_host \
libselinux \
libsparse_host \
libz
include $(BUILD_HOST_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := setup_fs.c
LOCAL_MODULE := setup_fs
LOCAL_SHARED_LIBRARIES += libcutils
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := ext4fixup_main.c
LOCAL_MODULE := ext4fixup
LOCAL_SHARED_LIBRARIES += \
libext4_utils \
libsparse \
libz
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := ext4fixup_main.c
LOCAL_MODULE := ext4fixup
LOCAL_STATIC_LIBRARIES += \
libext4_utils_host \
libsparse_host \
libz
include $(BUILD_HOST_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := mkuserimg.sh
LOCAL_SRC_FILES := mkuserimg.sh
LOCAL_MODULE_CLASS := EXECUTABLES
# We don't need any additional suffix.
LOCAL_MODULE_SUFFIX :=
LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
LOCAL_IS_HOST_MODULE := true
include $(BUILD_PREBUILT)
endif
All help is appreciated, thank you!

Related

Adb for Raspberry pi

Update: trevd has managed to make a proper adb 1.0.29 frm source. For those who wish to simply use the binary, you can download it here http://forum.xda-developers.com/attachment.php?attachmentid=1392336&d=1349930509
From trevd:
trevd said:
If anyone wants to hack on this I've setup an armv6 device tree on github to use the with AOSP source you can clone it to <aosp_sources>/device/generic/armv6 then do
Code:
lunch mini_armv6-userdebug && make -j4
......
Click to expand...
Click to collapse
more here http://forum.xda-developers.com/showpost.php?p=32632468&postcount=41
--- OLD ----
I'm trying to build ADB 1.0.28 or higher for the Raspberry Pi. I found a guide here: http://lackingrhoticity.blogspot.com/2010/02/how-to-build-adb-android-debugger.html but it's out of date since we can no longer access kernel.org directly. So, I'm trying to find a new way.
I spoke to Entropy512 and he suggested using the Cyanogenmod repository. So, here's what I have so far.
Code:
sudo apt-get install build-essential libncurses5-dev openjdk-7-jre openjdk-7-jdk bison
mkdir adb
cd adb
git clone git://github.com/CyanogenMod/android_system_core.git system/core
git clone git://github.com/CyanogenMod/android_build.git build
git clone git://github.com/CyanogenMod/android_external_zlib.git external/zlib
git clone git://github.com/CyanogenMod/android_bionic.git bionic
echo "include build/core/main.mk" >Makefile
I edited the adb/build/core/main.mk to reflect the version of JDK and JRE I have on my system. I'm not sure if they are even required at this point... Anyway, I modified the grep statements to find OpenJDK IcedTea instead of Oracle's version. Here's some snippits from the build/core/main.mk file.. make these match the values for your system's "java -version" and "javac -version"
build/core/main.mk
Code:
.
.
.
# Check for the correct version of java
java_version := $(shell java -version 2>&1 | head -n 1 | grep '[ "]1\.7[\. "$$]')
#Removed the next 3 lines
.
# Check for the correct version of javac
javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.7[\. "$$]')
So this puts me here:
Code:
[email protected] ~/adb $ make out/host/linux-x86/bin/adb
^[[A^[[B============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
build/core/tasks/kernel.mk:68: **********************************************************
build/core/tasks/kernel.mk:69: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:70: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:71: * BoardConfig.mk file *
build/core/tasks/kernel.mk:72: **********************************************************
host C: adb <= system/core/adb/adb.c
cc1: error: unrecognized command line option ‘-m32’
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb.o] Error 1
[email protected] ~/adb $
I'm still working on the rest. help would be appreciated. I can't get it to build on my desktop either. I really need help with this.
I found a build of Android4.0 for the Raspberry pi. I know that Android ICS and higher come with adb installed on the device for use with USB Host Mode on the device. So I yanked a copy and installed to an sdcard. Then I pulled the binary from /system/bin/adb. however when run it acts like it's not there even though it is.
Code:
[email protected] ~ $ sudo chmod 777 /usr/bin/adb
[email protected] ~ $ /usr/bin/adb
bash: /usr/bin/adb: No such file or directory
[email protected] ~ $ file /usr/bin/adb
/usr/bin/adb: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
[email protected] ~ $ readelf -d /usr/bin/adb
Dynamic section at offset 0x1708c contains 24 entries:
Tag Type Name/Value
0x00000003 (PLTGOT) 0x1f198
0x00000002 (PLTRELSZ) 768 (bytes)
0x00000017 (JMPREL) 0x9048
0x00000014 (PLTREL) REL
0x00000011 (REL) 0x9348
0x00000012 (RELSZ) 16 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x00000015 (DEBUG) 0x0
0x00000006 (SYMTAB) 0x8488
0x0000000b (SYMENT) 16 (bytes)
0x00000005 (STRTAB) 0x8bd8
0x0000000a (STRSZ) 1135 (bytes)
0x00000004 (HASH) 0x8128
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000001 (NEEDED) Shared library: [libstdc++.so]
0x00000001 (NEEDED) Shared library: [libm.so]
0x00000020 (PREINIT_ARRAY) 0x1f000
0x00000021 (PREINIT_ARRAYSZ) 0x8
0x00000019 (INIT_ARRAY) 0x1f008
0x0000001b (INIT_ARRAYSZ) 8 (bytes)
0x0000001a (FINI_ARRAY) 0x1f010
0x0000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000001e (FLAGS)
0x00000000 (NULL) 0x0
I can see there are shared libraries required (libc.so, libstdc++.so and libm.so) , so I added those to /usr/lib/ chmod'd 777 and still nothing changed. What is required for a non-statically compiled binary to run? Did I install those libs properly? Why is that file saying it's not found?
I usually deal with hardware and java. these system binaries are like greek to me.
I find dynamic dependencies this way (sgh-i717 rild for instance):
Code:
[email protected]:~/build/vendor/samsung/quincyatt/proprietary/bin$ ~/arm-2009q3/bin/arm-none-linux-gnueabi-objdump -x rild | grep NEEDED
NEEDED liblog.so
NEEDED libcutils.so
NEEDED libril.so
NEEDED libdl.so
NEEDED libc.so
NEEDED libstdc++.so
NEEDED libm.so
EDIT: I just re-read about you finding NEEDED. At that point you have to do the same thing to each of those libraries, and find out what they depend on.
EDIT2: Do you have prebuilt/ ?
You can try compiling it statically, sync the AOSP master to get the latest code, then you'll have to edit system/core/*something*(probably adb)/Android.mk and tell it to link the target binary statically.
I'll link the exact file when on a pc.
Sent from my GT-P1000
cdesai said:
You can try compiling it statically, sync the AOSP master to get the latest code, then you'll have to edit system/core/*something*(probably adb)/Android.mk and tell it to link the target binary statically.
I'll link the exact file when on a pc.
Sent from my GT-P1000
Click to expand...
Click to collapse
Right:
Code:
LOCAL_FORCE_STATIC_EXECUTABLE := true
where host adb is defined in system/core/adb/Android.mk
That would be great! How do you compile statically for arm? I put in about 12 hours trying to do this today.
AdamOutler said:
That would be great! How do you compile statically for arm? I put in about 12 hours trying to do this today.
Click to expand...
Click to collapse
It was my assumption from the original link you posted that this was being built on the r-pi.
Without the prebuilts being part of the environment, linux-x86 directory would be the host gcc. In this case on r-pi debian, arm gcc.
Edit: From the original build you had a problem with -m32 not being a valid argument.
You could comment out lines 48 and 49 of: build/core/combo/HOST_linux-x86.mk
and see what happens.
irc?
AdamOutler said:
I put in about 12 hours trying to do this today.
Click to expand...
Click to collapse
Seems like your fighting a losing battle there, for that length of time you might as well have sync'd the full lot and done a full build to begin with, It really is the path of least resistance when It comes to android. Otherwise you end up chasing shadows as you get deeper into the build system.
What are you trying to achieve with this? do you want to connect to other devices from the RaspPi or is the Rasp meant to be on the receiving end?
because obviously you'll need to build the daemonized version if the Rasp is your target, that lives in /sbin/adbd normally on the device.
I had a quick look at that guide. Googles sources now live at android.googlesource.com which can be used instead of the old kernel.org address
i.e
Code:
[B]git clone git://android.git.kernel.org/platform/system/core.git system/core[/B]
becomes
Code:
[B]git clone https://android.googlesource.com/platform/system/core.git system/core[/B]
trevd said:
Seems like your fighting a losing battle there, for that length of time you might as well have sync'd the full lot and done a full build to begin with, It really is the path of least resistance when It comes to android. Otherwise you end up chasing shadows as you get deeper into the build system.
What are you trying to achieve with this? do you want to connect to other devices from the RaspPi or is the Rasp meant to be on the receiving end?
because obviously you'll need to build the daemonized version if the Rasp is your target, that lives in /sbin/adbd normally on the device.
I had a quick look at that guide. Googles sources now live at android.googlesource.com which can be used instead of the old kernel.org address
i.e
Code:
[B]git clone git://android.git.kernel.org/platform/system/core.git system/core[/B]
becomes
Code:
[B]git clone https://android.googlesource.com/platform/system/core.git system/core[/B]
Click to expand...
Click to collapse
Are you sure that will compile on ARM host? I don't want to spend 24 hours downloading and compiling on a 700 MHz processor. The resulting adb binary must run on an arm linux host.
AdamOutler said:
... Then I pulled the binary from /system/bin/adb. however when run it acts like it's not there even though it is.
Code:
[email protected] ~ $ /usr/bin/adb
bash: /usr/bin/adb: No such file or directory
Click to expand...
Click to collapse
Looks to me as you forgot to add your /usr/bin to your PATH variable (which also need to be exported to shell.)
Until you do that you need to use the source operator ".":
Code:
$ [B].[/B]/usr/bin/adb
E:V:A said:
Looks to me as you forgot to add your /usr/bin to your PATH variable (which also need to be exported to shell.)
Until you do that you need to use the source operator ".":
Code:
$ [B].[/B]/usr/bin/adb
Click to expand...
Click to collapse
good thinking.. but it didn't work.. cannot execute binary file.
Code:
[email protected] ~ $ export PATH=/usr/bin:$PATH
[email protected] ~ $ adb
bash: /usr/bin/adb: No such file or directory
[email protected] ~ $ /usr/bin/adb
bash: /usr/bin/adb: No such file or directory
[email protected] ~ $ . /usr/bin/adb
bash: .: /usr/bin/adb: cannot execute binary file
[email protected] ~ $
I have an older copy of ADB 1.0.26, but I need 1.0.28. What is the difference here aside from the shared objects which I've already put into /usr/lib.
Code:
[email protected] ~ $ file /usr/bin/adb #new version
/usr/bin/adb: setuid setgid ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
[email protected] ~ $ file /bin/adb #old version
/bin/adb: setuid setgid ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.26, BuildID[sha1]=0x8ffd8c80a0705dc113149612e3067931208bfd70, not stripped
bhundven said:
It was my assumption from the original link you posted that this was being built on the r-pi.
Without the prebuilts being part of the environment, linux-x86 directory would be the host gcc. In this case on r-pi debian, arm gcc.
Edit: From the original build you had a problem with -m32 not being a valid argument.
You could comment out lines 48 and 49 of: build/core/combo/HOST_linux-x86.mk
and see what happens.
irc?
Click to expand...
Click to collapse
I did this. I got most of the way through compiling.
Code:
[email protected] ~/adb $ make out/host/linux-x86/bin/adb
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
build/core/tasks/kernel.mk:68: **********************************************************
build/core/tasks/kernel.mk:69: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:70: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:71: * BoardConfig.mk file *
build/core/tasks/kernel.mk:72: **********************************************************
host C: adb <= system/core/adb/adb.c
system/core/adb/adb.c: In function ‘connect_device’:
system/core/adb/adb.c:998:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: adb <= system/core/adb/console.c
host C: adb <= system/core/adb/transport.c
host C: adb <= system/core/adb/transport_local.c
system/core/adb/transport_local.c: In function ‘local_init’:
system/core/adb/transport_local.c:321:8: warning: extra tokens at end of #endif directive [enabled by default]
host C: adb <= system/core/adb/transport_usb.c
host C: adb <= system/core/adb/commandline.c
host C: adb <= system/core/adb/adb_client.c
host C: adb <= system/core/adb/sockets.c
host C: adb <= system/core/adb/services.c
host C: adb <= system/core/adb/file_sync_client.c
host C: adb <= system/core/adb/get_my_path_linux.c
host C: adb <= system/core/adb/usb_linux.c
host C: adb <= system/core/adb/utils.c
host C: adb <= system/core/adb/usb_vendors.c
host C: adb <= system/core/adb/fdevent.c
host C: libzipfile <= system/core/libzipfile/centraldir.c
host C: libzipfile <= system/core/libzipfile/zipfile.c
host StaticLib: libzipfile (out/host/linux-x86/obj/STATIC_LIBRARIES/libzipfile_intermediates/libzipfile.a)
host C: libunz <= external/zlib/adler32.c
host C: libunz <= external/zlib/crc32.c
host C: libunz <= external/zlib/zutil.c
host C: libunz <= external/zlib/inflate.c
host C: libunz <= external/zlib/inftrees.c
host C: libunz <= external/zlib/inffast.c
host StaticLib: libunz (out/host/linux-x86/obj/STATIC_LIBRARIES/libunz_intermediates/libunz.a)
host C: liblog <= system/core/liblog/logd_write.c
system/core/liblog/logd_write.c: In function ‘__write_to_log_kernel’:
system/core/liblog/logd_write.c:90:9: warning: implicit declaration of function ‘fakeLogWritev’ [-Wimplicit-function-declaration]
system/core/liblog/logd_write.c: In function ‘__write_to_log_init’:
system/core/liblog/logd_write.c:103:9: warning: implicit declaration of function ‘fakeLogOpen’ [-Wimplicit-function-declaration]
system/core/liblog/logd_write.c:112:13: warning: implicit declaration of function ‘fakeLogClose’ [-Wimplicit-function-declaration]
host C: liblog <= system/core/liblog/logprint.c
host C: liblog <= system/core/liblog/event_tag_map.c
host C: liblog <= system/core/liblog/fake_log_device.c
host StaticLib: liblog (out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a)
host C: libcutils <= system/core/libcutils/atomic.c
In file included from system/core/include/cutils/atomic-inline.h:47:0,
from system/core/libcutils/atomic.c:19:
system/core/include/cutils/atomic-arm.h:21:34: fatal error: machine/cpu-features.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/atomic.o] Error 1
[email protected] ~/adb $
Not sure what I need to do to fix system/core/libcutils/atomic.c Maybe I need to get the machine/ repo.
I was able to link some libraries around and ended up here..
Code:
[email protected] ~/adb $ make out/host/linux-x86/bin/adb
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
build/core/tasks/kernel.mk:68: **********************************************************
build/core/tasks/kernel.mk:69: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:70: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:71: * BoardConfig.mk file *
build/core/tasks/kernel.mk:72: **********************************************************
host C: libcutils <= system/core/libcutils/atomic.c
host C: libcutils <= system/core/libcutils/array.c
host C: libcutils <= system/core/libcutils/hashmap.c
host C: libcutils <= system/core/libcutils/native_handle.c
host C: libcutils <= system/core/libcutils/buffer.c
host C: libcutils <= system/core/libcutils/socket_inaddr_any_server.c
host C: libcutils <= system/core/libcutils/socket_local_client.c
host C: libcutils <= system/core/libcutils/socket_local_server.c
host C: libcutils <= system/core/libcutils/socket_loopback_client.c
host C: libcutils <= system/core/libcutils/socket_loopback_server.c
host C: libcutils <= system/core/libcutils/socket_network_client.c
host C: libcutils <= system/core/libcutils/sockets.c
host C: libcutils <= system/core/libcutils/config_utils.c
host C: libcutils <= system/core/libcutils/cpu_info.c
host C: libcutils <= system/core/libcutils/load_file.c
host C: libcutils <= system/core/libcutils/list.c
host C: libcutils <= system/core/libcutils/open_memstream.c
host C: libcutils <= system/core/libcutils/strdup16to8.c
host C: libcutils <= system/core/libcutils/strdup8to16.c
host C: libcutils <= system/core/libcutils/record_stream.c
host C: libcutils <= system/core/libcutils/process_name.c
host C: libcutils <= system/core/libcutils/properties.c
host C: libcutils <= system/core/libcutils/threads.c
host C: libcutils <= system/core/libcutils/sched_policy.c
host C: libcutils <= system/core/libcutils/iosched_policy.c
host C: libcutils <= system/core/libcutils/str_parms.c
host C: libcutils <= system/core/libcutils/abort_socket.c
host C: libcutils <= system/core/libcutils/mspace.c
host C: libcutils <= system/core/libcutils/selector.c
host C: libcutils <= system/core/libcutils/tztime.c
system/core/libcutils/tztime.c: In function ‘differ_by_repeat’:
system/core/libcutils/tztime.c:303:2: warning: comparison is always false due to limited range of data type [-Wtype-limits]
system/core/libcutils/tztime.c: In function ‘localsub’:
system/core/libcutils/tztime.c:1267:24: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
host C: libcutils <= system/core/libcutils/zygote.c
host C: libcutils <= system/core/libcutils/ashmem-host.c
host C: libcutils <= system/core/libcutils/tzstrftime.c
system/core/libcutils/tzstrftime.c: In function ‘_fmt’:
system/core/libcutils/tzstrftime.c:360:7: warning: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
system/core/libcutils/tzstrftime.c:360:14: warning: incompatible implicit declaration of built-in function ‘sprintf’ [enabled by default]
system/core/libcutils/tzstrftime.c: In function ‘_conv’:
system/core/libcutils/tzstrftime.c:628:9: warning: incompatible implicit declaration of built-in function ‘sprintf’ [enabled by default]
host C: libcutils <= system/core/libcutils/dlmalloc_stubs.c
host StaticLib: libcutils (out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutils.a)
host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)
true
host C: acp <= build/tools/acp/acp.c
host C++: libhost <= build/libs/host/pseudolocalize.cpp
host C: libhost <= build/libs/host/CopyFile.c
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
true
Install: out/host/linux-x86/bin/acp
Notice file: system/core/adb/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/adb.txt
Notice file: system/core/libzipfile/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libzipfile.a.txt
Notice file: system/core/liblog/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt
Notice file: system/core/libcutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcutils.a.txt
target arm C: libc <= bionic/libc/bionic/pthread.c
target thumb C: libc <= bionic/libc/arch-arm/bionic/exidx_dynamic.c
target thumb C: libc <= bionic/libc/unistd/sysconf.c
target thumb C: libc <= bionic/libc/bionic/__errno.c
target thumb C: libc <= bionic/libc/bionic/dlmalloc.c
target thumb C: libc <= bionic/libc/bionic/malloc_debug_common.c
target thumb C: libc <= bionic/libc/bionic/libc_init_dynamic.c
target thumb C: libdl <= bionic/libdl/libdl.c
cc -mthumb-interwork -Ibionic/libc/private -DCRT_LEGACY_WORKAROUND -o out/target/product/generic/obj/lib/crtbegin_so.o -c bionic/libc/arch-arm/bionic/crtbegin_so.S
cc -mthumb-interwork -Ibionic/libc/private -DCRT_LEGACY_WORKAROUND -o out/target/product/generic/obj/lib/crtend_so.o -c bionic/libc/arch-arm/bionic/crtend_so.S
target SharedLib: libdl (out/target/product/generic/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/usr/bin/ld: unrecognized option '--icf=safe'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] Error 1
so I did a
Code:
[email protected] ~/adb $ grep -r 'icf=safe' ./*
./build/core/combo/TARGET_linux-arm.mk: -Wl,--icf=safe \
and I removed that icf parameter.
ok, so i've been hacking around on this quite a bit... I don't know how to work through this final linking part. here's a pastebin...
http://pastebin.com/pb8F7raB
how do i fix undefined references? I've been hacking it up by linking files where they should be linkd. I don't know how to fix this. Like I said before... I don't work at this level usually. I work on Java, shell, and hardware. C and middle-ware is not my thing.
AdamOutler said:
ok, so i've been hacking around on this quite a bit... I don't know how to work through this final linking part. here's a pastebin...
http://pastebin.com/pb8F7raB
how do i fix undefined references? I've been hacking it up by linking files where they should be linkd. I don't know how to fix this. Like I said before... I don't work at this level usually. I work on Java, shell, and hardware. C and middle-ware is not my thing.
Click to expand...
Click to collapse
Try adding:
Code:
--with-float=soft
to LOCAL_CFLAGS
EDIT: You might also need to add
Code:
-lgcc
to the LOCAL_LDFLAGS
bhundven said:
Try adding:
Code:
--with-float=soft
to LOCAL_CFLAGS
EDIT: You might also need to add
Code:
-lgcc
to the LOCAL_LDFLAGS
Click to expand...
Click to collapse
Thanks. I'm not sure where to add it though
Code:
[email protected] ~/adb $ grep -R LOCAL_CFLAGS ./*
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags)
./bionic/libc/Android.mk:LOCAL_CFLAGS+= \
./bionic/libc/Android.mk:LOCAL_CFLAGS += -DCRT_LEGACY_WORKAROUND
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags) \
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags) \
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags)
./bionic/libc/Android.mk:LOCAL_CFLAGS := \
./bionic/libc/Android.mk:LOCAL_CFLAGS := \
./bionic/libc/Jamfile: local LOCAL_CFLAGS LOCAL_DEFINES LOCAL_INCLUDES LOCAL_SRC NO_LOCAL_SRC ;
./bionic/libc/Jamfile: CFLAGS += $(LOCAL_CFLAGS) ;
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DVM_SPLIT_2G
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DPRELINK
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DLINKER_TEXT_BASE=$(LINKER_TEXT_BASE)
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DLINKER_AREA_SIZE=$(LINKER_AREA_SIZE)
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DLINKER_DEBUG=0
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DHAVE_TEGRA_ERRATA_657451
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DHAVE_TEGRA_ERRATA_657451
./bionic/linker/Android.mk:LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/private
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DANDROID_ARM_LINKER
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DANDROID_X86_LINKER
./bionic/linker/Android.mk: LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/arch-x86/bionic
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DANDROID_SH_LINKER
./bionic/linker/README.TXT: LOCAL_CFLAGS += -DLINKER_DEBUG=0
./bionic/linker/README.TXT: LOCAL_CFLAGS += -DLINKER_DEBUG=1
./bionic/libstdc++/Android.mk:LOCAL_CFLAGS := $(libstdc++_cflags)
./bionic/libstdc++/Android.mk:LOCAL_CFLAGS := $(libstdc++_cflags)
./build/tools/acp/Android.mk:LOCAL_CFLAGS += -DWIN32_EXE
./build/tools/acp/Android.mk:LOCAL_CFLAGS += -DMACOSX_RSRC
./build/tools/rgb2565/Android.mk:LOCAL_CFLAGS += -O2 -Wall -Wno-unused-parameter
./build/buildspec.mk.default:# will be added to LOCAL_CFLAGS when building the module.
./build/core/clear_vars.mk:LOCAL_CFLAGS:=
./build/core/build-system.html:LOCAL_CFLAGS += -DNDEBUG=1
./build/core/build-system.html:<h4>LOCAL_CFLAGS</h4>
./build/core/build-system.html:<p><code>LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1</code></p>
./build/core/build-system.html:<code>LOCAL_CPPFLAGS</code> is guaranteed to be after <code>LOCAL_CFLAGS</code>
./build/core/build-system.html:<code>LOCAL_CFLAGS</code>.
./build/core/build-system.html:<code>LOCAL_C_INCLUDES</code>, <code>LOCAL_CFLAGS</code>, and
./build/core/native_test.mk:LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING
./build/core/host_native_test.mk:LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
./build/core/binary.mk: LOCAL_CFLAGS += $(TARGET_FDO_CFLAGS)
./build/core/binary.mk:LOCAL_CFLAGS += -DGOOGLE_PROTOBUF_NO_RTTI
./build/core/binary.mk:$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_CFLAGS := $(LOCAL_CFLAGS)
./build/libs/host/Android.mk:LOCAL_CFLAGS += -DWIN32_EXE
./build/libs/host/Android.mk:LOCAL_CFLAGS += -DMACOSX_RSRC
./external/zlib/Android.mk:LOCAL_CFLAGS += -O3 -DUSE_MMAP $(zlib_arm_flags)
./external/zlib/Android.mk:LOCAL_CFLAGS += -O3 -DUSE_MMAP $(zlib_arm_flags)
./external/zlib/Android.mk:LOCAL_CFLAGS += -O3 -DUSE_MMAP
./system/core/libsysutils/Android.mk:LOCAL_CFLAGS :=
./system/core/charger/Android.mk:LOCAL_CFLAGS += -DBATTERY_DEVICE_NAME=\"$(BOARD_BATTERY_DEVICE_NAME)\"
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += $(hostSmpFlag)
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += -DHAVE_MEMSET16 -DHAVE_MEMSET32
./system/core/libcutils/Android.mk: LOCAL_CFLAGS += -DRECOVERY_PRE_COMMAND='$(TARGET_RECOVERY_PRE_COMMAND)'
./system/core/libcutils/Android.mk: LOCAL_CFLAGS += -DRECOVERY_PRE_COMMAND_CLEAR_REASON
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += $(targetSmpFlag)
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += $(targetSmpFlag)
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += -DTEST_STR_PARMS
./system/core/libusbhost/Android.mk:LOCAL_CFLAGS := -g -DUSE_LIBLOG
./system/core/sh/Android.mk:LOCAL_CFLAGS += -DSHELL -DWITH_LINENOISE
./system/core/sh/Android.mk:make_ash_files: PRIVATE_CFLAGS := $(LOCAL_CFLAGS)
./system/core/libdiskconfig/Android.mk:LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS := -Wall
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP_D32
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP_D32
./system/core/adb/Android.mk:LOCAL_CFLAGS += -g -DADB_HOST=1 -Wall -Wno-unused-parameter
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
./system/core/adb/Android.mk:LOCAL_CFLAGS := -g -DADB_HOST=0 -Wall -Wno-unused-parameter
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
./system/core/adb/Android.mk:LOCAL_CFLAGS += -DANDROID_GADGET=1
./system/core/adb/Android.mk: LOCAL_CFLAGS += -DBOARD_ALWAYS_INSECURE
./system/core/adb/Android.mk:LOCAL_CFLAGS := \
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/nexus/Android.mk:LOCAL_CFLAGS :=
./system/core/nexus/Android.mk:LOCAL_CFLAGS :=
./system/core/libpixelflinger/Android.mk:LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
./system/core/libpixelflinger/Android.mk:LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
./system/core/libpixelflinger/Android.mk:LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
./system/core/liblog/Android.mk:LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1
./system/core/init/Android.mk:LOCAL_CFLAGS += -DBOOTCHART=1
./system/core/init/Android.mk:LOCAL_CFLAGS += -DNO_INITLOGO
./system/core/init/Android.mk: $(eval LOCAL_CFLAGS += -D$(system_core_init_define)=\"$($(system_core_init_define))\") \
[email protected] ~/adb $
This is all very confusing.
I pushed my source to dev host for anyone interested. http://d-h.st/wmN
I will make sure to hit that thanks button once I get to a desktop. This RPI takes too long to scroll and I'm using the web from it.
AdamOutler said:
Thanks. I'm not sure where to add it though
Code:
[email protected] ~/adb $ grep -R LOCAL_CFLAGS ./*
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags)
./bionic/libc/Android.mk:LOCAL_CFLAGS+= \
./bionic/libc/Android.mk:LOCAL_CFLAGS += -DCRT_LEGACY_WORKAROUND
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags) \
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags) \
./bionic/libc/Android.mk:LOCAL_CFLAGS := $(libc_common_cflags)
./bionic/libc/Android.mk:LOCAL_CFLAGS := \
./bionic/libc/Android.mk:LOCAL_CFLAGS := \
./bionic/libc/Jamfile: local LOCAL_CFLAGS LOCAL_DEFINES LOCAL_INCLUDES LOCAL_SRC NO_LOCAL_SRC ;
./bionic/libc/Jamfile: CFLAGS += $(LOCAL_CFLAGS) ;
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DVM_SPLIT_2G
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DPRELINK
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DLINKER_TEXT_BASE=$(LINKER_TEXT_BASE)
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DLINKER_AREA_SIZE=$(LINKER_AREA_SIZE)
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DLINKER_DEBUG=0
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DHAVE_TEGRA_ERRATA_657451
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DHAVE_TEGRA_ERRATA_657451
./bionic/linker/Android.mk:LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/private
./bionic/linker/Android.mk:LOCAL_CFLAGS += -DANDROID_ARM_LINKER
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DANDROID_X86_LINKER
./bionic/linker/Android.mk: LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/arch-x86/bionic
./bionic/linker/Android.mk: LOCAL_CFLAGS += -DANDROID_SH_LINKER
./bionic/linker/README.TXT: LOCAL_CFLAGS += -DLINKER_DEBUG=0
./bionic/linker/README.TXT: LOCAL_CFLAGS += -DLINKER_DEBUG=1
./bionic/libstdc++/Android.mk:LOCAL_CFLAGS := $(libstdc++_cflags)
./bionic/libstdc++/Android.mk:LOCAL_CFLAGS := $(libstdc++_cflags)
./build/tools/acp/Android.mk:LOCAL_CFLAGS += -DWIN32_EXE
./build/tools/acp/Android.mk:LOCAL_CFLAGS += -DMACOSX_RSRC
./build/tools/rgb2565/Android.mk:LOCAL_CFLAGS += -O2 -Wall -Wno-unused-parameter
./build/buildspec.mk.default:# will be added to LOCAL_CFLAGS when building the module.
./build/core/clear_vars.mk:LOCAL_CFLAGS:=
./build/core/build-system.html:LOCAL_CFLAGS += -DNDEBUG=1
./build/core/build-system.html:<h4>LOCAL_CFLAGS</h4>
./build/core/build-system.html:<p><code>LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1</code></p>
./build/core/build-system.html:<code>LOCAL_CPPFLAGS</code> is guaranteed to be after <code>LOCAL_CFLAGS</code>
./build/core/build-system.html:<code>LOCAL_CFLAGS</code>.
./build/core/build-system.html:<code>LOCAL_C_INCLUDES</code>, <code>LOCAL_CFLAGS</code>, and
./build/core/native_test.mk:LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING
./build/core/host_native_test.mk:LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
./build/core/binary.mk: LOCAL_CFLAGS += $(TARGET_FDO_CFLAGS)
./build/core/binary.mk:LOCAL_CFLAGS += -DGOOGLE_PROTOBUF_NO_RTTI
./build/core/binary.mk:$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_CFLAGS := $(LOCAL_CFLAGS)
./build/libs/host/Android.mk:LOCAL_CFLAGS += -DWIN32_EXE
./build/libs/host/Android.mk:LOCAL_CFLAGS += -DMACOSX_RSRC
./external/zlib/Android.mk:LOCAL_CFLAGS += -O3 -DUSE_MMAP $(zlib_arm_flags)
./external/zlib/Android.mk:LOCAL_CFLAGS += -O3 -DUSE_MMAP $(zlib_arm_flags)
./external/zlib/Android.mk:LOCAL_CFLAGS += -O3 -DUSE_MMAP
./system/core/libsysutils/Android.mk:LOCAL_CFLAGS :=
./system/core/charger/Android.mk:LOCAL_CFLAGS += -DBATTERY_DEVICE_NAME=\"$(BOARD_BATTERY_DEVICE_NAME)\"
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += $(hostSmpFlag)
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += -DHAVE_MEMSET16 -DHAVE_MEMSET32
./system/core/libcutils/Android.mk: LOCAL_CFLAGS += -DRECOVERY_PRE_COMMAND='$(TARGET_RECOVERY_PRE_COMMAND)'
./system/core/libcutils/Android.mk: LOCAL_CFLAGS += -DRECOVERY_PRE_COMMAND_CLEAR_REASON
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += $(targetSmpFlag)
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += $(targetSmpFlag)
./system/core/libcutils/Android.mk:LOCAL_CFLAGS += -DTEST_STR_PARMS
./system/core/libusbhost/Android.mk:LOCAL_CFLAGS := -g -DUSE_LIBLOG
./system/core/sh/Android.mk:LOCAL_CFLAGS += -DSHELL -DWITH_LINENOISE
./system/core/sh/Android.mk:make_ash_files: PRIVATE_CFLAGS := $(LOCAL_CFLAGS)
./system/core/libdiskconfig/Android.mk:LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS := -Wall
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP_D32
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP
./system/core/debuggerd/Android.mk:LOCAL_CFLAGS += -DWITH_VFP_D32
./system/core/adb/Android.mk:LOCAL_CFLAGS += -g -DADB_HOST=1 -Wall -Wno-unused-parameter
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
./system/core/adb/Android.mk:LOCAL_CFLAGS := -g -DADB_HOST=0 -Wall -Wno-unused-parameter
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
./system/core/adb/Android.mk:LOCAL_CFLAGS += -DANDROID_GADGET=1
./system/core/adb/Android.mk: LOCAL_CFLAGS += -DBOARD_ALWAYS_INSECURE
./system/core/adb/Android.mk:LOCAL_CFLAGS := \
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/adb/Android.mk:LOCAL_CFLAGS += -O2
./system/core/nexus/Android.mk:LOCAL_CFLAGS :=
./system/core/nexus/Android.mk:LOCAL_CFLAGS :=
./system/core/libpixelflinger/Android.mk:LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
./system/core/libpixelflinger/Android.mk:LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
./system/core/libpixelflinger/Android.mk:LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
./system/core/liblog/Android.mk:LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1
./system/core/init/Android.mk:LOCAL_CFLAGS += -DBOOTCHART=1
./system/core/init/Android.mk:LOCAL_CFLAGS += -DNO_INITLOGO
./system/core/init/Android.mk: $(eval LOCAL_CFLAGS += -D$(system_core_init_define)=\"$($(system_core_init_define))\") \
[email protected] ~/adb $
This is all very confusing.
I pushed my source to dev host for anyone interested. http://d-h.st/wmN
I will make sure to hit that thanks button once I get to a desktop. This RPI takes too long to scroll and I'm using the web from it.
Click to expand...
Click to collapse
Try build/core/combo/TARGET_linux-arm.mk
bhundven said:
Try build/core/combo/TARGET_linux-arm.mk
Click to expand...
Click to collapse
I added
Code:
LOCAL_CFLAGS += --with-float=soft
LOCAL_LDFLAGS += -lgcc
to both the TARGET you suggested and HOST_linux_x86. I got the same error.
I'm compiling this on the Raspberry Pi itself because i need the statically linked host binary. I'm using the x86 host because there is no arm host available. this should be irrelevant because i'm using the native build tools. Anyway.. I convinced it to use x86 and now the linking seems to be the final challenge.
I did the changes above, then a full make clean then rebuilt the source. the following pastebin shows the entire build log.
http://pastebin.com/XtH1MWVE
Rebellos did some work and posted his source here. I modified it to link to my own source and compile directly on the device without a cross-compiler. He got farther than I did. His actually searches for a device, but there is no real server output and its not sending commands to the device.
http://dl.dropbox.com/u/32145655/adb_armv6_src.zip

[Q] Compilation Error in Android

Hi i had try to compile the following Android.mk file through ndk-build i got the following errors how can i resolve the problem please help me.
# ==========================================================
# NOTE:
# when executing binary, set LD_LIBRARY_PATH in device
# ==========================================================
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
BASEDIR := ../../..
DISTDIR := ../../../..
LOCAL_MODULE := EvaluateFingerQuality
LOCAL_ARM_MODE := arm
# Includes
LOCAL_C_INCLUDES += \
$(BASEDIR)/Common/C \
$(DISTDIR)/Include
# Source files
LOCAL_SRC_FILES := \
$(BASEDIR)/Common/C/Utils.c \
EvaluateFingerQuality.c
LOCAL_LDLIBS += \
-Wl,-z,muldefs -Wl,-rpath=$(DISTDIR)/Lib/Android_$(TARGET_ARCH_ABI) \
-L $(DISTDIR)/Lib/Android_$(TARGET_ARCH_ABI) \
-lNLicensing -lNBiometricTools -lNBiometrics -lNMedia -lNCore -lc
include $(BUILD_EXECUTABLE)

[Q] pthread error in android

Hi i had try to compile the following Android.mk file through ndk-build, i got the following errors how can i resolve the problem please help me.
$ ndk-build
Compile arm : EvaluateFingerQuality <= Utils.c
Compile arm : EvaluateFingerQuality <= EvaluateFingerQuality.c
Executable : EvaluateFingerQuality
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_trywrlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_rdlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_tryrdlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_wrlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `dladdr'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_destroy'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_init'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_unlock'
collect2: ld returned 1 exit status
/cygdrive/d/android-ndk-r8-windows/android-ndk-r8/build/core/build-binary.mk:381: recipe for target `/cygdrive/d/MegaMatcher_Embedded_1_2_SDK_Trial_for_Android/Tutorials/BiometricTools/C/obj/local/armeabi/EvaluateFingerQuality' failed
make: *** [/cygdrive/d/MegaMatcher_Embedded_1_2_SDK_Trial_for_Android/Tutorials/BiometricTools/C/obj/local/armeabi/EvaluateFingerQuality] Error 1
# ==========================================================
# NOTE:
# when executing binary, set LD_LIBRARY_PATH in device
# ==========================================================
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
BASEDIR := ../../..
DISTDIR := ../../../..
LOCAL_MODULE := EvaluateFingerQuality
LOCAL_ARM_MODE := arm
# Includes
LOCAL_C_INCLUDES += \
$(BASEDIR)/Common/C \
$(DISTDIR)/Include
# Source files
LOCAL_SRC_FILES := \
$(BASEDIR)/Common/C/Utils.c \
EvaluateFingerQuality.c
LOCAL_LDLIBS += \
-Wl,-z,muldefs -Wl,-rpath=$(DISTDIR)/Lib/Android_$(TARGET_ARCH_ABI) \
-L $(DISTDIR)/Lib/Android_$(TARGET_ARCH_ABI) \
-lNLicensing -lNBiometricTools -lNBiometrics -lNMedia -lNCore -lc
include $(BUILD_EXECUTABLE)

[Q] pthread error in android

Hi i had try to compile the following Android.mk file through ndk-build, i got the following errors how can i resolve the problem please help me.
$ ndk-build
Compile arm : EvaluateFingerQuality <= Utils.c
Compile arm : EvaluateFingerQuality <= EvaluateFingerQuality.c
Executable : EvaluateFingerQuality
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_trywrlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_rdlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_tryrdlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_wrlock'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `dladdr'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_destroy'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_init'
../../../../Lib/Android_armeabi/libNCore.so: undefined reference to `pthread_rwlock_unlock'
collect2: ld returned 1 exit status
/cygdrive/d/android-ndk-r8-windows/android-ndk-r8/build/core/build-binary.mk:381: recipe for target `/cygdrive/d/MegaMatcher_Embedded_1_2_SDK_Trial_for_Android/Tutorials/BiometricTools/C/obj/local/armeabi/EvaluateFingerQuality' failed
make: *** [/cygdrive/d/MegaMatcher_Embedded_1_2_SDK_Trial_for_Android/Tutorials/BiometricTools/C/obj/local/armeabi/EvaluateFingerQuality] Error 1
# ================================================== ========
# NOTE:
# when executing binary, set LD_LIBRARY_PATH in device
# ================================================== ========
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
BASEDIR := ../../..
DISTDIR := ../../../..
LOCAL_MODULE := EvaluateFingerQuality
LOCAL_ARM_MODE := arm
# Includes
LOCAL_C_INCLUDES += \
$(BASEDIR)/Common/C \
$(DISTDIR)/Include
# Source files
LOCAL_SRC_FILES := \
$(BASEDIR)/Common/C/Utils.c \
EvaluateFingerQuality.c
LOCAL_LDLIBS += \
-Wl,-z,muldefs -Wl,-rpath=$(DISTDIR)/Lib/Android_$(TARGET_ARCH_ABI) \
-L $(DISTDIR)/Lib/Android_$(TARGET_ARCH_ABI) \
-lNLicensing -lNBiometricTools -lNBiometrics -lNMedia -lNCore -lc
include $(BUILD_EXECUTABLE)

[Q] Errors while compiling CM 10.2

Hi to all! I`m compling rom for an unsupported device. And there are some errros.
Log
Code:
[email protected]:~/cm10.1$ brunch finder
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
CM_VERSION=
TARGET_PRODUCT=cm_finder
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_OS_EXTRA=Linux-3.5.0-23-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39E
OUT_DIR=/home/piteryo7/cm10.1/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
CM_VERSION=
TARGET_PRODUCT=cm_finder
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_OS_EXTRA=Linux-3.5.0-23-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39E
OUT_DIR=/home/piteryo7/cm10.1/out
============================================
external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration
No private recovery resources for TARGET_DEVICE finder
build/core/tasks/kernel.mk:191: предупреждение: переопределение команд для цели `/home/piteryo7/cm10.1/out/target/product/finder/kernel'
device/oppo/finder/AndroidBoard.mk:28: предупреждение: старые команды для цели `/home/piteryo7/cm10.1/out/target/product/finder/kernel' игнорируются
Export includes file: system/core/libmincrypt/Android.mk -- /home/piteryo7/cm10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Import includes file: /home/piteryo7/cm10.1/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/libexpat/expat.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libexpat/expat.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libexpat/expat_external.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/libpng/png.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/libpng/pngconf.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/libpng/pngusr.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libpng/png.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libpng/pngconf.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libpng/pngusr.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/selinux/selinux.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/selinux/label.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/selinux/context.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/selinux/avc.h
Header: /home/piteryo7/cm10.1/out/host/linux-x86/obj/include/selinux/android.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/selinux/selinux.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/selinux/label.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/selinux/context.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/selinux/avc.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/selinux/android.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libsonivox/eas.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libsonivox/eas_types.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libsonivox/eas_reverb.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libsonivox/jet.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/libwpa_client/wpa_ctrl.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Component.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Core.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Image.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Index.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Other.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Types.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_Video.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-core/omxcore/QCMetaData.h
Header: /home/piteryo7/cm10.1/out/target/product/finder/obj/include/mm-video/DivxDrmDecrypt/DivXDrmDecrypt.h
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
system/core/mkbootimg/mkbootimg.c: In function 'write_padding':
system/core/mkbootimg/mkbootimg.c:89:34: warning: comparison between signed and unsigned integer exp​ressions [-Wsign-compare]
system/core/mkbootimg/mkbootimg.c: In function 'main':
system/core/mkbootimg/mkbootimg.c:191:5: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
/home/piteryo7/cm10.1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/string.h:84:14: note: expected 'char * __restrict__' but argument is of type 'unsigned char *'
system/core/mkbootimg/mkbootimg.c:236:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
system/core/mkbootimg/mkbootimg.c:249:48: warning: comparison between signed and unsigned integer exp​ressions [-Wsign-compare]
system/core/mkbootimg/mkbootimg.c:252:50: warning: comparison between signed and unsigned integer exp​ressions [-Wsign-compare]
system/core/mkbootimg/mkbootimg.c:256:52: warning: comparison between signed and unsigned integer exp​ressions [-Wsign-compare]
Import includes file: /home/piteryo7/cm10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa_e_3.c
host C: libmincrypt <= system/core/libmincrypt/rsa_e_f4.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
system/core/libmincrypt/sha.c: In function 'SHA_update':
system/core/libmincrypt/sha.c:153:16: warning: comparison between signed and unsigned integer exp​ressions [-Wsign-compare]
host StaticLib: libmincrypt (/home/piteryo7/cm10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
Export includes file: system/core/mkbootimg/Android.mk -- /home/piteryo7/cm10.1/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/export_includes
host Executable: mkbootimg (/home/piteryo7/cm10.1/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg)
Export includes file: build/libs/host/Android.mk -- /home/piteryo7/cm10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /home/piteryo7/cm10.1/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: acp <= build/tools/acp/acp.c
Import includes file: /home/piteryo7/cm10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
host C++: libhost <= build/libs/host/pseudolocalize.cpp
host C: libhost <= build/libs/host/CopyFile.c
host StaticLib: libhost (/home/piteryo7/cm10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
Export includes file: build/tools/acp/Android.mk -- /home/piteryo7/cm10.1/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes
host Executable: acp (/home/piteryo7/cm10.1/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
Install: /home/piteryo7/cm10.1/out/host/linux-x86/bin/acp
Notice file: system/core/libmincrypt/NOTICE -- /home/piteryo7/cm10.1/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Install: /home/piteryo7/cm10.1/out/host/linux-x86/bin/mkbootimg
mkdir -p /home/piteryo7/cm10.1/out/target/product/finder/obj/KERNEL_OBJ
mkdir -p /home/piteryo7/cm10.1/out/target/product/finder/system/lib/modules
make -C kernel/oppo/finder O=/home/piteryo7/cm10.1/out/target/product/finder/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/piteryo7/cm10.1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= msm8660-perf_defconfig
make[1]: Entering directory `/home/piteryo7/cm10.1/kernel/oppo/finder'
HOSTCC scripts/basic/fixdep
/home/piteryo7/cm10.1/kernel/oppo/finder/scripts/mkmakefile: line 5: $'\r': command not found
/home/piteryo7/cm10.1/kernel/oppo/finder/scripts/mkmakefile: line 11: $'\r': command not found
/home/piteryo7/cm10.1/kernel/oppo/finder/scripts/mkmakefile: line 12: $'\r': command not found
/home/piteryo7/cm10.1/kernel/oppo/finder/scripts/mkmakefile: line 59: warning: here-document at line 24 delimited by end-of-file (wanted `EOF')
/home/piteryo7/cm10.1/kernel/oppo/finder/scripts/mkmakefile: line 60: syntax error: unexpected end of file
make[2]: *** [outputmakefile] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/piteryo7/cm10.1/kernel/oppo/finder'
make: *** [/home/piteryo7/cm10.1/out/target/product/finder/obj/KERNEL_OBJ/.config] Error 2
[email protected]:~/cm10.1$
Mkmakefile
Code:
#!/bin/sh
# Generates a small Makefile used in the root of the output
# directory, to allow make to be started from there.
# The Makefile also allow for more convinient build of external modules
# Usage
# $1 - Kernel src directory
# $2 - Output directory
# $3 - version
# $4 - patchlevel
test ! -r $2/Makefile -o -O $2/Makefile || exit 0
# Only overwrite automatically generated Makefiles
# (so we do not overwrite kernel Makefile)
if test -e $2/Makefile && ! grep -q Automatically $2/Makefile
then
exit 0
fi
if [ "${quiet}" != "silent_" ]; then
echo " GEN $2/Makefile"
fi
cat << EOF > $2/Makefile
# Automatically generated by $0: don't edit
VERSION = $3
PATCHLEVEL = $4
lastword = \$(word \$(words \$(1)),\$(1))
makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
ifeq ("\$(origin V)", "command line")
VERBOSE := \$(V)
endif
ifneq (\$(VERBOSE),1)
Q := @
endif
MAKEARGS := -C $1
MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir))
MAKEFLAGS += --no-print-directory
.PHONY: all \$(MAKECMDGOALS)
all := \$(filter-out all Makefile,\$(MAKECMDGOALS))
all:
\$(Q)\$(MAKE) \$(MAKEARGS) \$(all)
Makefile:;
\$(all): all
@:
%/: all
@:
EOF
Please help, what"s wrong?

Categories

Resources