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 67071A0503; Thu, 19 May 2022 10:08:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58E7240222; Thu, 19 May 2022 10:08:17 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id E234D40150 for ; Thu, 19 May 2022 10:08:15 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id BADDAA0505; Thu, 19 May 2022 10:08:15 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1014] [dpdk22.07-*] /lib/eal meson build failed with gcc10.3.0 and clang13.0.0 on FreeBSD13.1/64 Date: Thu, 19 May 2022 08:08:15 +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: unspecified 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=3D1014 Bug ID: 1014 Summary: [dpdk22.07-*] /lib/eal meson build failed with gcc10.3.0 and clang13.0.0 on FreeBSD13.1/64 Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: daxuex.gao@intel.com Target Milestone: --- This is a problem on a new os, no problem on freeBSD13.0 [DPDK Version] dpdk latest code dpdk-next-* and dpdk branch=20=20 [OS version] FreeBSD 13.1-RELEASE GCC10.3.0 ClANG13.0.0 [Test Setup] ### build args CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples= =3Dall --default-library=3Dstatic clang-linux-app CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic gcc-linux-app CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --buildtype=3Ddebugoptimized --default-library=3Dstatic gcc-linux-app CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dlibdir=3D-DRTE_BUILD_SHARED_LIB --default-library=3Dshared gcc-linux-app ### Choose any of the build args above # ninja -C gcc-linux-app [log] [42/2019] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o FAILED: lib/librte_eal.a.p/eal_common_eal_common_options.c.o gcc -Ilib/librte_eal.a.p -Ilib -I../lib -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -W= all -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-align= ed -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION=3D"22.2"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.eal -MD -MQ lib/librte_eal.a.p/eal_common_eal_common_options.c.o -MF lib/librte_eal.a.p/eal_common_eal_common_options.c.o.d -o lib/librte_eal.a.p/eal_common_eal_common_options.c.o -c ../lib/eal/common/eal_common_options.c ../lib/eal/common/eal_common_options.c: In function 'compute_ctrl_threads_cpuset': ../lib/eal/common/eal_common_options.c:1970:60: error: macro "CPU_OR" requi= res 3 arguments, but only 2 given 1970 | RTE_CPU_OR(cpuset, cpuset, &lcore_config[lcore_id].cpuset); | ^ In file included from /usr/include/pthread_np.h:37, from ../lib/eal/freebsd/include/rte_os.h:17, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/include/rte_string_fns.h:21, from ../lib/eal/common/eal_common_options.c:24: /usr/include/sys/cpuset.h:60: note: macro "CPU_OR" defined here 60 | #define CPU_OR(d, s1, s2) __BIT_OR2(CPU_SETSIZE, d, s1, s2) | In file included from ../lib/eal/include/rte_common.h:28, from ../lib/eal/include/rte_string_fns.h:21, from ../lib/eal/common/eal_common_options.c:24: ../lib/eal/freebsd/include/rte_os.h:42:2: error: 'CPU_OR' undeclared (first= use in this function) 42 | CPU_OR(&tmp, src2); \ | ^~~~~~ ../lib/eal/common/eal_common_options.c:1970:3: note: in expansion of macro 'RTE_CPU_OR' 1970 | RTE_CPU_OR(cpuset, cpuset, &lcore_config[lcore_id].cpuset); | ^~~~~~~~~~ ../lib/eal/freebsd/include/rte_os.h:42:2: note: each undeclared identifier = is reported only once for each function it appears in 42 | CPU_OR(&tmp, src2); \ | ^~~~~~ ../lib/eal/common/eal_common_options.c:1970:3: note: in expansion of macro 'RTE_CPU_OR' 1970 | RTE_CPU_OR(cpuset, cpuset, &lcore_config[lcore_id].cpuset); | ^~~~~~~~~~ ../lib/eal/common/eal_common_options.c:1972:28: error: macro "CPU_ANDNOT" requires 3 arguments, but only 2 given 1972 | RTE_CPU_NOT(cpuset, cpuset); | ^ In file included from /usr/include/pthread_np.h:37, from ../lib/eal/freebsd/include/rte_os.h:17, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/include/rte_string_fns.h:21, from ../lib/eal/common/eal_common_options.c:24: /usr/include/sys/cpuset.h:62: note: macro "CPU_ANDNOT" defined here 62 | #define CPU_ANDNOT(d, s1, s2) __BIT_ANDNOT2(CPU_SETSIZE, d, s1, s2) | In file included from ../lib/eal/include/rte_common.h:28, from ../lib/eal/include/rte_string_fns.h:21, from ../lib/eal/common/eal_common_options.c:24: ../lib/eal/freebsd/include/rte_os.h:61:2: error: 'CPU_ANDNOT' undeclared (f= irst use in this function) 61 | CPU_ANDNOT(&tmp, src); \ | ^~~~~~~~~~ ../lib/eal/common/eal_common_options.c:1972:2: note: in expansion of macro 'RTE_CPU_NOT' 1972 | RTE_CPU_NOT(cpuset, cpuset); | ^~~~~~~~~~~ ../lib/eal/common/eal_common_options.c:1978:42: error: macro "CPU_AND" requ= ires 3 arguments, but only 2 given 1978 | RTE_CPU_AND(cpuset, cpuset, &default_set); | ^ In file included from /usr/include/pthread_np.h:37, from ../lib/eal/freebsd/include/rte_os.h:17, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/include/rte_string_fns.h:21, from ../lib/eal/common/eal_common_options.c:24: /usr/include/sys/cpuset.h:61: note: macro "CPU_AND" defined here 61 | #define CPU_AND(d, s1, s2) __BIT_AND2(CPU_SETSIZE, d, s1, s2) | In file included from ../lib/eal/include/rte_common.h:28, from ../lib/eal/include/rte_string_fns.h:21, from ../lib/eal/common/eal_common_options.c:24: ../lib/eal/freebsd/include/rte_os.h:35:2: error: 'CPU_AND' undeclared (first use in this function) 35 | CPU_AND(&tmp, src2); \ | ^~~~~~~ ../lib/eal/common/eal_common_options.c:1978:2: note: in expansion of macro 'RTE_CPU_AND' 1978 | RTE_CPU_AND(cpuset, cpuset, &default_set); | ^~~~~~~~~~~ [51/2019] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o ninja: build stopped: subcommand failed. --=20 You are receiving this mail because: You are the assignee for the bug.=