Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/33551 _Compilation issues_ Submitter: Jianfeng Tan Date: Thu, 11 Jan 2018 04:07:33 +0000 DPDK git baseline: Repo:dpdk-next-virtio, Branch:master, CommitID:9158926a0f24e9b8cccfe97211fa72d52a6f6a36 Patch33548-33551 --> compile error Build Summary: 15 Builds Done, 13 Successful, 2 Failures Test environment and configuration as below: OS: FreeBSD10.3_64 Kernel Version:10.3-RELEASE CPU info: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz (2194.97-MHz K8-class CPU) GCC Version:gcc (FreeBSD Ports Collection) 4.8.5 Clang Version:3.4.1 x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc OS: FC24_64 Kernel Version:4.9.13-100.fc24.x86_64 CPU info:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz GCC Version:gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2) Clang Version:3.8.0 x86_64-native-linuxapp-gcc-debug i686-native-linuxapp-gcc x86_64-native-linuxapp-gcc x86_64-native-linuxapp-gcc-shared x86_64-native-linuxapp-clang OS: UB1604_64 Kernel Version:4.4.0-78-generic CPU info:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz GCC Version:gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Clang Version:3.8.0 i686-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc-shared x86_64-native-linuxapp-gcc OS: CentOS7_64 Kernel Version:3.10.0-514.10.2.el7.x86_64 CPU info:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz GCC Version:gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4) Clang Version:3.4.2 i686-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc-shared x86_64-native-linuxapp-gcc Failed Build #1: OS: FreeBSD10.3_64 Target: x86_64-native-bsdapp-clang ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:98:7: note: please include the header or explicitly provide a declaration for 'strncmp' /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:126:2: error: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Werror] strncpy(entry->action_name, action_name, MAX_ACTION_NAME_LEN); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:126:2: note: please include the header or explicitly provide a declaration for 'strncpy' /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:156:2: error: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Werror] memset(&msgh, 0, sizeof(msgh)); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:156:2: note: please include the header or explicitly provide a declaration for 'memset' /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:169:45: error: implicitly declaring library function 'strerror' with type 'char *(int)' [-Werror] RTE_LOG(ERR, EAL, "recvmsg failed, %s\n", strerror(errno)); ^ /home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_log.h:287:32: note: expanded from macro 'RTE_LOG' RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__) ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:169:45: note: please include the header or explicitly provide a declaration for 'strerror' /home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_log.h:287:32: note: expanded from macro 'RTE_LOG' RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__) ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:183:4: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror] memcpy(fds, CMSG_DATA(cmsg), fdsize); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:183:4: note: please include the header or explicitly provide a declaration for 'memcpy' /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:242:23: error: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Werror] mp_sec_sockets[i] = strdup(path); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:242:23: note: please include the header or explicitly provide a declaration for 'strdup' /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:253:8: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror] if (!strcmp(mp_sec_sockets[i], path)) { ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:253:8: note: please include the header or explicitly provide a declaration for 'strcmp' /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:395:2: error: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Werror] strcpy(msg->action_name, act_name); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:395:2: note: please include the header or explicitly provide a declaration for 'strcpy' 9 errors generated. /home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:110: recipe for target 'eal_common_proc.o' failed /home/patchWorkOrg/compilation/mk/rte.subdir.mk:35: recipe for target 'eal' failed /home/patchWorkOrg/compilation/mk/rte.subdir.mk:35: recipe for target 'bsdapp' failed /home/patchWorkOrg/compilation/mk/rte.subdir.mk:35: recipe for target 'librte_eal' failed /home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:48: recipe for target 'lib' failed /home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:100: recipe for target 'all' failed /home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed /home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:79: recipe for target 'install' failed Failed Build #2: OS: FreeBSD10.3_64 Target: x86_64-native-bsdapp-gcc ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'rte_eal_mp_action_register': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:115:6: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] if (strlen(action_name) > MAX_ACTION_NAME_LEN) { ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:126:2: error: implicit declaration of function 'strncpy' [-Werror=implicit-function-declaration] strncpy(entry->action_name, action_name, MAX_ACTION_NAME_LEN); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:126:2: error: incompatible implicit declaration of built-in function 'strncpy' [-Werror] /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'read_msg': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:156:2: error: implicit declaration of function 'memset' [-Werror=implicit-function-declaration] memset(&msgh, 0, sizeof(msgh)); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:156:2: error: incompatible implicit declaration of built-in function 'memset' [-Werror] /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:169:3: error: implicit declaration of function 'strerror' [-Werror=implicit-function-declaration] RTE_LOG(ERR, EAL, "recvmsg failed, %s\n", strerror(errno)); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:169:3: error: nested extern declaration of 'strerror' [-Werror=nested-externs] /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:169:3: error: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Werror=format=] /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:183:4: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration] memcpy(fds, CMSG_DATA(cmsg), fdsize); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:183:4: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'add_sec_proc': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:242:3: error: implicit declaration of function 'strdup' [-Werror=implicit-function-declaration] mp_sec_sockets[i] = strdup(path); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:242:23: error: incompatible implicit declaration of built-in function 'strdup' [-Werror] mp_sec_sockets[i] = strdup(path); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'del_sec_proc': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:253:3: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration] if (!strcmp(mp_sec_sockets[i], path)) { ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'open_unix_fd': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:313:2: error: incompatible implicit declaration of built-in function 'memset' [-Werror] memset(&un, 0, sizeof(un)); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:319:3: error: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Werror=format=] RTE_LOG(ERR, EAL, "failed to bind %s: %s\n", ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'rte_eal_mp_channel_init': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:356:3: error: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Werror=format=] RTE_LOG(ERR, EAL, "failed to create mp handle thead: %s\n", ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'format_msg': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:394:2: error: incompatible implicit declaration of built-in function 'memset' [-Werror] memset(msg, 0, len_msg); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:395:2: error: implicit declaration of function 'strcpy' [-Werror=implicit-function-declaration] strcpy(msg->action_name, act_name); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:395:2: error: incompatible implicit declaration of built-in function 'strcpy' [-Werror] /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:399:2: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] memcpy(msg->params, p, len_params); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'send_msg': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:414:2: error: incompatible implicit declaration of built-in function 'memset' [-Werror] memset(&dst, 0, sizeof(dst)); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:435:2: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] memcpy(CMSG_DATA(cmsg), fds, fd_size); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:442:3: error: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Werror=format=] RTE_LOG(ERR, EAL, "failed to send msg: %s\n", strerror(errno)); ^ /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c: In function 'rte_eal_mp_request': /home/patchWorkOrg/compilation/lib/librte_eal/common/eal_common_proc.c:599:4: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] memcpy(params, hdr->params, len_p); ^ cc1: all warnings being treated as errors /home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:110: recipe for target 'eal_common_proc.o' failed /home/patchWorkOrg/compilation/mk/rte.subdir.mk:35: recipe for target 'eal' failed /home/patchWorkOrg/compilation/mk/rte.subdir.mk:35: recipe for target 'bsdapp' failed /home/patchWorkOrg/compilation/mk/rte.subdir.mk:35: recipe for target 'librte_eal' failed /home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:48: recipe for target 'lib' failed /home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:100: recipe for target 'all' failed /home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed /home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:79: recipe for target 'install' failed DPDK STV team