Skip to contentSkip to conversation

drivers/net/i40e on meson build failure with clang13.0 on FreeBSD13.1/64

Bug 1063 [email protected] 1 participant 2 messages Aug 8, 2022 – Aug 24, 2022

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 1063
           Summary: [19.11.13-rc3] drivers/net/i40e on meson build failure
                    with clang13.0 on FreeBSD13.1/64
           Product: DPDK
           Version: 19.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

[DPDK version]
dpdk stable v19.11.13-rc3

[OS version]
FreeBSD 13.1-RELEASE
clang 13.0.0

[Test Setup]
CC=clang meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static clang-linux-app

ninja -C clang-linux-app

[Error log]
FAILED:
drivers/librte_pmd_failsafe.a.p/meson-generated_.._rte_pmd_failsafe.pmd.c.o clang -Idrivers/librte_pmd_failsafe.a.p -Idrivers -I../drivers -Idrivers/net/failsafe -I../drivers/net/failsafe -Ilib/librte_ethdev -I../lib/librte_ethdev -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 -Ilib/librte_net -I../lib/librte_net -Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool -I../lib/librte_mempool -Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_meter -I../lib/librte_meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/librte_pci -I../lib/librte_pci -Idrivers/bus/vdev -I../drivers/bus/vdev -fcolor-diagnostics -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-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -std=gnu99 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -pedantic -DBSD -DALLOW_EXPERIMENTAL_API -MD -MQ drivers/librte_pmd_failsafe.a.p/meson-generated_.._rte_pmd_failsafe.pmd.c.o -MF drivers/librte_pmd_failsafe.a.p/meson-generated_.._rte_pmd_failsafe.pmd.c.o.d -o drivers/librte_pmd_failsafe.a.p/meson-generated_.._rte_pmd_failsafe.pmd.c.o -c drivers/rte_pmd_failsafe.pmd.c drivers/rte_pmd_failsafe.pmd.c:1:1: error: ISO C requires a translation unit to contain at least one declaration [-Werror,-Wempty-translation-unit] ^
1 error generated.
[692/1594] Compiling C object drivers/libtmp_rte_pmd_fm10k.a.p/net_fm10k_fm10k_ethdev.c.o [693/1594] Compiling C object drivers/net/i40e/base/libi40e_base.a.p/i40e_nvm.c.o
[694/1594] Compiling C object drivers/net/i40e/base/libi40e_base.a.p/i40e_common.c.o
[695/1594] Compiling C object drivers/libtmp_rte_pmd_i40e.a.p/net_i40e_i40e_pf.c.o
[696/1594] Compiling C object drivers/libtmp_rte_pmd_i40e.a.p/net_i40e_i40e_ethdev_vf.c.o [697/1594] Compiling C object drivers/libtmp_rte_pmd_i40e.a.p/net_i40e_i40e_rxtx.c.o
[698/1594] Compiling C object drivers/libtmp_rte_pmd_i40e.a.p/net_i40e_i40e_fdir.c.o
[699/1594] Compiling C object drivers/libtmp_rte_pmd_i40e.a.p/net_i40e_i40e_flow.c.o
[700/1594] Compiling C object drivers/libtmp_rte_pmd_i40e.a.p/net_i40e_i40e_ethdev.c.o
ninja: build stopped

[Bad commit]
This is a problem on a new os
Old OS freebsd13.0 no found meson build error.

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

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

jiang,yu ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |[email protected]

--- Comment #2 from jiang,yu ([email protected]) ---
This issue is caused by a higher version of meson, you need to downgrade the version of meson to the range from 0.47.1 to 0.59.1, 0.59.0 is recommended. Can fix by using matched meson version.

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