From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F2713A034C; Mon, 8 Aug 2022 08:35:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC87C4014F; Mon, 8 Aug 2022 08:35:59 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 68FBB400D7 for ; Mon, 8 Aug 2022 08:35:58 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 48DC5A0540; Mon, 8 Aug 2022 08:35:58 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1064] [19.11.13-rc3] lib/eal make build failed with gcc10.3.0 and clang11.0.1 on FreeBSD13.0/64 Date: Mon, 08 Aug 2022 06:35:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 19.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daxuex.gao@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D1064 Bug ID: 1064 Summary: [19.11.13-rc3] lib/eal make build failed with gcc10.3.0 and clang11.0.1 on FreeBSD13.0/64 Product: DPDK Version: 19.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: daxuex.gao@intel.com Target Milestone: --- [DPDK version] dpdk stable v19.11.13-rc3 [OS version] FreeBSD 13.0-RELEASE gcc10.3.0=20 clang11.0.1 [Test Setup] sed -i -e 's/BNX2X_PMD=3Dn$/BNX2X_PMD=3Dy/' config/common_base sed -i -e 's/PMD_PCAP=3Dn$/PMD_PCAP=3Dy/' config/common_base sed -i -e 's/IGB_UIO=3Dn$/IGB_UIO=3Dy/' config/common_base sed -i -e 's/PMD_QAT_SYM=3Dn$/PMD_QAT_SYM=3Dy/' config/common_base sed -i -e 's/PMD_OPENSSL=3Dn$/PMD_OPENSSL=3Dy/' config/common_base sed -i -e 's/PMD_ISAL=3Dn$/PMD_ISAL=3Dy/' config/common_base sed -i -e 's/PMD_ZLIB=3Dn$/PMD_ZLIB=3Dy/' config/common_base sed -i -e 's/KNI_KMOD=3Dy$/KNI_KMOD=3Dn/' config/common_base gmake -j10 install T=3Dx86_64-native-bsdapp-clang gmake -j10 install T=3Dx86_64-native-bsdapp-gcc gmake -j10 install T=3Dx86_64-native-bsdapp-gcc+shared gmake -j10 install T=3Dx86_64-native-bsdapp-gcc+debug [Error log] /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c: In function 'compute_ctrl_threads_cpuset': /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1497:60: error: macro "CPU_OR" passed 3 arguments, but takes just 2 1497 | RTE_CPU_OR(cpuset, cpuset, &lcore_config[lcore_id].cpuset); | ^ In file included from /usr/include/pthread_np.h:37, -- In file included from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_common.h:28, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_string_fns.h:21, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:19: /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/freebsd/eal/include/rte_os.h:59:20: error: 'CPU_OR' undeclared (first use in this function) 59 | #define RTE_CPU_OR CPU_OR | ^~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1497:3: note: in expansion of macro 'RTE_CPU_OR' -- /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1497:3: note: in expansion of macro 'RTE_CPU_OR' 1497 | RTE_CPU_OR(cpuset, cpuset, &lcore_config[lcore_id].cpuset); | ^~~~~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/freebsd/eal/include/rte_os.h:62:2: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'? 62 | cpu_set_t tmp; \ | ^~~~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1499:2: note: in expansion of macro 'RTE_CPU_NOT' -- from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_common.h:28, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_string_fns.h:21, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:19: /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/freebsd/eal/include/rte_os.h:63:2: error: request for member '__bits' in something not a structure or union 63 | CPU_FILL(&tmp); \ | ^~~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1499:2: note: in expansion of macro 'RTE_CPU_NOT' -- In file included from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_common.h:28, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_string_fns.h:21, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:19: /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/freebsd/eal/include/rte_os.h:64:2: error: implicit declaration of function 'CPU_XOR'; did you mean 'CPU_OR'? [-Werror=3Dimplicit-function-declaration] 64 | CPU_XOR(dst, src, &tmp); \ | ^~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1499:2: note: in expansion of macro 'RTE_CPU_NOT' 1499 | RTE_CPU_NOT(cpuset, cpuset); | ^~~~~~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/freebsd/eal/include/rte_os.h:64:2: error: nested extern declaration of 'CPU_XOR' [-Werror=3Dnested-externs] 64 | CPU_XOR(dst, src, &tmp); \ | ^~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1499:2: note: in expansion of macro 'RTE_CPU_NOT' 1499 | RTE_CPU_NOT(cpuset, cpuset); | ^~~~~~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1505:42: error: macro "CPU_AND" passed 3 arguments, but takes just 2 1505 | RTE_CPU_AND(cpuset, cpuset, &default_set); | ^ In file included from /usr/include/pthread_np.h:37, -- In file included from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_common.h:28, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/x86_64-native-bsdapp-gcc/include/rte_string_fns.h:21, from /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:19: /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/freebsd/eal/include/rte_os.h:58:21: error: 'CPU_AND' undeclared (first use in this function) 58 | #define RTE_CPU_AND CPU_AND | ^~~~~~~ /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/dp= dk/lib/librte_eal/common/eal_common_options.c:1505:2: note: in expansion of macro 'RTE_CPU_AND' 1505 | RTE_CPU_AND(cpuset, cpuset, &default_set); | ^~~~~~~~~~~ cc1: all warnings being treated as errors gmake[7]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/internal/rte.compile-pre.mk:116: eal_common_options.o] Error 1 gmake[7]: *** Waiting for unfinished jobs.... gmake[6]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.subdir.mk:37: eal] Error 2 gmake[5]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.subdir.mk:37: freebsd] Error 2 gmake[4]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.subdir.mk:37: librte_eal] Error 2 gmake[3]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.sdkbuild.mk:48: lib] Error 2 gmake[2]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.sdkroot.mk:99: all] Error 2 gmake[1]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.sdkinstall.mk:61: pre_install] Error 2 gmake: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/20220805145143/d= pdk/mk/rte.sdkroot.mk:77: install] Error 2 [Bad commit] commit 6e9e78dbbd2a28880f77b3ad47edebe5d3c7621e (HEAD) Author: Bruce Richardson Date: Thu Jul 28 12:37:50 2022 +0100 eal/freebsd: fix use of newer cpuset macros FreeBSD has updated its CPU macros to align more with the definitions used on Linux[1]. Unfortunately, while this makes compatibility better in future, it means we need to have both legacy and newer definition support. Use a meson check to determine which set of macros are used. [1] https://cgit.freebsd.org/src/commit/?id=3De2650af157bc Bugzilla ID: 1014 Fixes: c3568ea37670 ("eal: restrict control threads to startup CPU affinity") Fixes: b6be16acfeb1 ("eal: fix control thread affinity with --lcores") Signed-off-by: David Marchand Signed-off-by: Bruce Richardson This in new os freebsd13.1 no problem. --=20 You are receiving this mail because: You are the assignee for the bug.=