AOSP 2.3.7 compilation error - Optimus One, P500, V Q&A, Help & Troubleshooting

Please help. I am getting the error when i compile 2.3.7 from source for my p500
Code:
In file included from device/lge/p500/libaudio/AudioHardware.cpp:36:
frameworks/base/include/media/AudioRecord.h:145: error: expected unqualified-id before numeric constant
frameworks/base/include/media/AudioRecord.h:145: error: expected '}' before numeric constant
frameworks/base/include/media/AudioRecord.h:145: error: expected unqualified-id before numeric constant
frameworks/base/include/media/AudioRecord.h:150: error: expected unqualified-id before 'int'
frameworks/base/include/media/AudioRecord.h:150: error: expected ')' before 'int'
frameworks/base/include/media/AudioRecord.h:165: error: expected constructor, destructor, or type conversion before ';' token
frameworks/base/include/media/AudioRecord.h:182: error: 'callback_t' has not been declared
frameworks/base/include/media/AudioRecord.h:194: error: non-member function 'android::status_t android::initCheck()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:200: error: non-member function 'uint32_t android::latency()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:204: error: non-member function 'int android::format()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:205: error: non-member function 'int android::channelCount()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:206: error: non-member function 'int android::channels()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:207: error: non-member function 'uint32_t android::frameCount()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:208: error: non-member function 'int android::frameSize()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:209: error: non-member function 'int android::inputSource()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:222: error: non-member function 'bool android::stopped()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:313: error: 'Buffer' was not declared in this scope
frameworks/base/include/media/AudioRecord.h:313: error: 'audioBuffer' was not declared in this scope
frameworks/base/include/media/AudioRecord.h:313: error: expected primary-expression before 'waitCount'
frameworks/base/include/media/AudioRecord.h:313: error: initializer expression list treated as compound expression
frameworks/base/include/media/AudioRecord.h:314: error: variable or field 'releaseBuffer' declared void
frameworks/base/include/media/AudioRecord.h:314: error: 'Buffer' was not declared in this scope
frameworks/base/include/media/AudioRecord.h:314: error: 'audioBuffer' was not declared in this scope
In file included from device/lge/p500/libaudio/AudioHardware.cpp:36:
frameworks/base/include/media/AudioRecord.h:329: error: expected unqualified-id before 'private'
frameworks/base/include/media/AudioRecord.h:332: error: 'android::AudioRecord& android::operator=(const android::AudioRecord&)' must be a nonstatic member function
frameworks/base/include/media/AudioRecord.h:373: error: 'callback_t' does not name a type
frameworks/base/include/media/AudioRecord.h:387: error: expected declaration before '}' token
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/aosp$
Please help

Related

[SOLVED] Help with building jellybean aokp from source.

I'm getting stuck at this.
Code:
make: *** [out/target/product/skyrocket/obj/SHARED_LIBRARIES/gps.msm8660_intermediates/LINKED/gps.msm8660.so] Error 1
Any help would greatly appreciated.
Here's more..
If anybody else has this problem:
sk8erwitskil said:
if you edit device/samsung/msm8660-common/BoardConfigCommon.mk and comment out these lines:
Code:
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := msm8660
and edit device/samsung/msm8660-common/msm8660.mk and comment out these lines:
Code:
PRODUCT_PACKAGES += \
gps.msm8660
Click to expand...
Click to collapse
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.1
TARGET_PRODUCT=aokp_skyrocket
TARGET_BUILD_VARIANT=eng
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.2.0-26-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JRO03C
OUT_DIR=out
============================================
find: `src': No such file or directory
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: overriding commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
build/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/skyrocket/system/media/bootanimation.zip'
No private recovery resources for TARGET_DEVICE skyrocket
target SharedLib: gps.msm8660 (out/target/product/skyrocket/obj/SHARED_LIBRARIES/gps.msm8660_intermediates/LINKED/gps.msm8660.so)
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/framebuffer.cpp
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/skyrocket/obj/lib/librpc.so: file is empty
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_rpc_glue.o): in function loc_apicbprog_freeresult:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c:143: error: undefined reference to 'xdr_free'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_rpc_glue.o): in function loc_api_glue_init:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c:251: error: undefined reference to 'clnt_create'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_apicb_appinit.o): in function loc_apicb_app_init:hardware/qcom/gps/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c:36: error: undefined reference to 'svcrtr_create'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_apicb_appinit.o): in function loc_apicb_app_init:hardware/qcom/gps/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c:40: error: undefined reference to 'xprt_register'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_apicb_appinit.o): in function loc_apicb_app_init:hardware/qcom/gps/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c:41: error: undefined reference to 'svc_register'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_apicb_appinit.o): in function loc_apicb_app_deinit:hardware/qcom/gps/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c:57: error: undefined reference to 'xprt_unregister'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_apicb_appinit.o): in function loc_apicb_app_deinit:hardware/qcom/gps/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c:58: error: undefined reference to 'svc_destroy'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_api_null_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:15: error: undefined reference to 'clnt_call'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_api_null_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:19: error: undefined reference to 'xdr_void'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_api_rpc_glue_code_info_remote_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:24: error: undefined reference to 'clnt_call'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_api_rpc_glue_code_info_remote_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:28: error: undefined reference to 'xdr_void'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_open_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:33: error: undefined reference to 'clnt_call'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_close_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:42: error: undefined reference to 'clnt_call'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_clnt.o): in function rpc_loc_api_api_versions_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_clnt.c:82: error: undefined reference to 'xdr_void'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:34: error: undefined reference to 'svc_sendreply'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:48: error: undefined reference to 'svc_getargs'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:44: error: undefined reference to 'svcerr_noproc'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:49: error: undefined reference to 'svcerr_decode'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:53: error: undefined reference to 'svc_sendreply'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:54: error: undefined reference to 'svcerr_systemerr'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:56: error: undefined reference to 'svc_freeargs'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_svc.o): in function loc_apicbprog_0x00050001:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_svc.c:64: error: undefined reference to 'xdr_void'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_xdr.o): in function xdr_rpc_loc_api_api_versions_return_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_xdr.c:13: error: undefined reference to 'xdr_array'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_xdr.o): in function xdr_rpc_loc_ioctl_args:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_xdr.c:80: error: undefined reference to 'xdr_pointer'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_xdr.o): in function xdr_rpc_loc_api_api_versions_rets:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_xdr.c:168: error: undefined reference to 'xdr_pointer'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_cb_xdr.o): in function xdr_rpc_loc_event_cb_f_type_args:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_cb_xdr.c:19: error: undefined reference to 'xdr_pointer'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:843: error: undefined reference to 'xdr_string'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_struct_loc_time_download_source_s_type_servers_ptr:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:810: error: undefined reference to 'xdr_string'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_uint32:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:23: error: undefined reference to 'xdr_u_long'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_boolean:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:13: error: undefined reference to 'xdr_bool'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_uint16:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:33: error: undefined reference to 'xdr_u_short'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_uint8:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:43: error: undefined reference to 'xdr_u_char'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_int32:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:53: error: undefined reference to 'xdr_long'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_wiper_ap_info_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1316: error: undefined reference to 'xdr_opaque'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_uint64:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:73: error: undefined reference to 'xdr_u_quad_t'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_session_status_e_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:123: error: undefined reference to 'xdr_enum'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_calendar_time_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:135: error: undefined reference to 'xdr_u_char'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_calendar_time_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:137: error: undefined reference to 'xdr_u_char'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_calendar_time_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:139: error: undefined reference to 'xdr_u_char'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_gnss_info_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:293: error: undefined reference to 'xdr_array'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_nmea_report_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:307: error: undefined reference to 'xdr_opaque'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_server_addr_url_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:406: error: undefined reference to 'xdr_opaque'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_ni_vx_requester_id_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:503: error: undefined reference to 'xdr_opaque'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_struct_loc_time_download_source_s_type_servers:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:820: error: undefined reference to 'xdr_vector'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:853: error: undefined reference to 'xdr_vector'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_reserved_payload_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1022: error: undefined reference to 'xdr_bytes'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_predicted_orbits_data_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1154: error: undefined reference to 'xdr_bytes'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_wiper_ap_set_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1335: error: undefined reference to 'xdr_vector'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_efs_data_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1389: error: undefined reference to 'xdr_bytes'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_assist_data_delete_s_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1440: error: undefined reference to 'xdr_vector'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_common_xdr.o): in function xdr_rpc_loc_event_payload_u_type:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_common_xdr.c:1604: error: undefined reference to 'xdr_u_quad_t'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_fixup.o):hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_fixup.c:40: error: undefined reference to 'xdr_long'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_fixup.o): in function xdr_double:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_fixup.c:48: error: undefined reference to 'xdr_long'
/home/gmillz/aokp-jb/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/libloc_api-rpc.a(loc_api_fixup.o): in function xdr_double:hardware/qcom/gps/loc_api/libloc_api-rpc/gen-50000/loc_api_fixup.c:49: error: undefined reference to 'xdr_long'
collect2: ld returned 1 exit status
make: *** [out/target/product/skyrocket/obj/SHARED_LIBRARIES/gps.msm8660_intermediates/LINKED/gps.msm8660.so] Error 1
make: *** Waiting for unfinished jobs....
First what version of Linux and is it 32 or 64 bit and did you install all the required packages
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Illnevertell said:
First what version of Linux and is it 32 or 64 bit and did you install all the required packages
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
Ubuntu 12.04 64
yes I have all the required packages. I can build aokp jb for tf300t
Possible bad sync
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I'll resync and see if that fixes it.
I resync'd and same error
try to run "make clobber" and rebuild

[Q] AOSP Compiling error! HELP!

Hi guys. Currently compiling AOSP ICS, but having some problems.
First of all:
Code:
target thumb C++: audio.primary.gio <= device/samsung/msm7x27-common/libaudio/AudioHardware.cpp
In file included from device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:35:
device/samsung/msm7x27-common/libaudio/AudioHardware.h:30:39: error: linux/msm_audio_voicememo.h: No such file or directory
In file included from device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:35:
device/samsung/msm7x27-common/libaudio/AudioHardware.h:180: error: 'audio_output_flags_t' has not been declared
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:122: error: 'SND_SET_MAIN_MIC' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:187: error: 'SND_AVC_CTL' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:188: error: 'SND_AGC_CTL' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: At global scope:
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:220: error: 'audio_output_flags_t' has not been declared
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:894: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:899: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:904: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:929: error: 'AUDIO_SET_MBADRC' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1110: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1110: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1316: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1319: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1681: error: aggregate 'android_audio_legacy::msm_audio_voicememo_config gcfg' has incomplete type and cannot be defined
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1769: error: 'RPC_VOC_REC_BOTH' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1772: error: 'RPC_VOC_REC_FORWARD' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1775: error: 'RPC_VOC_REC_REVERSE' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1780: error: 'RPC_VOC_REC_REVERSE' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1791: error: 'RPC_VOC_CAP_AMR' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1792: error: 'RPC_VOC_AMR_RATE_1220' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1794: error: 'RPC_VOC_PB_AMR' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1809: error: 'AUDIO_SET_VOICEMEMO_CONFIG' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1815: error: 'AUDIO_GET_VOICEMEMO_CONFIG' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:2037: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:2136: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardware'
device/samsung/msm7x27-common/libaudio/AudioHardware.h:157: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardware':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:232: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/gio/obj/SHARED_LIBRARIES/audio.primary.gio_intermediates/AudioHardware.o] Errore 1

[DEV] Kernel 3.4 - WIP

I am working on kernel 3.4.39 for bravo/bravoc.
Currently lots needs to be done, but its almost compiling.
TODO: board files, mdp/kgsl, yaffs2, pm, memory, mmc, drivers (list not made yet), possible more.
Hopes: Vsync, ION, make it boot
If anyone would like to help please PM or pull request and join irc (not set up yet).
https://github.com/croniccorey/WIP-8x50
@Shaky156 Thanks for setting up the thread.
Last kmesg / Current build errors
Code:
Currently not compiling:
yaffs2_vfs
pm
memory
Code:
Errors compiling memory.c:
CC arch/arm/mach-msm/memory.o
In file included from arch/arm/mach-msm/include/mach/msm_memtypes.h:36:0,
from arch/arm/mach-msm/memory.c:29:
arch/arm/mach-msm/include/mach/memory.h:21:0: warning: "PHYS_OFFSET" redefined [enabled by default]
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
^
In file included from /home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/page.h:170:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/mm.h:8,
from arch/arm/mach-msm/memory.c:17:
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/memory.h:161:0: note: this is the location of the previous definition
#define PHYS_OFFSET __pv_phys_offset
^
In file included from arch/arm/mach-msm/memory.c:39:0:
arch/arm/include/generated/../../mm/mm.h: In function 'set_top_pte':
arch/arm/include/generated/../../mm/mm.h:23:2: error: implicit declaration of function 'local_flush_tlb_kernel_page' [-Werror=implicit-function-declaration]
local_flush_tlb_kernel_page(va);
^
In file included from include/linux/mm.h:44:0,
from arch/arm/mach-msm/memory.c:17:
arch/arm/include/generated/../../mm/mm.h: In function 'pmd_off_k':
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: error: 'init_mm' undeclared (first use in this function)
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: note: each undeclared identifier is reported only once for each function it appears in
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
arch/arm/mach-msm/memory.c: In function 'arch_io_remap_pfn_range':
arch/arm/mach-msm/memory.c:46:3: error: implicit declaration of function 'pgprot_device' [-Werror=implicit-function-declaration]
prot = pgprot_device(prot);
^
arch/arm/mach-msm/memory.c:47:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'pgprot_t' [-Wformat=]
pr_debug("remapping device %lx\n", prot);
^
arch/arm/mach-msm/memory.c: In function 'calculate_reserve_limits':
arch/arm/mach-msm/memory.c:240:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat=]
pr_warning("unknown memory type for bank at %lx\n",
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/memory.o] Error 1
Code:
Errors compiling pm.c:
CC arch/arm/mach-msm/pm.o
arch/arm/mach-msm/pm.c: In function 'msm_sleep':
arch/arm/mach-msm/pm.c:357:2: error: implicit declaration of function 'clk_enter_sleep' [-Werror=implicit-function-declaration]
clk_enter_sleep(from_idle);
^
arch/arm/mach-msm/pm.c:437:7: error: implicit declaration of function 'vfp_flush_context' [-Werror=implicit-function-declaration]
vfp_flush_context();
^
arch/arm/mach-msm/pm.c:450:9: error: implicit declaration of function 'vfp_reinit' [-Werror=implicit-function-declaration]
vfp_reinit();
^
arch/arm/mach-msm/pm.c:524:2: error: implicit declaration of function 'clk_exit_sleep' [-Werror=implicit-function-declaration]
clk_exit_sleep();
^
arch/arm/mach-msm/pm.c: In function 'arch_idle':
arch/arm/mach-msm/pm.c:554:3: error: implicit declaration of function 'has_wake_lock' [-Werror=implicit-function-declaration]
!has_wake_lock(WAKE_LOCK_IDLE) &&
^
arch/arm/mach-msm/pm.c: In function 'msm_pm_init':
arch/arm/mach-msm/pm.c:864:17: warning: assignment from incompatible pointer type [enabled by default]
arm_pm_restart = msm_pm_restart;
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/pm.o] Error 1
Code:
Current errors at end of compile:
LD vmlinux
arch/arm/mach-msm/built-in.o:smd.c:function handle_modem_crash: error: undefined reference to 'msm_pm_flush_console'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_get_edge: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_enable_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_disable_fast_timer'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_close.isra.5: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function q6venc_release: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_q6_callback: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_add_pmem_to_list: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_create_files.constprop.9: error: undefined reference to 'sysdev_create_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_class_register'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_register'
arch/arm/mach-msm/built-in.o:nand_partitions.c:function parse_tag_msm_partition: error: undefined reference to 'msm_nand_data'
arch/arm/mach-msm/built-in.o:dsp_debug.c:function bravo_init_panel: error: undefined reference to 'msm_device_mdp'
arch/arm/mach-msm/built-in.o:board-bravo.c:function bravo_init: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function msm_uart_dm1_pdata: error: undefined reference to 'bcm_bt_lpm_exit_lpm_locked'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_nand'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_i2c'
drivers/built-in.o:ds2784_battery.c:function ds2784_program_alarm: error: undefined reference to 'alarm_start_range'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_probe: error: undefined reference to 'alarm_get_elapsed_realtime'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_work: error: undefined reference to 'alarm_get_elapsed_realtime'
net/built-in.o:activity_stats.c:function wiphy_rfkill_start_polling: error: undefined reference to 'rfkill_resume_polling'
make: *** [vmlinux] Error 1
New OP
Maybe this sounds stupid, but it gives "msm" errors, and Desire is not a msm device..
Sent from my HTC Desire HD using xda app-developers app
TheRinseM said:
Maybe this sounfs stupid, but it gives "msm" errors, and Desire is not a msm device..
Sent from my HTC Desire HD using xda app-developers app
Click to expand...
Click to collapse
They are probably porting the kernel from a msm device, like the Nexus 4.
abaaaabbbb63 said:
They are probably porting the rom from a msm device, like the Nexus 4.
Click to expand...
Click to collapse
Mate Andoo, This is not a ROM, it's kernel 3.4
Hope you guys bring ION with it.
TheRinseM said:
Mate Andoo, This is not a ROM, it's kernel 3.4
Hope you guys bring ION with it.
Click to expand...
Click to collapse
Oops.. I meant kernel Wrote rom from reflex
Yeah they all use msm. MSM is right and should be there.

Problems building cm 11

Hi,
I don't know if this question belongs here, so mods feel free to move it to a more appropriate place.
I tried to build cm11 from source to help testing, but it ran into an error with libril which I don't know how to fix.
I followed the instructions given here: https://github.com/M2Dev/local_manifest
but after brunch runs a while it spits out the following error:
Code:
device/sony/qcom-common/libril/ril.cpp:149:33: warning: 'rild' initialized and declared 'extern' [enabled by default]
In file included from device/sony/qcom-common/libril/ril.cpp:274:0:
device/sony/qcom-common/libril/ril_commands.h:138:6: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:139:6: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:140:6: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:141:6: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:142:6: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp: In function 'void android::dispatchSIM_IO(android::Parcel&, android::RequestInfo*)':
device/sony/qcom-common/libril/ril.cpp:782:14: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp:783:35: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:784:40: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:786:18: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp: In function 'int android::responseGetDataCallProfile(android::Parcel&, void*, size_t)':
device/sony/qcom-common/libril/ril.cpp:3014:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/sony/qcom-common/libril/ril.cpp: In function 'const char* android::requestToString(int)':
device/sony/qcom-common/libril/ril.cpp:4064:14: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4065:14: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4066:14: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4067:14: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4068:14: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
build/core/binary.mk:432: recipe for target '/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o' failed
make: *** [/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1
So what did I do wrong?
sudden36 said:
Hi,
I don't know if this question belongs here, so mods feel free to move it to a more appropriate place.
I tried to build cm11 from source to help testing, but it ran into an error with libril which I don't know how to fix.
I followed the instructions given here: https://github.com/M2Dev/local_manifest
but after brunch runs a while it spits out the following error:
Code:
device/sony/qcom-common/libril/ril.cpp:149:33: warning: 'rild' initialized and declared 'extern' [enabled by default]
In file included from device/sony/qcom-common/libril/ril.cpp:274:0:
device/sony/qcom-common/libril/ril_commands.h:138:6: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:139:6: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:140:6: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:141:6: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:142:6: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp: In function 'void android::dispatchSIM_IO(android::Parcel&, android::RequestInfo*)':
device/sony/qcom-common/libril/ril.cpp:782:14: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp:783:35: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:784:40: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:786:18: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp: In function 'int android::responseGetDataCallProfile(android::Parcel&, void*, size_t)':
device/sony/qcom-common/libril/ril.cpp:3014:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/sony/qcom-common/libril/ril.cpp: In function 'const char* android::requestToString(int)':
device/sony/qcom-common/libril/ril.cpp:4064:14: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4065:14: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4066:14: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4067:14: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4068:14: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
build/core/binary.mk:432: recipe for target '/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o' failed
make: *** [/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1
So what did I do wrong?
Click to expand...
Click to collapse
@sudden36 did u find the solution?
Yes the proper commands to build are in this post: http://forum.xda-developers.com/showthread.php?p=56341637

[Q] exynos4 recipe for target failed, help?

Hello everybody , i was building hazy rom for i9305 while i got this error (tried twice )
Code:
p
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int gralloc_alloc_buffer(alloc_device_t*, size_t, int, const native_handle_t**, int, int, int, int, int, int)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:21: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:53: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:27: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:59: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int alloc_device_alloc(alloc_device_t*, int, int, int, int, const native_handle_t**, int*)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:25: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:57: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:420:14: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:421:14: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: In function 'int gralloc_lock(const gralloc_module_t*, buffer_handle_t, int, int, int, int, int, void**)':
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:390:17: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: At global scope:
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:481:1: error: 'gralloc_module_t' has no non-static data member named 'getphys'
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o] Error 1
make: *** Attente des tâches non terminées....
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o] Error 1
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o] Error 1
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int get_src_phys_addr(hwc_context_t*, sec_img*, sec_rect*)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:662:50: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:709:34: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int runFimcCore(hwc_context_t*, unsigned int, sec_img*, sec_rect*, uint32_t, unsigned int, sec_img*, sec_rect*, uint32_t, int)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:1109:30: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o] Error 1
make: *** wait: Aucun processus enfant. Arrêt.
[email protected]:~/hazy$
I searched everywhere i could but nothing , help here?
aaz03 said:
Hello everybody , i was building hazy rom for i9305 while i got this error (tried twice )
Code:
p
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int gralloc_alloc_buffer(alloc_device_t*, size_t, int, const native_handle_t**, int, int, int, int, int, int)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:21: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:53: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:27: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:59: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int alloc_device_alloc(alloc_device_t*, int, int, int, int, const native_handle_t**, int*)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:25: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:57: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:420:14: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:421:14: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: In function 'int gralloc_lock(const gralloc_module_t*, buffer_handle_t, int, int, int, int, int, void**)':
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:390:17: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: At global scope:
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:481:1: error: 'gralloc_module_t' has no non-static data member named 'getphys'
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o] Error 1
make: *** Attente des tâches non terminées....
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o] Error 1
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o] Error 1
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int get_src_phys_addr(hwc_context_t*, sec_img*, sec_rect*)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:662:50: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:709:34: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int runFimcCore(hwc_context_t*, unsigned int, sec_img*, sec_rect*, uint32_t, unsigned int, sec_img*, sec_rect*, uint32_t, int)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:1109:30: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o] Error 1
make: *** wait: Aucun processus enfant. Arrêt.
[email protected]:~/hazy$
I searched everywhere i could but nothing , help here?
Click to expand...
Click to collapse
Add this to your Gralloc.h
https://gitorious.org/replicant/hardware_libhardware/commit/9e6eced5fabc37b650970ae8b97bef538155719f

Categories

Resources