Skip to contentSkip to conversation

Meson&Makefile build failed on Freebsd13 with gcc10.3.0&clang11.0.1

Bug 905 [email protected] 1 participant 2 messages Dec 13, 2021 – Jan 4, 2022

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 905
           Summary: [dpdk-19.11.11-rc1]Meson&Makefile build failed on
                    Freebsd13 with gcc10.3.0&clang11.0.1
           Product: DPDK
           Version: 19.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: meson
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

1.DPDK version:
commit 928100dd6d30e733be411380fdb78c68a061936c (HEAD, tag: v19.11.11-rc1, origin/19.11)

Author: Christian Ehrhardt <[email protected]>
Date:   Thu Dec 9 15:33:57 2021 +0100

version: 19.11.11-rc1

2.OS version:
OS: FreeBSD freebsd13-gcc 13.0-RELEASE FreeBSD 13.0-RELEASE
gcc version:gcc (FreeBSD Ports Collection) 10.3.0 clang version: FreeBSD clang version 11.0.1

3.And about "(internal_conf.in_memory)" error, bad commit is "1f3a6bf92333f9c310ba6b7a9ebfc22e0c01b9a0 eal/freebsd: ignore in-memory option" ,other error "lib/librte_eal...",the dpdk 18.11.10 has the same error, Maybe about New OS issue.

4.Meson GCC build error info:

#CC=gcc meson setup build-gcc && ninja -C build-gcc
Found ninja-1.10.2 at /usr/local/bin/ninja
ninja: Entering directory `build-gcc'
[54/1483] Compiling C object lib/librte_eal.a.p/librte_eal_freebsd_eal_eal.c.o
FAILED: lib/librte_eal.a.p/librte_eal_freebsd_eal_eal.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -I. -I.. -Iconfig -I../config -Ilib/librte_eal/common/include -I../lib/librte_eal/common/include -I../lib/librte_eal/freebsd/eal/include -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal/common/include/arch/x86 -I../lib/librte_eal/common/include/arch/x86 -Ilib/librte_eal -I../lib/librte_eal -Ilib/librte_kvargs -I../lib/librte_kvargs -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -include rte_config.h -Wextra -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 -Wno-format-truncation -DRTE_LIBEAL_USE_GETENTROPY -DALLOW_EXPERIMENTAL_API -MD -MQ lib/librte_eal.a.p/librte_eal_freebsd_eal_eal.c.o -MF lib/librte_eal.a.p/librte_eal_freebsd_eal_eal.c.o.d -o lib/librte_eal.a.p/librte_eal_freebsd_eal_eal.c.o -c ../lib/librte_eal/freebsd/eal/eal.c ../lib/librte_eal/freebsd/eal/eal.c: In function 'rte_eal_init':
../lib/librte_eal/freebsd/eal/eal.c:746:6: error: 'internal_conf' undeclared (first use in this function); did you mean 'internal_config'?

  746 |  if (internal_conf.in_memory) {
      |      ^~~~~~~~~~~~~
      |      internal_config

../lib/librte_eal/freebsd/eal/eal.c:746:6: note: each undeclared identifier is reported only once for each function it appears in
[60/1483] Compiling C object lib/librte_eal.a.p/librte_eal_common_eal_common_options.c.o
In file included from ../lib/librte_eal/common/include/rte_common.h:28,

                 from ../lib/librte_eal/common/include/rte_string_fns.h:21,
                 from ../lib/librte_eal/common/eal_common_options.c:19:

../lib/librte_eal/common/eal_common_options.c: In function 'compute_ctrl_threads_cpuset':
../lib/librte_eal/freebsd/eal/include/rte_os.h:35:2: warning: implicit declaration of function 'CPU_NAND'; did you mean 'CPU_AND'? [-Wimplicit-function-declaration]

   35 |  CPU_NAND(&tmp, src); \
      |  ^~~~~~~~
../lib/librte_eal/common/eal_common_options.c:1499:2: note: in expansion of
macro 'RTE_CPU_NOT'
 1499 |  RTE_CPU_NOT(cpuset, cpuset);
      |  ^~~~~~~~~~~
../lib/librte_eal/freebsd/eal/include/rte_os.h:35:2: warning: nested extern
declaration of 'CPU_NAND' [-Wnested-externs]
   35 |  CPU_NAND(&tmp, src); \
      |  ^~~~~~~~
../lib/librte_eal/common/eal_common_options.c:1499:2: note: in expansion of
macro 'RTE_CPU_NOT'
 1499 |  RTE_CPU_NOT(cpuset, cpuset);
      |  ^~~~~~~~~~~

[63/1483] Compiling C object lib/librte_mempool.a.p/librte_mempool_rte_mempool.c.o
ninja: build stopped: subcommand failed.

5.Makefile GCC build error info:

OS: FreeBSD13-64
# /root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/lib/librte_eal/freebsd/eal/eal.c:
In function 'rte_eal_init':
/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/lib/librte_eal/freebsd/eal/eal.c:746:6:
error: 'internal_conf' undeclared (first use in this function); did you mean
'internal_config'?

  746 |  if (internal_conf.in_memory) {
      |      ^~~~~~~~~~~~~
      |      internal_config

/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/lib/librte_eal/freebsd/eal/eal.c:746:6:
note: each undeclared identifier is reported only once for each function it
appears in
gmake[7]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/internal/rte.compile-pre.mk:116:
eal.o] Error 1
gmake[7]: *** Waiting for unfinished jobs....
gmake[6]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.subdir.mk:37:
eal] Error 2
gmake[5]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.subdir.mk:37:
freebsd] Error 2
gmake[4]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.subdir.mk:37:
librte_eal] Error 2
gmake[3]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.sdkbuild.mk:48:
lib] Error 2
gmake[2]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.sdkroot.mk:99:
all] Error 2
gmake[1]: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.sdkinstall.mk:61:
pre_install] Error 2
gmake: *** [/root/FreeBSD13-64_K13_GCC10.3.0/x86_64-native-bsdapp-gcc/24a3f9888f6d4156818db4090c4ba50c/dpdk/mk/rte.sdkroot.mk:77:
install] Error 2

6.Meson and Makefile other build type clang/gcc+debug/gcc_shared error info see attachment.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.