[Q] Problem about build LEWA code - XPERIA X8 Q&A, Help & Troubleshooting

target Prebuilt: system_etcdir (out/target/product/shakira/system/etc/bash/bash_logout)
bootable/recovery/extendedcommands.c: In function 'choose_file_menu':
bootable/recovery/extendedcommands.c:288: warning: passing argument 1 of 'get_menu_selection' from incompatible pointer type
bootable/recovery/recovery_ui.h:86: note: expected 'char **' but argument is of type 'const char **'
bootable/recovery/extendedcommands.c: In function 'show_choose_zip_menu':
bootable/recovery/extendedcommands.c:327: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_restore_menu':
bootable/recovery/extendedcommands.c:351: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_mount_usb_storage_menu':
bootable/recovery/extendedcommands.c:369: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:376: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:396: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:403: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c: In function 'confirm_selection':
bootable/recovery/extendedcommands.c:413: warning: initialization discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c: In function 'format_device':
bootable/recovery/extendedcommands.c:450: warning: implicit declaration of function 'format_rfs_device'
bootable/recovery/extendedcommands.c:495: warning: implicit declaration of function 'reset_ext4fs_info'
bootable/recovery/extendedcommands.c:496: warning: implicit declaration of function 'make_ext4fs'
target Prebuilt: system_etcdir (out/target/product/shakira/system/etc/bash/bashrc)
bootable/recovery/extendedcommands.c: In function 'format_unknown_device':
bootable/recovery/extendedcommands.c:534: warning: implicit declaration of function 'format_ext3_device'
bootable/recovery/extendedcommands.c:543: warning: implicit declaration of function 'format_ext2_device'
bootable/recovery/extendedcommands.c: In function 'show_partition_menu':
bootable/recovery/extendedcommands.c:636: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:637: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:640: warning: passing argument 1 of 'is_safe_to_format' discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c:585: note: expected 'char *' but argument is of type 'const char *'
bootable/recovery/extendedcommands.c:641: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:646: warning: passing argument 1 of 'is_safe_to_format' discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c:585: note: expected 'char *' but argument is of type 'const char *'
bootable/recovery/extendedcommands.c:648: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:666: warning: implicit declaration of function 'is_path_mounted'
bootable/recovery/extendedcommands.c:682: warning: passing argument 2 of 'get_menu_selection' from incompatible pointer type
bootable/recovery/recovery_ui.h:86: note: expected 'char **' but argument is of type 'char * (*)[255]'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_advanced_restore_menu':
bootable/recovery/extendedcommands.c:745: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_menu':
bootable/recovery/extendedcommands.c:831: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
bootable/recovery/extendedcommands.c:855: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
bootable/recovery/extendedcommands.c: In function 'show_advanced_menu':
bootable/recovery/extendedcommands.c:992: warning: assignment makes integer from pointer without a cast
bootable/recovery/extendedcommands.c:1044: warning: assignment makes integer from pointer without a cast
bootable/recovery/extendedcommands.c: In function 'process_volumes':
bootable/recovery/extendedcommands.c:1155: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
make: *** [out/target/product/shakira/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] 错误 1
make: *** 正在等待未完成的任务....
who can help me how to do ?
Thank you very much !!!
i am sorry for my bad English

Delete the out folder..try to build again
Sent by Vince™

Vınce said:
Delete the out folder..try to build again
Sent by Vince™
Click to expand...
Click to collapse
OK,i will try ~~ thank you ~!!

Related

[DEV HELP] Problems building gps

I have some problems compiling gps with caf source.
At first I have build a rom without gps, but I want it to be functional
So if you can help, please let me know
Code:
target thumb C++: libloc_api-rpc-qc <= hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:38:35: error: commondefs_rpcgen_rpc.h: No such file or directory
In file included from out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:39,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:72: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:74: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:76: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:78: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:94: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:101: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:106: error: 'rpc_loc_position_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:109: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:110: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:129: error: 'rpc_loc_pos_technology_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:151: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:154: error: 'rpc_loc_sv_info_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:156: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:157: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:159: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:160: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:167: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:170: error: 'rpc_loc_gnss_info_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:174: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:175: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:184: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:234: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:235: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:240: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:246: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:247: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:357: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:358: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:362: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:406: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:413: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:421: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:460: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:470: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:516: error: 'rpc_uint32' does not name a type
In file included from out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:39,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:526: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:527: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:533: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:536: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:537: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:557: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:584: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:590: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:597: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:628: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:633: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:731: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:734: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:735: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:736: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:738: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:740: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:766: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:767: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:768: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:769: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:778: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:779: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:784: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:790: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:791: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:795: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:798: error: 'rpc_loc_assist_pos_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:799: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:808: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:829: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:836: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:851: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:857: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:862: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:863: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:864: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:865: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:866: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:872: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:873: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:874: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:879: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:885: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:911: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:916: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:917: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:918: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:919: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:931: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:932: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:933: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:947: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:949: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:952: error: 'rpc_loc_assist_data_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:953: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:971: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:972: error: 'rpc_loc_nmea_sentence_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:973: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:978: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:980: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:981: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:994: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:995: error: 'rpc_loc_nmea_sentence_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:996: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1000: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1002: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1009: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1034: error: 'rpc_loc_client_handle_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1035: error: 'rpc_loc_event_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1036: error: 'rpc_loc_position_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1037: error: 'rpc_loc_pos_technology_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1043: error: 'rpc_loc_sv_info_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1045: error: 'rpc_loc_gnss_info_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1092: error: 'rpc_loc_server_connection_handle' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1117: error: 'rpc_loc_assist_pos_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1136: error: 'rpc_loc_nmea_sentence_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1137: error: 'rpc_loc_assist_data_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:50: error: ISO C++ forbids declaration of 'rpc_uint32' with no type
2nd part:
Code:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:50: error: expected ';' before '*' token
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:53: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:56: error: 'rpc_loc_event_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:57: error: 'rpc_loc_event_cb_f_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:62: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:67: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:72: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:77: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:84: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:89: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:90: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:91: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:92: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:97: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:102: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:107: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:112: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:117: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:123: error: ISO C++ forbids declaration of 'rpc_uint32' with no type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:123: error: expected ';' before '*' token
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:250: error: 'rpc_loc_event_cb_f_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:42,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:49: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:50: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:51: error: 'rpc_loc_event_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:57: error: 'rpc_int32' does not name a type
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:52,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:43: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:52: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:55: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:71: error: variable or field 'loc_api_callback_process_sync_call' declared void
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:71: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:72: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:73: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:79: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:80: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:81: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:81: error: 'ioctl_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:82: error: expected primary-expression before 'timeout_msec'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:83: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:83: error: 'cb_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:84: error: initializer expression list treated as compound expression
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:65: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:66: error: 'rpc_loc_event_mask_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:76: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:85: warning: 'loc_close' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:85: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:90: error: variable or field 'loc_clear' declared void
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:90: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:95: warning: 'loc_start_fix' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:95: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:100: warning: 'loc_stop_fix' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:100: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:105: warning: 'loc_ioctl' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:105: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:106: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:107: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:107: error: 'ioctl_data' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:108: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:112: warning: 'loc_eng_ioctl' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:112: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:113: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:114: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:114: error: 'ioctl_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:115: error: expected primary-expression before 'timeout_msec'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:116: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:116: error: 'cb_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:117: error: initializer expression list treated as compound expression
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:39: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:40: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:42: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:43: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:60: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:61: error: 'rpc_loc_event_mask_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:39:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:42: warning: 'loc_callback_log' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:42: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:43: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:44: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:47: warning: 'loc_get_event_name' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:47: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:65: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:66: error: 'rpc_loc_event_mask_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In function 'int32 loc_event_cb(void*, int, int, const rpc_loc_event_payload_u_type*)':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:71: error: 'loc_callback_log' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: At global scope:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:106: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In constructor 'LocApiRpcAdapter::LocApiRpcAdapter(LocEng&)':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:121: error: class 'LocApiRpcAdapter' does not have any field named 'client_handle'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:122: error: class 'LocApiRpcAdapter' does not have any field named 'eMask'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:122: error: 'convertMask' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In destructor 'virtual LocApiRpcAdapter::~LocApiRpcAdapter()':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:129: error: 'client_handle' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:130: error: 'loc_clear' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:133: error: 'client_handle' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:133: error: 'loc_close' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: At global scope:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:136: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:201: error: 'int32 LocApiRpcAdapter::locEventCB' is not a static member of 'class LocApiRpcAdapter'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:201: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:202: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:203: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:203: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:204: error: expected ',' or ';' before '{' token
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/libloc_api-rpc-qc_intermediates/src/LocApiRpcAdapter.o] Error 1
This is the craziest error i have ever seen...
Good luck buddy...
Sent from my LG-P500 using XDA
Oké, commondefs_rpcgen_rpc.h is missing...
Should be in one of the hardware/msm7k folders, but is not in any folder.
Thanks for pointing it out Samrox144, I looked over this one
_Arjen_ said:
Oké, commondefs_rpcgen_rpc.h is missing...
Should be in one of the hardware/msm7k folders, but is not in any folder.
Thanks for pointing it out Samrox144, I looked over this one
Click to expand...
Click to collapse
hope you fix it soon
Ok, trimmed down the errors (using gps folder from cm9 for now )
Next to solve:
Code:
Header: out/target/product/p500/obj/include/librpc/rpc/clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/pmap_clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: out/target/product/p500/obj/include/librpc/rpc/svc.h
Header: out/target/product/p500/obj/include/librpc/rpc/types.h
Header: out/target/product/p500/obj/include/librpc/rpc/xdr.h
target thumb C++: gps.p500 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:116: warning: missing initializer for member 'GpsInterface::update_criteria'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)(const char*)' to 'int (*)(AGpsType, const char*, AGpsBearerType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp: In function 'void loc_eng_report_agps_status(AGpsType, AGpsStatusValue)':
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv4_addr'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv6_addr'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/gps.p500_intermediates/loc_eng.o] Error 1
_Arjen_ said:
Ok, trimmed down the errors (using gps folder from cm9 for now )
Next to solve:
Code:
Header: out/target/product/p500/obj/include/librpc/rpc/clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/pmap_clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: out/target/product/p500/obj/include/librpc/rpc/svc.h
Header: out/target/product/p500/obj/include/librpc/rpc/types.h
Header: out/target/product/p500/obj/include/librpc/rpc/xdr.h
target thumb C++: gps.p500 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:116: warning: missing initializer for member 'GpsInterface::update_criteria'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)(const char*)' to 'int (*)(AGpsType, const char*, AGpsBearerType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp: In function 'void loc_eng_report_agps_status(AGpsType, AGpsStatusValue)':
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv4_addr'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv6_addr'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/gps.p500_intermediates/loc_eng.o] Error 1
Click to expand...
Click to collapse
I have done the same in my code, using cm9 gps folder...
But i dont get these errors...
Sent from my LG-P500 using XDA
Yeah,remember this ****,happened to me with OMGB camera. You just need to look into the msm7k files. Or just fgrep CM9 sources and CAF sources,see where this crap is defined and replace,or merge. Worked perfectly for me.
P.S: Today I'll have info on my laptop,it will probably sent on saturday or next week. It's been a month now can't wait to teamwork with you!
Changed some things for gps, will try later.
Dropped it now to go back to cm9
Hope you'll have your laptop back soon
_Arjen_ said:
Changed some things for gps, will try later.
Dropped it now to go back to cm9
Hope you'll have your laptop back soon
Click to expand...
Click to collapse
Man, you are a real kind heart, helping almost every developer on our forum...
Love you for that bro...
Sent from my LG-P500 using XDA
I also did a part on cm9, so why not help to get it ready for nightlies
And when you let the thing that is bothering you rest for a while, the solution comes always
Maybe this will help you....
http://forum.xda-developers.com/showthread.php?p=23696156
Sent from my LG-P500 using xda premium

[Q] Error compiling CM-10.1

Hello all. I'm trying to compile the latest CM-10.1 according to Hashcode's instructions found in http://forum.xda-developers.com/showthread.php?t=2245335 I keep getting the following error messages:
Code:
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRExtractor.cpp
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::setSupportedOutputFormat()':
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: warning: comparison between 'OMX_COLOR_FORMATTYPE {aka enum OMX_COLOR_FORMATTYPE}' and 'enum OMX_TI_COLOR_FORMATTYPE' [-Wenum-compare]
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: error: 'OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m' was not declared in this scope
frameworks/av/media/libstagefright/AMRExtractor.cpp: In member function 'virtual android::status_t android::AMRSource::read(android::MediaBuffer**, const android::MediaSource::ReadOptions*)':
frameworks/av/media/libstagefright/AMRExtractor.cpp:262:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRWriter.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AudioPlayer.cpp
make: *** [/android/kfhd7/cm10.1/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Anyone else having problems compiling? I tried to add various includes to ACodec.cpp without avail. Any pointers would be much appreciated!
csosbee said:
Hello all. I'm trying to compile the latest CM-10.1 according to Hashcode's instructions found in http://forum.xda-developers.com/showthread.php?t=2245335 I keep getting the following error messages:
Code:
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRExtractor.cpp
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::setSupportedOutputFormat()':
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: warning: comparison between 'OMX_COLOR_FORMATTYPE {aka enum OMX_COLOR_FORMATTYPE}' and 'enum OMX_TI_COLOR_FORMATTYPE' [-Wenum-compare]
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: error: 'OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m' was not declared in this scope
frameworks/av/media/libstagefright/AMRExtractor.cpp: In member function 'virtual android::status_t android::AMRSource::read(android::MediaBuffer**, const android::MediaSource::ReadOptions*)':
frameworks/av/media/libstagefright/AMRExtractor.cpp:262:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRWriter.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AudioPlayer.cpp
make: *** [/android/kfhd7/cm10.1/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Anyone else having problems compiling? I tried to add various includes to ACodec.cpp without avail. Any pointers would be much appreciated!
Click to expand...
Click to collapse
Hello,
I fixed it
Here: https://github.com/Ntemis/android_device_bn_acclaim/commit/d89cf35ab6d139e27cd131e9fda971f92a66ff43
Thank you for the patch! :good:

[Q] Error compilling cyanogenmod 10

I'm trying to compile cyanogenmod 10.2 from sources for samsung janice (i9070) but i edited files to match my device (Samsung gavini (I8530))
I write here, because my device isn't so popular, but it is very similar to S Advance.
When i try to compile CYanogenmod everything goes well untill it starts to compile kernel. At one moment it stopps with this error:
Code:
ARCH=arm CROSS_COMPILE=" /home/denisrus/Documents/CYANOGENMOD/i9070/prebuilt/linux-x86/toolchain/arm-eabi-4.6/bin/arm-eabi-"
...
In file included from /home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:16:0:
...
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: error: unknown field 'atchcalst' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: error: unknown field 'atchcalsthr' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: error: unknown field 'tchthr_batt' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: error: unknown field 'tchthr_charging' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: error: unknown field 'tchthr_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: error: unknown field 'tchthr_charging_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: error: unknown field 'calcfg_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: error: unknown field 'calcfg_charging_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: error: unknown field 'atchfrccalthr_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: error: unknown field 'atchfrccalratio_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: error: unknown field 't48_config_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: error: unknown field 't48_config_chrg_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: error: unknown field 'power_con' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: error: unknown field 'read_ta_status' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1002:3: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1002:3: error: (near initialization for 'gavini_r0_1_gpio_i2c5_devices[0].irq')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:1: error: 'NMK_GPIO_ALT_A' undeclared here (not in a function)
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: 'NMK_GPIO_PULL_UP' undeclared here (not in a function)
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: (near initialization for 'mop500_pins_uart0[0]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: (near initialization for 'mop500_pins_uart0[1]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:20: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:20: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: (near initialization for 'mop500_pins_uart0[2]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: (near initialization for 'mop500_pins_uart0[3]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2015:2: warning: initialization from incompatible pointer type [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2015:2: warning: (near initialization for 'uart0_plat.amba_pl011_wake_peer') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c: In function 'gavini_init_machine':
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2342:2: error: implicit declaration of function 'nmk_gpio_clocks_enable' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2382:2: error: implicit declaration of function 'mms136_ts_init' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2383:2: error: implicit declaration of function 'nmk_gpio_clocks_disable' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c: At top level:
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:190:37: warning: 'mpu_data' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:517:13: warning: 'tsu6111_reset' defined but not used [-Wunused-function]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:582:13: warning: 'mxt224_register_callback' defined but not used [-Wunused-function]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:734:36: warning: 'mxt224_data' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:999:41: warning: 'gavini_r0_1_gpio_i2c5_devices' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1949:31: warning: 'sec_device_rfkill' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1999:13: warning: 'bt_wake_peer' defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mach-ux500/board-gavini.o] Error 1
make[2]: *** [arch/arm/mach-ux500] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500'
make: *** [TARGET_KERNEL_BINARIES] Error 2
Interesting. Finally we found someone who has a gavini. I'll take a look at the error tomorrow
Inviato dal mio GT-I9070 utilizzando Tapatalk
I don't have much experience in compiling cyanogenmod roms, i only know how to compile kernels... All the time, i've compiled kernels from stock sources, i've never seen such errors, but how to solve this, I don't know. So if you know solution or have some recommendations, i'm ready to try them. So if it is possible, look at this error when you have time.
Did you try another toolchain to build?
Sent from my GT-I9505 using xda app-developers app
Yes. As i remember, i tried Code Sourcery toolchain and Google toolchain. May be i just made something wrong with files? If i put cyanogenmod config and ramdisk to stock kernel source files, will it be possible to compile it? And i'm not sure that platform is compiling correctly, because it has some differents from janice, i'v tried to modify files to match my board, but i'm not sure it works.
If you have some ideas, i can try them.
If you need some more information about files that i'm using or PC configuration, i can write everything that you need.
------
Sorry for bad English, it's not my native language.

Cant Compile inbuild kernel for Cm13

Hello guys i just set up build environment for cm13 the non caf version,cant build kernel from that getting error
this is the error
HTML:
target thumb C++: libbase <= system/core/base/logging.cpp
target thumb C++: liblog <= system/core/liblog/log_time.cpp
target thumb C: liblog <= system/core/liblog/logd_write.c
target thumb C: liblog <= system/core/liblog/log_event_write.c
target thumb C: liblog <= system/core/liblog/event_tag_map.c
In file included from bionic/libc/include/stdatomic.h:156:0,
from system/core/liblog/logd_write.c:25:
bionic/libc/include/uchar.h:40:35: error: unknown type name 'char16_t'
size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:41:35: error: unknown type name 'char32_t'
size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:42:17: error: unknown type name 'char16_t'
size_t mbrtoc16(char16_t* __restrict,
^
bionic/libc/include/uchar.h:46:17: error: unknown type name 'char32_t'
size_t mbrtoc32(char32_t* __restrict,
^
In file included from system/core/liblog/logd_write.c:25:0:
bionic/libc/include/stdatomic.h:367:11: error: expected specifier-qualifier-list before 'char16_t'
typedef _Atomic(char16_t) atomic_char16_t;
^
bionic/libc/include/stdatomic.h:368:11: error: expected specifier-qualifier-list before 'char32_t'
typedef _Atomic(char32_t) atomic_char32_t;
^
build/core/binary.mk:816: recipe for target '/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o' failed
make: *** [/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
#### make failed to build some targets (04:45 (mm:ss)) ####
Using default toolchain for kernel GCC 4.8

[Help][Q] Compiling Magisk from source errors

UPDATE: ISSUE HAS BEEN FIXED, THANK YOU
Hi all,
I am trying to compile Magisk after cloning it from the Github repository (https://github.com/topjohnwu/Magisk).
I cloned it via
Code:
git clone [B]-recursive[/B] https://github.com/topjohnwu/Magisk.git
in order to download the proper submodules as well.
After running
Code:
python3 build.py all 14.3 143
(btw, I am simply guessing the versioncode argument. Does it matter?)
the error I get is the following:
pastebin: https://pastebin.com/eVwGhvXa
Code:
* Building Magisk binaries
[x86] Compile : b64xz <= b64xz.c
[x86] Compile : magisk <= magisk.c
[x86] Compile : magisk <= daemon.c
[x86] Compile : magisk <= socket_trans.c
[x86] Compile : magisk <= log_monitor.c
[x86] Compile : magisk <= bootstages.c
[x86] Compile : magisk <= misc.c
[x86] Compile : magisk <= vector.c
[x86] Compile : magisk <= xwrap.c
[x86] Compile : magisk <= list.c
[x86] Compile : magisk <= img.c
[x86] Compile : magisk <= file.c
[x86] Compile : magisk <= magiskhide.c
[x86] Compile : magisk <= proc_monitor.c
[x86] Compile : magisk <= hide_utils.c
[x86] Compile : magisk <= magiskpolicy.c
[x86] Compile : magisk <= rules.c
[x86] Compile : magisk <= sepolicy.c
[x86] Compile : magisk <= api.c
[x86] Compile++ : magisk <= resetprop.cpp
[x86] Compile++ : magisk <= system_properties.cpp
In file included from jni/resetprop/resetprop.cpp:63:
In file included from jni/resetprop/_system_properties.h:40:
jni/resetprop/system_properties.h:46:64: error: expected function body after function declarator
int __system_property_set2(const char* key, const char* value) __INTRODUCED_IN(12);
^
jni/resetprop/system_properties.h:61:19: error: expected function body after function declarator
void* cookie) __INTRODUCED_IN(26);
^
jni/resetprop/system_properties.h:70:3: error: expected function body after function declarator
__INTRODUCED_IN(19);
^
jni/resetprop/system_properties.h:89:5: error: expected function body after function declarator
__INTRODUCED_IN(26);
^
jni/resetprop/resetprop.cpp:177:3: error: use of undeclared identifier '__system_property_read_callback2'; did you mean
'__system_property_read2'?
__system_property_read_callback2(pi, read_prop_info, value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__system_property_read2
jni/resetprop/system_properties.h:94:5: note: '__system_property_read2' declared here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
jni/resetprop/resetprop.cpp:177:40: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'void (void *, const
char *, const char *, uint32_t)' (aka 'void (void *, const char *, const char *, unsigned int)')
__system_property_read_callback2(pi, read_prop_info, value);
^~~~~~~~~~~~~~
jni/resetprop/system_properties.h:94:56: note: passing argument to parameter 'name' here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
jni/resetprop/resetprop.cpp:192:2: error: use of undeclared identifier '__system_property_read_callback2'; did you mean
'__system_property_read2'?
__system_property_read_callback2(pi, cb_wrapper, cookie);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__system_property_read2
jni/resetprop/system_properties.h:94:5: note: '__system_property_read2' declared here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
jni/resetprop/resetprop.cpp:192:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'void (void *, const
char *, const char *, uint32_t)' (aka 'void (void *, const char *, const char *, unsigned int)')
__system_property_read_callback2(pi, cb_wrapper, cookie);
^~~~~~~~~~
jni/resetprop/system_properties.h:94:56: note: passing argument to parameter 'name' here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
In file included from jni/resetprop/system_properties.cpp:54:
In file included from jni/resetprop/_system_properties.h:40:
jni/resetprop/system_properties.h:46:64: error: expected function body after function declarator
int __system_property_set2(const char* key, const char* value) __INTRODUCED_IN(12);
^
jni/resetprop/system_properties.h:61:19: error: expected function body after function declarator
void* cookie) __INTRODUCED_IN(26);
^
jni/resetprop/system_properties.h:70:3: error: expected function body after function declarator
__INTRODUCED_IN(19);
^
jni/resetprop/system_properties.h:89:5: error: expected function body after function declarator
__INTRODUCED_IN(26);
^
jni/resetprop/resetprop.cpp:254:2: error: use of undeclared identifier '__system_property_foreach2'; did you mean
'__system_property_get2'?
__system_property_foreach2(prop_foreach_cb, &wrap);
^~~~~~~~~~~~~~~~~~~~~~~~~~
__system_property_get2
jni/resetprop/system_properties.h:96:5: note: '__system_property_get2' declared here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/resetprop.cpp:254:29: error: cannot initialize a parameter of type 'const char *' with an lvalue of type
'void (const prop_info *, void *)'
__system_property_foreach2(prop_foreach_cb, &wrap);
^~~~~~~~~~~~~~~
jni/resetprop/system_properties.h:96:40: note: passing argument to parameter 'name' here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/resetprop.cpp:271:10: error: use of undeclared identifier '__system_property_set2'; did you mean
'__system_property_get2'?
ret = __system_property_set2(name, value);
^~~~~~~~~~~~~~~~~~~~~~
__system_property_get2
jni/resetprop/system_properties.h:96:5: note: '__system_property_get2' declared herejni/resetprop/system_properties.cpp:97:3: error: unknown type name 'va_list'; did you mean '__va_list'?
va_list vl;
^~~~~~~
__va_list
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/sys/types.h:129:27: note: '__va_list' declared here
int __system_property_get2(const char* name, char* value);
^
typedef __builtin_va_list __va_list;
^
jni/resetprop/resetprop.cpp:271:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
ret = __system_property_set2(name, value);
^~~~~
jni/resetprop/system_properties.h:96:52: note: passing argument to parameter 'value' here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/system_properties.cpp:98:3: error: use of undeclared identifier 'va_start'
va_start(vl, format);
^
jni/resetprop/system_properties.cpp:99:13: error: use of undeclared identifier 'vsnprintf'
int ret = vsnprintf(s, n, format, vl);
^
jni/resetprop/system_properties.cpp:100:3: error: use of undeclared identifier 'va_end'
va_end(vl);
^
jni/resetprop/resetprop.cpp:278:10: error: use of undeclared identifier '__system_property_set2'; did you mean
'__system_property_get2'?
ret = __system_property_set2(name, value);
^~~~~~~~~~~~~~~~~~~~~~
__system_property_get2
jni/resetprop/system_properties.h:96:5: note: '__system_property_get2' declared here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/resetprop.cpp:278:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
ret = __system_property_set2(name, value);
^~~~~
jni/resetprop/system_properties.h:96:52: note: passing argument to parameter 'value' here
int __system_property_get2(const char* name, char* value);
^
14 errors generated.
make: *** [obj/local/x86/objs/magisk/resetprop/resetprop.o] Error 1
make: *** Waiting for unfinished jobs....
jni/resetprop/system_properties.cpp:1012:3: error: unknown type name 'va_list'; did you mean '__va_list'?
va_list ap;
^~~~~~~
__va_list
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/sys/types.h:129:27: note: '__va_list' declared here
typedef __builtin_va_list __va_list;
^
jni/resetprop/system_properties.cpp:1030:3: error: use of undeclared identifier 'va_start'
va_start(ap, num_args);
^
jni/resetprop/system_properties.cpp:1034:33: error: expected '(' for function-style cast or type construction
spec_entry = va_arg(ap, char**);
~~~~^
jni/resetprop/system_properties.cpp:1034:35: error: expected expression
spec_entry = va_arg(ap, char**);
^
jni/resetprop/system_properties.cpp:1037:7: error: use of undeclared identifier 'va_end'
va_end(ap);
^
jni/resetprop/system_properties.cpp:1043:7: error: use of undeclared identifier 'va_end'
va_end(ap);
^
jni/resetprop/system_properties.cpp:1048:3: error: use of undeclared identifier 'va_end'
va_end(ap);
^
jni/resetprop/system_properties.cpp:1053:3: error: unknown type name 'FILE'
FILE* file = fopen(filename, "re");
^
jni/resetprop/system_properties.cpp:1053:16: error: use of undeclared identifier 'fopen'; did you mean 'open'?
FILE* file = fopen(filename, "re");
^~~~~
open
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/fcntl.h:73:12: note: 'open' declared here
extern int open(const char*, int, ...);
^
jni/resetprop/system_properties.cpp:1053:32: error: cannot initialize a parameter of type 'int' with an lvalue of type
'const char [3]'
FILE* file = fopen(filename, "re");
^~~~
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/fcntl.h:73:33: note: passing argument to parameter here
extern int open(const char*, int, ...);
^
jni/resetprop/system_properties.cpp:1497:3: error: use of undeclared identifier '__system_property_wait2'; did you mean
'__system_property_add2'?
__system_property_wait2(nullptr, old_serial, &new_serial, nullptr);
^~~~~~~~~~~~~~~~~~~~~~~
__system_property_add2
jni/resetprop/system_properties.cpp:1449:5: note: '__system_property_add2' declared here
int __system_property_add2(const char* name, unsigned int namelen, const char* value,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [obj/local/x86/objs/magisk/resetprop/system_properties.o] Error 1
Build Magisk binary failed!
I'm building on Ubuntu 16.04 Xenial 64 bits.
It seems like the cmake or C libraries I have are older or not compatible with the one required by Magisk.
I'm out of ideas and I can't find any tutorials on compiling Magisk or any info on the errors above via Google.
Could you please help me out with some tips on what am I missing? I'd really appreciate it.
Thank you.
@easytotype Have you made sure that you're using the latest Android NDK?
Also, have you tried "sudo apt-get update && sudo apt-get upgrade"?
And, versionString and versionCode should be 14.4 and 1440, instead of 14.3 and 143 (it isn't related to this error, though)
Sent from my Samsung Galaxy Trend Plus using XDA Labs
DodoGTA said:
@easytotype Have you made sure that you're using the latest Android NDK? (...)
Click to expand...
Click to collapse
ndk was the problem indeed!
I had NDK v14,
installing the latest v15 solved the issue.
The facepalm was huge, but without your help I would have been for stuck much much longer.
Thank you very much @DodoGTA :good::good::good::good::good:

Categories

Resources