DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1014] [dpdk22.07-*] /lib/eal meson build failed with gcc10.3.0 and clang13.0.0 on FreeBSD13.1/64
@ 2022-05-19  8:08 bugzilla
  2022-05-30  5:21 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-05-19  8:08 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=1014

            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  

[OS version]
FreeBSD 13.1-RELEASE
GCC10.3.0
ClANG13.0.0

[Test Setup]
### build args
CC=clang meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static clang-linux-app
CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static gcc-linux-app
CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--buildtype=debugoptimized --default-library=static gcc-linux-app
CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib
-Dlibdir=-DRTE_BUILD_SHARED_LIB --default-library=shared 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=always -D_FILE_OFFSET_BITS=64 -Wall
-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-aligned
-Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE
-D__BSD_VISIBLE -fPIC -march=native -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="22.2"'
-DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.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" requires
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 (first
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" requires
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-30  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19  8:08 [Bug 1014] [dpdk22.07-*] /lib/eal meson build failed with gcc10.3.0 and clang13.0.0 on FreeBSD13.1/64 bugzilla
2022-05-30  5:21 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).