Part Number: CC2652R
Other Parts Discussed in Thread: LAUNCHXL-CC26X2R1, Z-STACK, CC2531EMK
Tool/software: Linux
Hi Team,
How to run ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0 on ubuntu 16.04 x64 bit?
How to modify ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CC2652R
Other Parts Discussed in Thread: LAUNCHXL-CC26X2R1, Z-STACK, CC2531EMK
Tool/software: Linux
Hi Team,
How to run ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0 on ubuntu 16.04 x64 bit?
How to modify ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0?
Hi YiKai,
yes, It can run on x86 platform. Due to my Ubuntu software environment, it run setup.sh produce some error.
Thanks for reply . I will download a new Ubuntu 16.04 x64 or Ubuntu 18.04. Did you update Protobuf?
My built binary will appear "NPL_Lnx_x86_Server is missing " and "ZLSZNP_X86 is missing". Do your built binary work well?
I suppose you can change ""mqtt": "~1.0.10"," to ""mqtt": "1.13.0"," in package.json under /source/Projects/node/node_zb_gateway to fix your issue.
Hi YK,
Now it compiler well. Do node mqtt version cause this issue?
Merry Christmas
Alvin Chen I find if I connect LAUNCHXL-CC26x2R1 to test ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0 on my Ubuntu VM. I always see the following error. Do you see the same problem?
[13:17:33.754,768] [NWK_MGR/MAIN] UNMSKBL:
[13:17:33.758,759] [NWK_MGR/MAIN] UNMSKBL: ************************************************
[13:17:33.759,054] [NWK_MGR/MAIN] UNMSKBL: * Network Manager Server v1.0.2d *
[13:17:33.759,328] [NWK_MGR/MAIN] UNMSKBL: ************************************************
[13:17:33.759,653] [NWK_MGR/MAIN] UNMSKBL:
[13:17:35.734,912] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[13:17:35.734,929] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[13:17:35.761,017] [NWK_MGR/MAIN] ERROR : SRSP Cond Wait timed out!
[13:17:35.761,068] [NWK_MGR/MAIN] ERROR : apicSendSynchData() failed getting response
[13:17:35.761,251] [NWK_MGR/MAIN] ERROR : Reading Local Network Information Failed
[13:17:35.761,267] [NWK_MGR/MAIN] UNMSKBL: Initialization failed. Quitting now.
Startup phase 3 failed
Yes, I use "sudo ./start_local.sh" command. The followings are my build log:
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source$ sudo ./setup.sh
******************* BEGIN SETUP! ********************
This setup script will:
- make all necessary scripts executable
- ensure necessary files have UNIX line endings
- remove prebuilt directories
- install Node Modules for Node.js Zigbee Gateway
- build Linux Zigbee Gateway
- extract Linux Zigbee Gateway binaries
*****************************************************
Entered /Projets/node Directory
Make the gateway scripts executable
SUCCESS - gateway scripts executable
/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source
Remove ERROR__out or out Directory if present
Removed Previous built package.
Convert all files from dos2unix
SUCCESS: Converted Scripts to Unix Line endings
Entered /Projets/node/nodejs_zb_gateway Directory
Installing Node Modules
- nan@1.4.3 node_modules/mqtt/node_modules/nan
- through2@0.6.5 node_modules/mqtt/node_modules/through2
- ws@0.7.2 node_modules/mqtt/node_modules/websocket-stream/node_modules/ws
nodejs_zb_gateway@1.0.0 /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway
└─┬ mqtt@1.13.0
└─┬ websocket-stream@3.3.3
└── ws@1.1.5
npm WARN nodejs_zb_gateway@1.0.0 No repository field.
SUCCESS: Installed all Node Modules Successfully
/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source
Make build_all executable
SUCCESS: build_all script is now executable
Make scripts/ executable
SUCCESS: scripts/ folder is now executable
Run ./build_all
./package_builder: line 22: svnversion: command not found
SVN Version =
Main project\'s base directory: GATEWAY=/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source (leave blank to use the detault)
Project output subdirectory: PKGS_OUTPUT_DIR=/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out (leave blank to use the detault)
Building RUNTIME package for x86 platform
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
rm -f project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING NPI SERVER FOR x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
Compiling ipclib/server/npi_lnx_ipc.c ...
Compiling ipclib/server/npi_lnx_uart.c ...
Compiling ipclib/server/npi_lnx_spi.c ...
Compiling ipclib/server/npi_lnx_i2c.c ...
Compiling ipclib/server/hal_gpio.c ...
Compiling ipclib/server/hal_i2c.c ...
Compiling ../../../../srvwrapper/trace.c ...
Compiling ipclib/server/hal_spi.c ...
Compiling ../../../../srvwrapper/configparser.c ...
Building target out/NPI_lnx_x86_server ...
********************************************************
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
Cleaning up osal_zstack_server_znp.o ../source/zmain.o znp_af.o znp_misc.o znp_zdo.o ../zstackpb/zstack.pb-c.o ../zstackpb/zstackpb.o ../srvwrapper/api_client.o ../srvwrapper/trace.o ../srvwrapper/main.o ../srvwrapper/api_server.o ../srvwrapper/configparser.o ../linux_osal/common/OSAL_Memory.o ../linux_osal/common/OSAL_PwrMgr.o ../linux_osal/common/OSAL_Timers.o ../linux_osal/common/OSAL.o ../../../../Components/services/saddr/saddr.o ../source/OnBoard.o ../hal/hal_timer.o ../source/pb_utils.o ../zstackserverznp/zstack_pb_ctrl.o out/*
********************************************************
Building ZLSZNP_x86
Compiler: gcc
Targer platform: x86
********************************************************
Compiling osal_zstack_server_znp.c
Compiling ../source/zmain.c
Compiling znp_af.c
znp_af.c: In function ‘sendGpSecRsp’:
znp_af.c:525:14: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
afStatus_t status;
^~~~~~
Compiling znp_misc.c
znp_misc.c: In function ‘processAFIncomingMsgInd’:
znp_misc.c:706:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
leftover = (uint32)pPtr % 4;
^
Compiling znp_zdo.c
Compiling ../zstackpb/zstack.pb-c.c
Compiling ../zstackpb/zstackpb.c
Compiling ../srvwrapper/api_client.c
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/trace.c
Compiling ../srvwrapper/main.c
Compiling ../srvwrapper/api_server.c
Compiling ../srvwrapper/configparser.c
Compiling ../linux_osal/common/OSAL_Memory.c
Compiling ../linux_osal/common/OSAL_PwrMgr.c
Compiling ../linux_osal/common/OSAL_Timers.c
../linux_osal/common/OSAL_Timers.c: In function ‘osal_start_timerEx’:
../linux_osal/common/OSAL_Timers.c:278:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_start_reload_timer’:
../linux_osal/common/OSAL_Timers.c:344:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_stop_timerEx’:
../linux_osal/common/OSAL_Timers.c:412:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_timer_num_active’:
../linux_osal/common/OSAL_Timers.c:456:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
Compiling ../linux_osal/common/OSAL.c
../linux_osal/common/OSAL.c: In function ‘osal_msg_receive’:
../linux_osal/common/OSAL.c:515:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_find’:
../linux_osal/common/OSAL.c:592:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_enqueue’:
../linux_osal/common/OSAL.c:630:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_dequeue’:
../linux_osal/common/OSAL.c:670:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_push’:
../linux_osal/common/OSAL.c:705:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_extract’:
../linux_osal/common/OSAL.c:734:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_enqueue_max’:
../linux_osal/common/OSAL.c:774:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_set_event’:
../linux_osal/common/OSAL.c:827:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_clear_event’:
../linux_osal/common/OSAL.c:860:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_run_system’:
../linux_osal/common/OSAL.c:1040:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
Compiling ../../../../Components/services/saddr/saddr.c
Compiling ../source/OnBoard.c
Compiling ../hal/hal_timer.c
Compiling ../source/pb_utils.c
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c
Linking ZLSZNP_x86
********************************************************
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr'
Compiling ../srvepconfig/serverep.c ...
Compiling nwkmgrsrv.c ...
Compiling nwkmgrdatabase.c ...
Compiling ../srvwrapper/trace.c ...
Compiling ../sdb/SimpleDB.c ...
Compiling ../sdb/SimpleDBTxt.c ...
Compiling nwkmgrservices.c ...
Compiling nwkmgrp2p.c ...
Compiling nwkmgr.pb-c.c ...
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/main.c ...
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Building target out/NWKMGR_SRVR_x86 ...
********************************************************
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr'
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway'
Compiling ../srvepconfig/serverep.c ...
Compiling gatewaysrvr.c ...
gatewaysrvr.c: In function ‘processGwGetDeviceAttributeListReq’:
gatewaysrvr.c:2686:56: warning: passing argument 5 of ‘gwServices_ConvertPbClusterList’ from incompatible pointer type [-Wincompatible-pointer-types]
&attrListRsp.n_clusterlist );
^
In file included from gatewaysrvr.c:53:0:
gatewayservices.h:140:26: note: expected ‘uint32 * {aka unsigned int *}’ but argument is of type ‘size_t * {aka long unsigned int *}’
extern GwClusterListT ** gwServices_ConvertPbClusterList( int attrCount, zclAttrRec_t *pAttrRecord,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling ../srvwrapper/trace.c ...
Compiling gatewayservices.c ...
Compiling ../serverpb/gatewayp2p.c ...
Compiling gateway.pb-c.c ...
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/main.c ...
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ../../../../Components/stack/gp/gp_common.c ...
Compiling ../../../../Components/stack/gp/gp_proxyTbl.c ...
Compiling ../../../../Components/stack/zcl/zcl_green_power.c ...
Compiling ../../../../Components/stack/zcl/zcl_general.c ...
Compiling ../../../../Components/stack/zcl/zcl_poll_control.c ...
Compiling ../../../../Components/stack/zcl/zcl_lighting.c ...
Compiling ../../../../Components/stack/zcl/zcl_closures.c ...
Compiling ../../../../Components/stack/zcl/zcl_hvac.c ...
Compiling ../../../../Components/stack/zcl/zcl_ss.c ...
Compiling ../../../../Components/stack/zcl/zcl.c ...
Compiling aps_groups.c ...
Compiling zcl_port.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../hagateway/gateway_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr.pb-c.c ...
Building target out/GATEWAY_SRVR_x86 ...
********************************************************
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway'
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
export ARCH=x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver'
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../../../../Components/stack/zcl/zcl_general.c ...
Compiling ../../../../Components/stack/zcl/zcl.c ...
Compiling zcl_ota.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/main.c ...
Compiling zcl_otaserver_lnx.c ...
Compiling OtaServer.c ...
Compiling OtaServer_db.c ...
Compiling ../sdb/SimpleDB.c ...
Compiling ../sdb/SimpleDBTxt.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ota_common.c ...
Compiling otasrvr.c ...
Compiling otasrvr.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/trace.c ...
Compiling ../serverpb/gatewayp2p.c ...
Compiling zcl_port.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../otaserver/otasrvr_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr.pb-c.c ...
Building target out/OTA_SRVR_x86 ...
********************************************************
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver'
Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -f main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -rf ./out
rm -f project_file_list.txt
VPATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver:./../../source:./../../srvwrapper
********************************************************
Check existance of output folder
if test ! -d ./out; then mkdir ./out; fi
Compiling main.c into main.o
Compiling ./../framework/polling.c into polling.o
Compiling ./../framework/timer_utils.c into timer_utils.o
Compiling ./../framework/socket_interface.c into socket_interface.o
In file included from ./../framework/socket_interface.c:51:0:
./../framework/socket_interface.c: In function ‘si_register_idle_callback’:
./../framework/socket_interface.c:159:94: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:159:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^~~~~~~~~~~~
./../framework/socket_interface.c:159:108: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:159:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^~~~~~~~~~~~
./../framework/socket_interface.c:163:98: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("ERROR: Failed to create new idle_cb entry (#%d) for func (%08x)", idle_cb_count, (int)IDLE_CB);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:163:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("ERROR: Failed to create new idle_cb entry (#%d) for func (%08x)", idle_cb_count, (int)IDLE_CB);
^~~~~~~~~~~~
./../framework/socket_interface.c: In function ‘si_unregister_idle_callback’:
./../framework/socket_interface.c:174:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("Unregistering state machine (%08x)", (int)IDLE_CB);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:174:2: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Unregistering state machine (%08x)", (int)IDLE_CB);
^~~~~~~~~~~~
Compiling ./../framework/tcp_client.c into tcp_client.o
Compiling ./../framework/user_interface.c into user_interface.o
./../framework/user_interface.c: In function ‘ui_redraw_actions’:
./../framework/user_interface.c:2386:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
printf("%s[%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s:%03d] ", (i == current_action ? LIGHT_YELLOW : DARK_YELLOW), strchr(ACTION_NAMES[i],'&') - ACTION_NAMES[i], ACTION_NAMES[i], strchr(ACTION_NAMES[i],'&')[1], strchr(ACTION_NAMES[i],'&') + 2, action_value[i]);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../framework/user_interface.c:2389:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
printf("%s[%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s] ", (i == current_action ? LIGHT_YELLOW : DARK_YELLOW), strchr(ACTION_NAMES[i],'&') - ACTION_NAMES[i], ACTION_NAMES[i], strchr(ACTION_NAMES[i],'&')[1], strchr(ACTION_NAMES[i],'&') + 2);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../framework/user_interface.c:2396:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
printf("%s%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s",
~~^~
./../framework/user_interface.c:2398:7:
strchr(ACTION_SUBNAMES[i][j],'&') - ACTION_SUBNAMES[i][j],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling ./../framework/data_structures.c into data_structures.o
Compiling ./../engines/network_info_engine.c into network_info_engine.o
Compiling ./../engines/device_list_engine.c into device_list_engine.o
Compiling ./../engines/sensor_engine.c into sensor_engine.o
In file included from ../framework/user_interface.h:51:0,
from ./../engines/sensor_engine.c:50:
./../engines/sensor_engine.c: In function ‘snsr_process_zone_status_change_ind’:
./../engines/sensor_engine.c:355:26: warning: format ‘%LX’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(log_string, "addr = %08LX,", msg->srcaddress->ieeeaddr);
^ ~~~~~~~~~~~~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
Compiling ./../engines/state_reflector.c into state_reflector.o
Compiling ./../engines/attribute_engine.c into attribute_engine.o
./../engines/attribute_engine.c: In function ‘attr_write_response_indication_handler’:
./../engines/attribute_engine.c:269:77: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tu_set_timer(&identify_timer, 1000, true, attr_identify_timer_handler, (void *)msg->srcaddress->endpointid);
^
./../engines/attribute_engine.c: In function ‘attr_identify_timer_handler’:
./../engines/attribute_engine.c:944:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
uint8_t endpoint = (uint8_t)(uint32_t)arg;
^
Compiling ./../engines/actions_engine.c into actions_engine.o
Compiling ./../engines/commissioning_engine.c into commissioning_engine.o
Compiling ./../engines/system_engine.c into system_engine.o
Compiling ./../engines/ota_engine.c into ota_engine.o
./../engines/ota_engine.c: In function ‘upgrade_apply_image_cnf’:
./../engines/ota_engine.c:322:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int index = (int )cbarg;
^
./../engines/ota_engine.c: In function ‘upgrade_process_regis_cnf’:
./../engines/ota_engine.c:361:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int index = (int )cbarg;
^
./../engines/ota_engine.c: In function ‘register_single_file’:
./../engines/ota_engine.c:481:85: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (si_send_packet(pkt, (confirmation_processing_cb_t)&upgrade_process_regis_cnf, (void *)i) != 0)
^
Compiling ./../../nwkmgr/nwkmgr.pb-c.c into nwkmgr.pb-c.o
Compiling ./../../hagateway/gateway.pb-c.c into gateway.pb-c.o
Compiling ./../../otaserver/otasrvr.pb-c.c into otasrvr.pb-c.o
Compiling ./../engines/group_scene_engine.c into group_scene_engine.o
Compiling ./../framework/macros.c into macros.o
Compiling ./../../source/pb_utils.c into pb_utils.o
./../../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
./../../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
./../../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ./../../source/pb_utils.h:46:0,
from ./../../source/pb_utils.c:48:
./../../source/pb_utils.c: In function ‘print_pb_msg’:
./../../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
./../../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
./../../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
./../../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
./../../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ./../../nwkmgr/nwkmgr_pb_ctrl.c into nwkmgr_pb_ctrl.o
Compiling ./../../hagateway/gateway_pb_ctrl.c into gateway_pb_ctrl.o
Compiling ./../../otaserver/otasrvr_pb_ctrl.c into otasrvr_pb_ctrl.o
Compiling ./../../srvwrapper/trace.c into trace.o
In file included from ./../../srvwrapper/trace.c:52:0:
./../../srvwrapper/trace.c: In function ‘trace_init_thread’:
./../../srvwrapper/trace.h:198:44: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define PTHREAD_SETSPECIFIC(A,B) ((A) = (B), 0)
~~~~~~~~~~^~~~
./../../srvwrapper/trace.c:187:3: note: in expansion of macro ‘PTHREAD_SETSPECIFIC’
PTHREAD_SETSPECIFIC(thread_name_key, NULL);
^~~~~~~~~~~~~~~~~~~
Compiling ./../../srvwrapper/configparser.c into configparser.o
Building main.bin...
mv main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out
rm -rf *.o sbl_tool.bin
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c
In file included from ../Source/zbSocCmd.c:60:0:
../Source/zbSocCmd.c: In function ‘config_read_pair’:
../Source/zbSocCmd.c:606:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
debug_printf("config_read_pair: section=%s, context=%u\n", section, (unsigned int)context);
^
../Source/zbSocCmd.h:100:67: note: in definition of macro ‘debug_printf’
#define debug_printf(...) do {if (uartDebugPrintsEnabled) {printf(__VA_ARGS__);}} while (0)
^~~~~~~~~~~
../Source/zbSocCmd.c:611:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
debug_printf("config_read_pair: seeking to: %d\n", *context);
^ ~~
../Source/zbSocCmd.h:100:67: note: in definition of macro ‘debug_printf’
#define debug_printf(...) do {if (uartDebugPrintsEnabled) {printf(__VA_ARGS__);}} while (0)
^~~~~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransportUart.c
../Source/zbSocTransportUart.c: In function ‘zbSocTransportWrite’:
../Source/zbSocTransportUart.c:72:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ssize_t {aka long int}’ [-Wformat=]
printf("write=%d\n",write((fd),(rpcBuff),(rpcLen))); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/zbSocTransportUart.c:173:2: note: in expansion of macro ‘socWrite’
socWrite(serialPortFd, buf, len);
^~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o sbl_tool.bin
rm -rf *.o gw_soc_fw_version_query.bin
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransportUart.c
../Source/zbSocTransportUart.c: In function ‘zbSocTransportWrite’:
../Source/zbSocTransportUart.c:72:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ssize_t {aka long int}’ [-Wformat=]
printf("write=%d\n",write((fd),(rpcBuff),(rpcLen))); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/zbSocTransportUart.c:178:2: note: in expansion of macro ‘socWrite’
socWrite(serialPortFd, buf, len);
^~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o gw_soc_fw_version_query.bin
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_hold': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_release': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.so.0.0.0': No such file or directory
Package verification results:
ERROR: 2 error(s) occured during make
ERROR: 89 warning(s) occured during make
sort: cannot read: /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_x86.txt: No such file or directory
diff /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/content.txt /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/expected_content.txt
1,29d0
< .
< ./content.txt
< ./Precompiled
< ./Precompiled/app
< ./Precompiled/app/main.bin
< ./Precompiled/misc
< ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
< ./Precompiled/misc/ota_sample_images
< ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
< ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
< ./Precompiled/protobuf
< ./Precompiled/servers
< ./Precompiled/servers/config.ini
< ./Precompiled/servers/gateway_config.ini
< ./Precompiled/servers/gateway_config.tlg
< ./Precompiled/servers/GATEWAY_SRVR_x86
< ./Precompiled/servers/NPI_Gateway.cfg
< ./Precompiled/servers/NPI_lnx_x86_server
< ./Precompiled/servers/nwkmgr_config.ini
< ./Precompiled/servers/NWKMGR_SRVR_x86
< ./Precompiled/servers/OTA_SRVR_x86
< ./Precompiled/servers/sample_app_ota.cfg
< ./Precompiled/servers/start_application
< ./Precompiled/servers/track_servers
< ./Precompiled/servers/zigbeeHAgw
< ./Precompiled/servers/ZLSZNP_x86
< ./Precompiled/tools
< ./Precompiled/tools/gw_soc_fw_version_query.bin
< ./Precompiled/tools/sbl_tool.bin
ERROR: Content verification failed
ERROR: RUNTIME package for x86 creation failed. See details above. Output folder/tar name prefixed with "ERROR_."
SUCCESS: build_all finished.
Entered Precompiled directory.
tar: z-stack_linux_gateway_arm_binaries_.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
app/
app/main.bin
misc/
misc/ota_sample_images/
misc/ota_sample_images/5678-1234-0000BBBB.zigbee
misc/ota_sample_images/5678-1234-0000AAAA.zigbee
misc/CC2531-GW-ZNP_39203.bin
protobuf/
servers/
servers/GATEWAY_SRVR_x86
servers/NWKMGR_SRVR_x86
servers/gateway_config.tlg
servers/start_application
servers/gateway_config.ini
servers/NPI_lnx_x86_server
servers/zigbeeHAgw
servers/track_servers
servers/OTA_SRVR_x86
servers/NPI_Gateway.cfg
servers/sample_app_ota.cfg
servers/config.ini
servers/nwkmgr_config.ini
servers/ZLSZNP_x86
tools/
tools/sbl_tool.bin
tools/gw_soc_fw_version_query.bin
SUCCESS: Extracted binaries
Entered servers/ directory
Make apps exe, copy protobuf files
SUCCESS: Made servers and applications executable
SUCCESS: Made /tools/ folder executable
Copy Protobuf Files to /usr/lib directory
cp: cannot stat '../protobuf/libprotobuf-c.so.0': No such file or directory
cp: cannot stat '../protobuf/libprotobuf-c.so.0.0.0': No such file or directory
Protobuf files not found
****** SETUP FAILED! *****
Out of curiosity, is the same customer from this thread involved? e2e.ti.com/.../753714
I've only tested on the BeagleBone Black with the Debian 9.x 32-bit OS, the User Guide and other documents state that the Linus Gateway software only supports x86 so 64-bit operation may not be available. I can reach out to Software Development for further insight but responses will be delayed due to the holiday season. I would recommend that you continue using a 32-bit OS for now.
Regards,
Ryan
Please reproduce the error and add the verbose debug data to the log. That extra information will be helpful to follow up the issue.
Yes I have the linux gateway running on Ubuntu 18.04 x64 and everything works as expected out-of-the-box, the only thing that I had to change was the name of the folder suggested by Ryan:
from
/Projects/zstack/linux/protobuf-c/lib/arm
to
/Projects/zstack/linux/protobuf-c/lib/x86
My best guess from the error that you have is that your ZNP has the bootloader which was used for legacy versions of zstack. Z-Stack for zigbee 3.0 doesn't use a boot-loader so you need to have a ZNP without the boot-loader included. Just flash a ZNP project that doesn't have SBL built in. In my case I sued a CC2531-Debug from Z-Stack 3.0.2, so try it like that and share how it goes.
Can’ I use prebuilt ZNP hex for CC2531EMK come with ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0 installation? By the way, I see some npm packages build problem as Alvin and I post in the beginning of this thread, don’t you see it when you build ZIGBEE-LINUX-SENSOR-TO-CLOUD_1.0.0 on your ubuntu 16.04 x64 bit setup?
Jose Maria AlvarezI try to setup a new Ubuntu 18.04 x64 on VirtualBox and change /Projects/zstack/linux/protobuf-c/lib/arm to /Projects/zstack/linux/protobuf-c/lib/x86. However, I still see the following build errors. I suppose you setup something but forget them. Can you try a brand new Ubuntu 18.04 x64 on VirtualBox to verify this? It's easy to reproduce.
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source$ sudo ./setup.sh
******************* BEGIN SETUP! ********************
This setup script will:
- make all necessary scripts executable
- ensure necessary files have UNIX line endings
- remove prebuilt directories
- install Node Modules for Node.js Zigbee Gateway
- build Linux Zigbee Gateway
- extract Linux Zigbee Gateway binaries
*****************************************************
Entered /Projets/node Directory
Make the gateway scripts executable
SUCCESS - gateway scripts executable
/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source
Remove ERROR__out or out Directory if present
Removed Previous built package.
Convert all files from dos2unix
SUCCESS: Converted Scripts to Unix Line endings
Entered /Projets/node/nodejs_zb_gateway Directory
Installing Node Modules
> bufferutil@1.1.0 install /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../../nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Int32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:34:64: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9796:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
In file included from ../../nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Uint32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:39:65: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9790:15: note: declared here
Local<Uint32> Value::ToUint32() const {
^~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::BooleanObject>::return_t NanIntern::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:4845:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:
../../nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2681:21: note: declared here
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)’:
../../nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2719:38: note: declared here
Local<String> NewExternal(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:237:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:244:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘bool NanIdleNotification(int)’:
../../nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:7482:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:473:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:484:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../../nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:570:42: error: ‘data’ was not declared in this scope
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^~~~
../../nan/nan.h: At global scope:
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../../nan/nan.h:665:50: note: suggested alternative: ‘calloc’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
calloc
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../../nan/nan.h:665:60: note: suggested alternative: ‘uint’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
uint
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/bufferutil.cc:10:0:
/usr/include/nodejs/src/node_buffer.h:67:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:26: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan.h:710:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../../nan/nan.h:717:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bufferutil.cc: In static member function ‘static void BufferUtil::Initialize(v8::Handle<v8::Object>)’:
../src/bufferutil.cc:30:52: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [7], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "unmask", BufferUtil::Unmask);
^
In file included from ../src/bufferutil.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
../src/bufferutil.cc:31:48: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [5], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "mask", BufferUtil::Mask);
^
In file included from ../src/bufferutil.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
../src/bufferutil.cc:32:50: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [6], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "merge", BufferUtil::Merge);
^
In file included from ../src/bufferutil.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
bufferutil.target.mk:97: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-29-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN install:bufferutil@1.1.0 bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.1.0 Exit status 1
> utf-8-validate@1.1.0 install /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../../nan/nan.h:82:0,
from ../src/validation.cc:15:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Int32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:34:64: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
^
In file included from ../src/validation.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9796:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
In file included from ../../nan/nan.h:82:0,
from ../src/validation.cc:15:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Uint32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:39:65: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
^
In file included from ../src/validation.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9790:15: note: declared here
Local<Uint32> Value::ToUint32() const {
^~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::BooleanObject>::return_t NanIntern::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:4845:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:
../../nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2681:21: note: declared here
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)’:
../../nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2719:38: note: declared here
Local<String> NewExternal(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:237:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:244:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘bool NanIdleNotification(int)’:
../../nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:7482:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:473:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:484:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../../nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:570:42: error: ‘data’ was not declared in this scope
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^~~~
../../nan/nan.h: At global scope:
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../../nan/nan.h:665:50: note: suggested alternative: ‘calloc’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
calloc
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../../nan/nan.h:665:60: note: suggested alternative: ‘uint’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
uint
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/validation.cc:10:0:
/usr/include/nodejs/src/node_buffer.h:67:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:26: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan.h:710:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../../nan/nan.h:717:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/validation.cc: In static member function ‘static void Validation::Initialize(v8::Handle<v8::Object>)’:
../src/validation.cc:112:62: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [12], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "isValidUTF8", Validation::IsValidUTF8);
^
In file included from ../src/validation.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:83:7: note: here
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:84:7: note: here
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:85:7: note: here
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:86:7: note: here
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:86:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:87:7: note: here
case 0 : ch += (uint8_t) value[i];
^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:52:3: note: here
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:52:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:53:3: note: here
case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
^~~~
../src/validation.cc:60:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
default: if (a < 0x80) return 0;
^~
../src/validation.cc:63:3: note: here
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
^~~~
validation.target.mk:97: recipe for target 'Release/obj.target/validation/src/validation.o' failed
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-29-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN install:utf-8-validate@1.1.0 utf-8-validate@1.1.0 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.1.0 Exit status 1
npm WARN nodejs_zb_gateway@1.0.0 No repository field.
SUCCESS: Installed all Node Modules Successfully
/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source
Make build_all executable
SUCCESS: build_all script is now executable
Make scripts/ executable
SUCCESS: scripts/ folder is now executable
Run ./build_all
./package_builder: line 22: svnversion: command not found
SVN Version =
Main project\'s base directory: GATEWAY=/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source (leave blank to use the detault)
Project output subdirectory: PKGS_OUTPUT_DIR=/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out (leave blank to use the detault)
Building RUNTIME package for BEAGLEBONE_BLACK platform
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
rm -f project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING SERVER FOR ARM BEAGLE BONE
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
Compiling ipclib/server/npi_lnx_ipc.c ...
make[1]: arm-linux-gnueabihf-gcc: Command not found
makefile:210: recipe for target 'out/npi_lnx_ipc.o' failed
make[1]: *** [out/npi_lnx_ipc.o] Error 127
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
makefile:96: recipe for target 'arch-all-arm' failed
make: *** [arch-all-arm] Error 2
Cleaning up osal_zstack_server_znp.o ../source/zmain.o znp_af.o znp_misc.o znp_zdo.o ../zstackpb/zstack.pb-c.o ../zstackpb/zstackpb.o ../srvwrapper/api_client.o ../srvwrapper/trace.o ../srvwrapper/main.o ../srvwrapper/api_server.o ../srvwrapper/configparser.o ../linux_osal/common/OSAL_Memory.o ../linux_osal/common/OSAL_PwrMgr.o ../linux_osal/common/OSAL_Timers.o ../linux_osal/common/OSAL.o ../../../../Components/services/saddr/saddr.o ../source/OnBoard.o ../hal/hal_timer.o ../source/pb_utils.o ../zstackserverznp/zstack_pb_ctrl.o out/*
********************************************************
Building ZLSZNP_arm
Compiler: arm-linux-gnueabihf-gcc
Targer platform: arm
********************************************************
Compiling osal_zstack_server_znp.c
make: arm-linux-gnueabihf-gcc: Command not found
Makefile:131: recipe for target 'osal_zstack_server_znp.o' failed
make: *** [osal_zstack_server_znp.o] Error 127
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR ARM
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr'
Compiling ../srvepconfig/serverep.c ...
make[1]: arm-linux-gnueabihf-gcc: Command not found
Makefile:225: recipe for target 'out/serverep.o' failed
make[1]: *** [out/serverep.o] Error 127
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr'
Makefile:130: recipe for target 'arch-all-arm' failed
make: *** [arch-all-arm] Error 2
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR ARM
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway'
Compiling ../srvepconfig/serverep.c ...
make[1]: arm-linux-gnueabihf-gcc: Command not found
Makefile:241: recipe for target 'out/serverep.o' failed
make[1]: *** [out/serverep.o] Error 127
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway'
Makefile:152: recipe for target 'arch-all-arm' failed
make: *** [arch-all-arm] Error 2
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR ARM
export ARCH=arm
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver'
Compiling ../zstackpb/zstack.pb-c.c ...
make[1]: arm-linux-gnueabihf-gcc: Command not found
Makefile:196: recipe for target 'out/zstack.pb-c.o' failed
make[1]: *** [out/zstack.pb-c.o] Error 127
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver'
Makefile:133: recipe for target 'arch-all-arm' failed
make: *** [arch-all-arm] Error 2
Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -f main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -rf ./out
rm -f project_file_list.txt
VPATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver:./../../source:./../../srvwrapper
********************************************************
Check existance of output folder
if test ! -d ./out; then mkdir ./out; fi
Compiling main.c into main.o
make: arm-linux-gnueabihf-gcc: Command not found
makefile:45: recipe for target 'main.o' failed
make: *** [main.o] Error 127
rm -rf *.o sbl_tool.bin
arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
Makefile:24: recipe for target 'main.o' failed
make: *** [main.o] Error 127
rm -rf *.o gw_soc_fw_version_query.bin
arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
Makefile:24: recipe for target 'main.o' failed
make: *** [main.o] Error 127
Cleaning up ../source/bbb_usbreset.o ./out/*
/bin/rm -f bbb_usbreset.bin ../source/bbb_usbreset.o ./out/*
/bin/rm -f *project_file_list.txt
VPATH is .
********************************************************
Check existance of output folder
if test ! -d ./out; then mkdir ./out; fi
Compiling ../source/bbb_usbreset.c into ../source/bbb_usbreset.o
arm-linux-gnueabihf-gcc -c -Wall -std=gnu99 -I. ../source/bbb_usbreset.c -o ../source/bbb_usbreset.o
make: arm-linux-gnueabihf-gcc: Command not found
makefile:42: recipe for target '../source/bbb_usbreset.o' failed
make: *** [../source/bbb_usbreset.o] Error 127
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master//Projects/tools/LinuxHost/out/NPI_lnx_arm_server': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_arm': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_arm': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver/out/OTA_SRVR_arm': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/demo/project/main.bin': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/sbl_tool/project/sbl_tool.bin': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/version_query_minitool/project/gw_soc_fw_version_query.bin': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/bbb_usbreset/project/bbb_usbreset.bin': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.so.0': No such file or directory
Package verification results:
ERROR: 13 error(s) occured during make
diff /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/content.txt /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/expected_content.txt
4a5
> ./Precompiled/app/main.bin
10a12
> ./Precompiled/protobuf/libprotobuf-c.so.0
14a17
> ./Precompiled/servers/GATEWAY_SRVR_arm
15a19
> ./Precompiled/servers/NPI_lnx_arm_server
16a21,22
> ./Precompiled/servers/NWKMGR_SRVR_arm
> ./Precompiled/servers/OTA_SRVR_arm
22a29,31
> ./Precompiled/tools/bbb_usbreset.bin
> ./Precompiled/tools/gw_soc_fw_version_query.bin
> ./Precompiled/tools/sbl_tool.bin
ERROR: Content verification failed
ERROR: RUNTIME package for arm creation failed. See details above. Output folder/tar name prefixed with "ERROR_."
SUCCESS: build_all finished.
Entered Precompiled directory.
app/
misc/
misc/ota_sample_images/
misc/ota_sample_images/5678-1234-0000AAAA.zigbee
misc/ota_sample_images/5678-1234-0000BBBB.zigbee
misc/CC2531-GW-ZNP_39203.bin
protobuf/
servers/
servers/zigbeeHAgw
servers/gateway_config.tlg
servers/sample_app_ota.cfg
servers/config.ini
servers/track_servers
servers/ZLSZNP_arm
servers/gateway_config.ini
servers/start_application
servers/NPI_Gateway.cfg
servers/nwkmgr_config.ini
tools/
tools/soc_reset_hold
tools/soc_reset_release
SUCCESS: Extracted binaries
Entered servers/ directory
Make apps exe, copy protobuf files
SUCCESS: Made servers and applications executable
SUCCESS: Made /tools/ folder executable
Copy Protobuf Files to /usr/lib directory
cp: cannot stat '../protobuf/libprotobuf-c.so.0': No such file or directory
cp: cannot stat '../protobuf/libprotobuf-c.so.0.0.0': No such file or directory
Protobuf files not found
****** SETUP FAILED! *****
Sorry that I forget this step. After I change TARGET_PLATFORM to x86, it can build. However, I see the following errors when I run "sudo ./start_gateway.sh"
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node$ sudo ./start_gateway.sh
Start the Linux Zigbee Gateway
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node$ Platform type selected automatically as x86.
To override this selection, please stop this script, and then run it again,
specifying the desired platform type at the command line:
./zigbeeHAgw [help | bbb | x86 ]
running ./zigbeeHAgw on an x86
file ZLSZNP_x86 is missing
file GATEWAY_SRVR_x86 is missing
file NWKMGR_SRVR_x86 is missing
file OTA_SRVR_x86 is missing
there are 4 missing files!
exiting ./zigbeeHAgw
Ryan Brown1 Jose Maria AlvarezThe followings are my latest build log. As you can see, it complains about "/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.so when searching for -lprotobuf-c","/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.a when searching for -lprotobuf-c", "/usr/bin/ld: cannot find -lprotobuf-c".
/protobuf/stubs/stringpiece.h google/protobuf/stubs/strutil.h google/protobuf/stubs/template_util.h '/usr/local/include/google/protobuf/stubs'
/bin/mkdir -p '/usr/local/include/google/protobuf'
/usr/bin/install -c -m 644 google/protobuf/repeated_field.h google/protobuf/service.h google/protobuf/source_context.pb.h google/protobuf/struct.pb.h google/protobuf/text_format.h google/protobuf/timestamp.pb.h google/protobuf/type.pb.h google/protobuf/unknown_field_set.h google/protobuf/wire_format.h google/protobuf/wire_format_lite.h google/protobuf/wire_format_lite_inl.h google/protobuf/wrappers.pb.h '/usr/local/include/google/protobuf'
/bin/mkdir -p '/usr/local/include/google/protobuf/compiler/objectivec'
/usr/bin/install -c -m 644 google/protobuf/compiler/objectivec/objectivec_generator.h google/protobuf/compiler/objectivec/objectivec_helpers.h '/usr/local/include/google/protobuf/compiler/objectivec'
/bin/mkdir -p '/usr/local/include/google/protobuf/compiler'
/usr/bin/install -c -m 644 google/protobuf/compiler/code_generator.h google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/importer.h google/protobuf/compiler/parser.h google/protobuf/compiler/plugin.h google/protobuf/compiler/plugin.pb.h '/usr/local/include/google/protobuf/compiler'
make[2]: Leaving directory '/home/yk/protobuf/src'
make[1]: Leaving directory '/home/yk/protobuf/src'
yk@yk-VirtualBox:~/protobuf$ sudo ldconfig
yk@yk-VirtualBox:~/protobuf$ cd ~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source$ clear
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source$ sudo ./setup.sh
******************* BEGIN SETUP! ********************
This setup script will:
- make all necessary scripts executable
- ensure necessary files have UNIX line endings
- remove prebuilt directories
- install Node Modules for Node.js Zigbee Gateway
- build Linux Zigbee Gateway
- extract Linux Zigbee Gateway binaries
*****************************************************
Entered /Projets/node Directory
Make the gateway scripts executable
SUCCESS - gateway scripts executable
/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source
Remove ERROR__out or out Directory if present
Removed Previous built package.
Convert all files from dos2unix
SUCCESS: Converted Scripts to Unix Line endings
Entered /Projets/node/nodejs_zb_gateway Directory
Installing Node Modules
> bufferutil@1.1.0 install /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../../nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Int32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:34:64: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9796:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
In file included from ../../nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Uint32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:39:65: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9790:15: note: declared here
Local<Uint32> Value::ToUint32() const {
^~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::BooleanObject>::return_t NanIntern::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:4845:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:
../../nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2681:21: note: declared here
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)’:
../../nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2719:38: note: declared here
Local<String> NewExternal(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:237:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:244:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘bool NanIdleNotification(int)’:
../../nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:7482:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:473:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:484:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../../nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:570:42: error: ‘data’ was not declared in this scope
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^~~~
../../nan/nan.h: At global scope:
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../../nan/nan.h:665:50: note: suggested alternative: ‘calloc’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
calloc
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../../nan/nan.h:665:60: note: suggested alternative: ‘uint’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
uint
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/bufferutil.cc:10:0:
/usr/include/nodejs/src/node_buffer.h:67:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:26: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan.h:710:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../../nan/nan.h:717:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/bufferutil.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bufferutil.cc: In static member function ‘static void BufferUtil::Initialize(v8::Handle<v8::Object>)’:
../src/bufferutil.cc:30:52: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [7], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "unmask", BufferUtil::Unmask);
^
In file included from ../src/bufferutil.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
../src/bufferutil.cc:31:48: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [5], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "mask", BufferUtil::Mask);
^
In file included from ../src/bufferutil.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
../src/bufferutil.cc:32:50: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [6], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "merge", BufferUtil::Merge);
^
In file included from ../src/bufferutil.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
bufferutil.target.mk:97: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-29-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN install:bufferutil@1.1.0 bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.1.0 Exit status 1
> utf-8-validate@1.1.0 install /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../../nan/nan.h:82:0,
from ../src/validation.cc:15:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Int32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:34:64: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
^
In file included from ../src/validation.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9796:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
In file included from ../../nan/nan.h:82:0,
from ../src/validation.cc:15:
../../nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Uint32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
../../nan/nan_new.h:39:65: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
^
In file included from ../src/validation.cc:7:0:
/usr/include/nodejs/deps/v8/include/v8.h:9790:15: note: declared here
Local<Uint32> Value::ToUint32() const {
^~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::BooleanObject>::return_t NanIntern::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:4845:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:
../../nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2681:21: note: declared here
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)’:
../../nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:2719:38: note: declared here
Local<String> NewExternal(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:237:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:244:30: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1405:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘bool NanIdleNotification(int)’:
../../nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:7482:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:473:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:484:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
../../nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../../nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:570:42: error: ‘data’ was not declared in this scope
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^~~~
../../nan/nan.h: At global scope:
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../../nan/nan.h:665:50: note: suggested alternative: ‘calloc’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
calloc
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../../nan/nan.h:665:60: note: suggested alternative: ‘uint’
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
uint
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/validation.cc:10:0:
/usr/include/nodejs/src/node_buffer.h:67:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:26: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan.h:710:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../../nan/nan.h:717:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26:0,
from ../src/validation.cc:7:
/usr/include/nodejs/deps/v8/include/v8.h:1425:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/usr/include/nodejs/deps/v8/include/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/validation.cc: In static member function ‘static void Validation::Initialize(v8::Handle<v8::Object>)’:
../src/validation.cc:112:62: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [12], void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’ is ambiguous
NODE_SET_METHOD(t, "isValidUTF8", Validation::IsValidUTF8);
^
In file included from ../src/validation.cc:8:0:
/usr/include/nodejs/src/node.h:278:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Template>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:291:13: note: candidate: void node::NODE_SET_METHOD(v8::Local<v8::Object>, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^~~~~~~~~~~~~~~
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:83:7: note: here
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:84:7: note: here
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:85:7: note: here
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:86:7: note: here
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:86:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:87:7: note: here
case 0 : ch += (uint8_t) value[i];
^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:52:3: note: here
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:52:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:53:3: note: here
case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
^~~~
../src/validation.cc:60:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
default: if (a < 0x80) return 0;
^~
../src/validation.cc:63:3: note: here
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
^~~~
validation.target.mk:97: recipe for target 'Release/obj.target/validation/src/validation.o' failed
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-29-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN install:utf-8-validate@1.1.0 utf-8-validate@1.1.0 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.1.0 Exit status 1
npm WARN nodejs_zb_gateway@1.0.0 No repository field.
SUCCESS: Installed all Node Modules Successfully
/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source
Make build_all executable
SUCCESS: build_all script is now executable
Make scripts/ executable
SUCCESS: scripts/ folder is now executable
Run ./build_all
./package_builder: line 22: svnversion: command not found
SVN Version =
Main project\'s base directory: GATEWAY=/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source (leave blank to use the detault)
Project output subdirectory: PKGS_OUTPUT_DIR=/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out (leave blank to use the detault)
Building RUNTIME package for x86 platform
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
rm -f project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING NPI SERVER FOR x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
Compiling ipclib/server/npi_lnx_ipc.c ...
Compiling ipclib/server/npi_lnx_uart.c ...
Compiling ipclib/server/npi_lnx_spi.c ...
Compiling ipclib/server/npi_lnx_i2c.c ...
Compiling ipclib/server/hal_gpio.c ...
Compiling ipclib/server/hal_i2c.c ...
Compiling ../../../../srvwrapper/trace.c ...
Compiling ipclib/server/hal_spi.c ...
Compiling ../../../../srvwrapper/configparser.c ...
Building target out/NPI_lnx_x86_server ...
********************************************************
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
Cleaning up osal_zstack_server_znp.o ../source/zmain.o znp_af.o znp_misc.o znp_zdo.o ../zstackpb/zstack.pb-c.o ../zstackpb/zstackpb.o ../srvwrapper/api_client.o ../srvwrapper/trace.o ../srvwrapper/main.o ../srvwrapper/api_server.o ../srvwrapper/configparser.o ../linux_osal/common/OSAL_Memory.o ../linux_osal/common/OSAL_PwrMgr.o ../linux_osal/common/OSAL_Timers.o ../linux_osal/common/OSAL.o ../../../../Components/services/saddr/saddr.o ../source/OnBoard.o ../hal/hal_timer.o ../source/pb_utils.o ../zstackserverznp/zstack_pb_ctrl.o out/*
********************************************************
Building ZLSZNP_x86
Compiler: gcc
Targer platform: x86
********************************************************
Compiling osal_zstack_server_znp.c
Compiling ../source/zmain.c
Compiling znp_af.c
znp_af.c: In function ‘sendGpSecRsp’:
znp_af.c:525:14: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
afStatus_t status;
^~~~~~
Compiling znp_misc.c
znp_misc.c: In function ‘processAFIncomingMsgInd’:
znp_misc.c:706:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
leftover = (uint32)pPtr % 4;
^
Compiling znp_zdo.c
Compiling ../zstackpb/zstack.pb-c.c
Compiling ../zstackpb/zstackpb.c
Compiling ../srvwrapper/api_client.c
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/trace.c
Compiling ../srvwrapper/main.c
Compiling ../srvwrapper/api_server.c
Compiling ../srvwrapper/configparser.c
Compiling ../linux_osal/common/OSAL_Memory.c
Compiling ../linux_osal/common/OSAL_PwrMgr.c
Compiling ../linux_osal/common/OSAL_Timers.c
../linux_osal/common/OSAL_Timers.c: In function ‘osal_start_timerEx’:
../linux_osal/common/OSAL_Timers.c:278:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_start_reload_timer’:
../linux_osal/common/OSAL_Timers.c:344:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_stop_timerEx’:
../linux_osal/common/OSAL_Timers.c:412:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_timer_num_active’:
../linux_osal/common/OSAL_Timers.c:456:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
Compiling ../linux_osal/common/OSAL.c
../linux_osal/common/OSAL.c: In function ‘osal_msg_receive’:
../linux_osal/common/OSAL.c:515:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_find’:
../linux_osal/common/OSAL.c:592:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_enqueue’:
../linux_osal/common/OSAL.c:630:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_dequeue’:
../linux_osal/common/OSAL.c:670:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_push’:
../linux_osal/common/OSAL.c:705:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_extract’:
../linux_osal/common/OSAL.c:734:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_enqueue_max’:
../linux_osal/common/OSAL.c:774:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_set_event’:
../linux_osal/common/OSAL.c:827:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_clear_event’:
../linux_osal/common/OSAL.c:860:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_run_system’:
../linux_osal/common/OSAL.c:1040:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
Compiling ../../../../Components/services/saddr/saddr.c
Compiling ../source/OnBoard.c
Compiling ../hal/hal_timer.c
Compiling ../source/pb_utils.c
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c
Linking ZLSZNP_x86
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.so when searching for -lprotobuf-c
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.a when searching for -lprotobuf-c
/usr/bin/ld: cannot find -lprotobuf-c
collect2: error: ld returned 1 exit status
Makefile:121: recipe for target 'ZLSZNP_x86' failed
make: *** [ZLSZNP_x86] Error 1
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr'
Compiling ../srvepconfig/serverep.c ...
Compiling nwkmgrsrv.c ...
Compiling nwkmgrdatabase.c ...
Compiling ../srvwrapper/trace.c ...
Compiling ../sdb/SimpleDB.c ...
Compiling ../sdb/SimpleDBTxt.c ...
Compiling nwkmgrservices.c ...
Compiling nwkmgrp2p.c ...
Compiling nwkmgr.pb-c.c ...
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/main.c ...
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Building target out/NWKMGR_SRVR_x86 ...
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.so when searching for -lprotobuf-c
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.a when searching for -lprotobuf-c
/usr/bin/ld: cannot find -lprotobuf-c
collect2: error: ld returned 1 exit status
Makefile:180: recipe for target 'out/NWKMGR_SRVR_x86' failed
make[1]: *** [out/NWKMGR_SRVR_x86] Error 1
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr'
Makefile:125: recipe for target 'arch-all-x86' failed
make: *** [arch-all-x86] Error 2
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway'
Compiling ../srvepconfig/serverep.c ...
Compiling gatewaysrvr.c ...
gatewaysrvr.c: In function ‘processGwGetDeviceAttributeListReq’:
gatewaysrvr.c:2686:56: warning: passing argument 5 of ‘gwServices_ConvertPbClusterList’ from incompatible pointer type [-Wincompatible-pointer-types]
&attrListRsp.n_clusterlist );
^
In file included from gatewaysrvr.c:53:0:
gatewayservices.h:140:26: note: expected ‘uint32 * {aka unsigned int *}’ but argument is of type ‘size_t * {aka long unsigned int *}’
extern GwClusterListT ** gwServices_ConvertPbClusterList( int attrCount, zclAttrRec_t *pAttrRecord,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling ../srvwrapper/trace.c ...
Compiling gatewayservices.c ...
Compiling ../serverpb/gatewayp2p.c ...
Compiling gateway.pb-c.c ...
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/main.c ...
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ../../../../Components/stack/gp/gp_common.c ...
Compiling ../../../../Components/stack/gp/gp_proxyTbl.c ...
Compiling ../../../../Components/stack/zcl/zcl_green_power.c ...
Compiling ../../../../Components/stack/zcl/zcl_general.c ...
Compiling ../../../../Components/stack/zcl/zcl_poll_control.c ...
Compiling ../../../../Components/stack/zcl/zcl_lighting.c ...
Compiling ../../../../Components/stack/zcl/zcl_closures.c ...
Compiling ../../../../Components/stack/zcl/zcl_hvac.c ...
Compiling ../../../../Components/stack/zcl/zcl_ss.c ...
Compiling ../../../../Components/stack/zcl/zcl.c ...
Compiling aps_groups.c ...
Compiling zcl_port.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../hagateway/gateway_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr.pb-c.c ...
Building target out/GATEWAY_SRVR_x86 ...
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.so when searching for -lprotobuf-c
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.a when searching for -lprotobuf-c
/usr/bin/ld: cannot find -lprotobuf-c
collect2: error: ld returned 1 exit status
Makefile:194: recipe for target 'out/GATEWAY_SRVR_x86' failed
make[1]: *** [out/GATEWAY_SRVR_x86] Error 1
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway'
Makefile:147: recipe for target 'arch-all-x86' failed
make: *** [arch-all-x86] Error 2
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
export ARCH=x86
make[1]: Entering directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver'
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../../../../Components/stack/zcl/zcl_general.c ...
Compiling ../../../../Components/stack/zcl/zcl.c ...
Compiling zcl_ota.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/main.c ...
Compiling zcl_otaserver_lnx.c ...
Compiling OtaServer.c ...
Compiling OtaServer_db.c ...
Compiling ../sdb/SimpleDB.c ...
Compiling ../sdb/SimpleDBTxt.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ota_common.c ...
Compiling otasrvr.c ...
Compiling otasrvr.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/trace.c ...
Compiling ../serverpb/gatewayp2p.c ...
Compiling zcl_port.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemId, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../otaserver/otasrvr_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr.pb-c.c ...
Building target out/OTA_SRVR_x86 ...
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.so when searching for -lprotobuf-c
/usr/bin/ld: skipping incompatible ../protobuf-c/lib/x86/libprotobuf-c.a when searching for -lprotobuf-c
/usr/bin/ld: cannot find -lprotobuf-c
collect2: error: ld returned 1 exit status
Makefile:186: recipe for target 'out/OTA_SRVR_x86' failed
make[1]: *** [out/OTA_SRVR_x86] Error 1
make[1]: Leaving directory '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver'
Makefile:127: recipe for target 'arch-all-x86' failed
make: *** [arch-all-x86] Error 2
Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -f main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -rf ./out
rm -f project_file_list.txt
VPATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver:./../../source:./../../srvwrapper
********************************************************
Check existance of output folder
if test ! -d ./out; then mkdir ./out; fi
Compiling ./../framework/polling.c into polling.o
Compiling ./../framework/timer_utils.c into timer_utils.o
Compiling ./../framework/socket_interface.c into socket_interface.o
In file included from ./../framework/socket_interface.c:51:0:
./../framework/socket_interface.c: In function ‘si_register_idle_callback’:
./../framework/socket_interface.c:159:94: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:159:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^~~~~~~~~~~~
./../framework/socket_interface.c:159:108: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:159:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (int)IDLE_CB_ARG);
^~~~~~~~~~~~
./../framework/socket_interface.c:163:98: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("ERROR: Failed to create new idle_cb entry (#%d) for func (%08x)", idle_cb_count, (int)IDLE_CB);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:163:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("ERROR: Failed to create new idle_cb entry (#%d) for func (%08x)", idle_cb_count, (int)IDLE_CB);
^~~~~~~~~~~~
./../framework/socket_interface.c: In function ‘si_unregister_idle_callback’:
./../framework/socket_interface.c:174:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
UI_PRINT_LOG("Unregistering state machine (%08x)", (int)IDLE_CB);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while (0)
^~~~~~~~~~~
./../framework/socket_interface.c:174:2: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Unregistering state machine (%08x)", (int)IDLE_CB);
^~~~~~~~~~~~
Compiling ./../framework/tcp_client.c into tcp_client.o
Compiling ./../framework/user_interface.c into user_interface.o
./../framework/user_interface.c: In function ‘ui_redraw_actions’:
./../framework/user_interface.c:2386:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
printf("%s[%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s:%03d] ", (i == current_action ? LIGHT_YELLOW : DARK_YELLOW), strchr(ACTION_NAMES[i],'&') - ACTION_NAMES[i], ACTION_NAMES[i], strchr(ACTION_NAMES[i],'&')[1], strchr(ACTION_NAMES[i],'&') + 2, action_value[i]);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../framework/user_interface.c:2389:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
printf("%s[%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s] ", (i == current_action ? LIGHT_YELLOW : DARK_YELLOW), strchr(ACTION_NAMES[i],'&') - ACTION_NAMES[i], ACTION_NAMES[i], strchr(ACTION_NAMES[i],'&')[1], strchr(ACTION_NAMES[i],'&') + 2);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../framework/user_interface.c:2396:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
printf("%s%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s",
~~^~
./../framework/user_interface.c:2398:7:
strchr(ACTION_SUBNAMES[i][j],'&') - ACTION_SUBNAMES[i][j],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling ./../framework/data_structures.c into data_structures.o
Compiling ./../engines/network_info_engine.c into network_info_engine.o
Compiling ./../engines/device_list_engine.c into device_list_engine.o
Compiling ./../engines/sensor_engine.c into sensor_engine.o
In file included from ../framework/user_interface.h:51:0,
from ./../engines/sensor_engine.c:50:
./../engines/sensor_engine.c: In function ‘snsr_process_zone_status_change_ind’:
./../engines/sensor_engine.c:355:26: warning: format ‘%LX’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(log_string, "addr = %08LX,", msg->srcaddress->ieeeaddr);
^ ~~~~~~~~~~~~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_ARGS__)
^~~~~~
Compiling ./../engines/state_reflector.c into state_reflector.o
Compiling ./../engines/attribute_engine.c into attribute_engine.o
./../engines/attribute_engine.c: In function ‘attr_write_response_indication_handler’:
./../engines/attribute_engine.c:269:77: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
tu_set_timer(&identify_timer, 1000, true, attr_identify_timer_handler, (void *)msg->srcaddress->endpointid);
^
./../engines/attribute_engine.c: In function ‘attr_identify_timer_handler’:
./../engines/attribute_engine.c:944:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
uint8_t endpoint = (uint8_t)(uint32_t)arg;
^
Compiling ./../engines/actions_engine.c into actions_engine.o
Compiling ./../engines/commissioning_engine.c into commissioning_engine.o
Compiling ./../engines/system_engine.c into system_engine.o
Compiling ./../engines/ota_engine.c into ota_engine.o
./../engines/ota_engine.c: In function ‘upgrade_apply_image_cnf’:
./../engines/ota_engine.c:322:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int index = (int )cbarg;
^
./../engines/ota_engine.c: In function ‘upgrade_process_regis_cnf’:
./../engines/ota_engine.c:361:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int index = (int )cbarg;
^
./../engines/ota_engine.c: In function ‘register_single_file’:
./../engines/ota_engine.c:481:85: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (si_send_packet(pkt, (confirmation_processing_cb_t)&upgrade_process_regis_cnf, (void *)i) != 0)
^
Compiling ./../../nwkmgr/nwkmgr.pb-c.c into nwkmgr.pb-c.o
Compiling ./../../hagateway/gateway.pb-c.c into gateway.pb-c.o
Compiling ./../../otaserver/otasrvr.pb-c.c into otasrvr.pb-c.o
Compiling ./../engines/group_scene_engine.c into group_scene_engine.o
Compiling ./../framework/macros.c into macros.o
Compiling ./../../nwkmgr/nwkmgr_pb_ctrl.c into nwkmgr_pb_ctrl.o
Compiling ./../../hagateway/gateway_pb_ctrl.c into gateway_pb_ctrl.o
Compiling ./../../otaserver/otasrvr_pb_ctrl.c into otasrvr_pb_ctrl.o
Building main.bin...
gcc: error: main.o: No such file or directory
gcc: error: pb_utils.o: No such file or directory
gcc: error: trace.o: No such file or directory
gcc: error: configparser.o: No such file or directory
makefile:37: recipe for target 'main.bin' failed
make: *** [main.bin] Error 1
rm -rf *.o sbl_tool.bin
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c
In file included from ../Source/zbSocCmd.c:60:0:
../Source/zbSocCmd.c: In function ‘config_read_pair’:
../Source/zbSocCmd.c:606:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
debug_printf("config_read_pair: section=%s, context=%u\n", section, (unsigned int)context);
^
../Source/zbSocCmd.h:100:67: note: in definition of macro ‘debug_printf’
#define debug_printf(...) do {if (uartDebugPrintsEnabled) {printf(__VA_ARGS__);}} while (0)
^~~~~~~~~~~
../Source/zbSocCmd.c:611:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
debug_printf("config_read_pair: seeking to: %d\n", *context);
^ ~~
../Source/zbSocCmd.h:100:67: note: in definition of macro ‘debug_printf’
#define debug_printf(...) do {if (uartDebugPrintsEnabled) {printf(__VA_ARGS__);}} while (0)
^~~~~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransportUart.c
../Source/zbSocTransportUart.c: In function ‘zbSocTransportWrite’:
../Source/zbSocTransportUart.c:72:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ssize_t {aka long int}’ [-Wformat=]
printf("write=%d\n",write((fd),(rpcBuff),(rpcLen))); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/zbSocTransportUart.c:173:2: note: in expansion of macro ‘socWrite’
socWrite(serialPortFd, buf, len);
^~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o sbl_tool.bin
rm -rf *.o gw_soc_fw_version_query.bin
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransportUart.c
../Source/zbSocTransportUart.c: In function ‘zbSocTransportWrite’:
../Source/zbSocTransportUart.c:72:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ssize_t {aka long int}’ [-Wformat=]
printf("write=%d\n",write((fd),(rpcBuff),(rpcLen))); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/zbSocTransportUart.c:178:2: note: in expansion of macro ‘socWrite’
socWrite(serialPortFd, buf, len);
^~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o gw_soc_fw_version_query.bin
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/zstackserverznp/ZLSZNP_x86': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_x86': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_x86': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver/out/OTA_SRVR_x86': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/demo/project/main.bin': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_hold': No such file or directory
cp: cannot stat '/home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_release': No such file or directory
Package verification results:
ERROR: 18 error(s) occured during make
ERROR: 82 warning(s) occured during make
sort: cannot read: /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_x86.txt: No such file or directory
diff /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/content.txt /home/yk/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/expected_content.txt
1,25d0
< .
< ./content.txt
< ./Precompiled
< ./Precompiled/app
< ./Precompiled/misc
< ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
< ./Precompiled/misc/ota_sample_images
< ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
< ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
< ./Precompiled/protobuf
< ./Precompiled/protobuf/libprotobuf-c.so.0.0.0
< ./Precompiled/servers
< ./Precompiled/servers/config.ini
< ./Precompiled/servers/gateway_config.ini
< ./Precompiled/servers/gateway_config.tlg
< ./Precompiled/servers/NPI_Gateway.cfg
< ./Precompiled/servers/NPI_lnx_x86_server
< ./Precompiled/servers/nwkmgr_config.ini
< ./Precompiled/servers/sample_app_ota.cfg
< ./Precompiled/servers/start_application
< ./Precompiled/servers/track_servers
< ./Precompiled/servers/zigbeeHAgw
< ./Precompiled/tools
< ./Precompiled/tools/gw_soc_fw_version_query.bin
< ./Precompiled/tools/sbl_tool.bin
ERROR: Content verification failed
ERROR: RUNTIME package for x86 creation failed. See details above. Output folder/tar name prefixed with "ERROR_."
SUCCESS: build_all finished.
Entered Precompiled directory.
tar: z-stack_linux_gateway_arm_binaries_.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
app/
misc/
misc/CC2531-GW-ZNP_39203.bin
misc/ota_sample_images/
misc/ota_sample_images/5678-1234-0000BBBB.zigbee
misc/ota_sample_images/5678-1234-0000AAAA.zigbee
protobuf/
protobuf/libprotobuf-c.so.0.0.0
servers/
servers/track_servers
servers/start_application
servers/zigbeeHAgw
servers/NPI_Gateway.cfg
servers/nwkmgr_config.ini
servers/gateway_config.ini
servers/config.ini
servers/NPI_lnx_x86_server
servers/sample_app_ota.cfg
servers/gateway_config.tlg
tools/
tools/sbl_tool.bin
tools/gw_soc_fw_version_query.bin
SUCCESS: Extracted binaries
Entered servers/ directory
Make apps exe, copy protobuf files
SUCCESS: Made servers and applications executable
SUCCESS: Made /tools/ folder executable
Copy Protobuf Files to /usr/lib directory
cp: cannot stat '../protobuf/libprotobuf-c.so.0': No such file or directory
SUCCESS: Copied Protobuf Files
********** SETUP SUCCESSFUL! **********
--------- Getting Started Tips -----------
Navigate to Node Scripts ==> cd Projects/node
Start Linux Zigbee Gateway and Node.js Zigbee Local Gateway ==> sudo ./start_local.sh
Start Linux Zigbee Gateway and Node.js IBM Gateway ==> sudo ./start_ibm.sh
Start Linux Zigbee Gateway Only ==> sudo ./start_gateway.sh
Kill All Gateways ==> sudo ./end.sh
---------------------------------------------
yk@yk-VirtualBox:~/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source$
Hi YiKai,
No. I think "GATEWAY_SRVR_x86 is missing" due to path issue .When increase /Projects/zstack/linux/protobuf-c/lib/x86/, run " ./zigbeeHAgw " reproduce same issue.
I reproduce compiler error like your capture. I think important issue is protobuf version. I try use local compiler path in Makefile.
If I do this successfully, will update in post.