* [dpdk-test-report] |FAILURE| pw(111233) sid(22967) job(PER_PATCH_BUILD2460)[v2] raw/afu_mf: introduce AFU MF device driver
@ 2022-05-18 2:35 sys_stv
0 siblings, 0 replies; only message in thread
From: sys_stv @ 2022-05-18 2:35 UTC (permalink / raw)
To: test-report, wei.huang
[-- Attachment #1: Type: text/plain, Size: 74510 bytes --]
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/111233
_Compilation issues_
Submitter: Wei Huang <wei.huang@intel.com>
Date: 2022-05-17 07:34:10
Reply_mail: <1652772850-10253-1-git-send-email-wei.huang@intel.com>
DPDK git baseline: Repo:dpdk, CommitID: 18ca4a4ec73a2e28df45a10543b7cdd45f2801dd
Meson Build Summary: 21 Builds Done, 15 Successful, 6 Failures, 0 Blocked
+--------------+------------+--------------+------------+------------+-----------+----------+------------+
| os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte |
+--------------+------------+--------------+------------+------------+-----------+----------+------------+
| FC36-64 | | pass | | | | | |
| FreeBSD13-64 | fail | fail | | fail | fail | | |
| RHEL86-64 | pass | pass | | pass | pass | | |
| SUSE15-64 | pass | pass | | | | | |
| UB2004-32 | fail | | | | | | |
| UB2004-64 | pass | pass | | | | pass | |
| UB2204-32 | fail | | | | | | |
| UB2204-64 | pass | pass | | | | pass | pass |
| CentOS79-64 | pass | | | | | | |
+--------------+------------+--------------+------------+------------+-----------+----------+------------+
Comments:
Because of DPDK bug (https://bugs.dpdk.org/show_bug.cgi?id=928),
All the dpdk-next-* branch add `Ddisable_drivers=event/cnxk` option when build with ICC complier.
Test environment and configuration as below:
OS: FC36-64
Kernel Version: 5.17.7-300.fc36.x86_64
GCC Version: gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1)
Clang Version: 14.0.0 (Fedora 14.0.0-1.fc36)
x86_64-native-linuxapp-clang
OS: FreeBSD13-64
Kernel Version: 13.0-RELEASE
GCC Version: gcc (FreeBSD Ports Collection) 10.3.0
Clang Version: 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
x86_64-native-bsdapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc+shared
x86_64-native-bsdapp-gcc+debug
OS: RHEL86-64
Kernel Version: 4.18.0-372.9.1.el8.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-13)
Clang Version: 14.0.0 (Red Hat 14.0.0-1.module_el8.7.0+1142+5343df54)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc+shared
x86_64-native-linuxapp-gcc+debug
OS: SUSE15-64
Kernel Version: 5.3.18-57-default
GCC Version: gcc (SUSE Linux) 7.5.0
Clang Version: 11.0.1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
OS: UB2004-32
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
Clang Version: 10.0.0-4ubuntu1
i686-native-linuxapp-gcc
OS: UB2004-64
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
Clang Version: 10.0.0-4ubuntu1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-doc
OS: UB2204-32
Kernel Version: 5.15.0-25-generic
GCC Version: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang Version: NA
i686-native-linuxapp-gcc
OS: UB2204-64
Kernel Version: 5.15.0-25-generic
GCC Version: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang Version: 14.0.0-1ubuntu1
x86_64-native-linuxapp-gcc+16byte
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-doc
OS: CentOS79-64
Kernel Version: 3.10.0-1160.el7.x86_64
GCC Version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Clang Version: 3.4.2 (tags/RELEASE_34/dot2-final)
x86_64-native-linuxapp-gcc
*Build Failed #1:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-gcc
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -c ../drivers/raw/afu_mf/afu_mf_rawdev.c
In file included from ../drivers/raw/afu_mf/afu_mf_rawdev.c:21:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/afu_mf_rawdev.c:15:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
cc1: all warnings being treated as errors
[1435/2073] Generating rte_raw_afu_mf_def with a custom command
[1436/2073] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_ethdev.c.o
[1437/2073] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -c ../drivers/raw/afu_mf/n3000_afu.c
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/n3000_afu.c:16:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
../drivers/raw/afu_mf/n3000_afu.c: In function 'poll_interrupt':
../drivers/raw/afu_mf/n3000_afu.c:691:10: error: 'ETIME' undeclared (first use in this function)
691 | ret = -ETIME;
| ^~~~~
../drivers/raw/afu_mf/n3000_afu.c:691:10: note: each undeclared identifier is reported only once for each function it appears in
../drivers/raw/afu_mf/n3000_afu.c: In function 'dma_afu_set_irqs':
../drivers/raw/afu_mf/n3000_afu.c:1482:13: error: invalid application of 'sizeof' to incomplete type 'struct vfio_irq_set'
1482 | sz = sizeof(*irq_set) + sizeof(*efds) * count;
| ^
../drivers/raw/afu_mf/n3000_afu.c:1487:9: error: invalid use of undefined type 'struct vfio_irq_set'
1487 | irq_set->argsz = (uint32_t)sz;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1488:9: error: invalid use of undefined type 'struct vfio_irq_set'
1488 | irq_set->count = count;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1489:9: error: invalid use of undefined type 'struct vfio_irq_set'
1489 | irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1489:19: error: 'VFIO_IRQ_SET_DATA_EVENTFD' undeclared (first use in this function)
1489 | irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1490:3: error: 'VFIO_IRQ_SET_ACTION_TRIGGER' undeclared (first use in this function)
1490 | VFIO_IRQ_SET_ACTION_TRIGGER;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1491:9: error: invalid use of undefined type 'struct vfio_irq_set'
1491 | irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1491:19: error: 'VFIO_PCI_MSIX_IRQ_INDEX' undeclared (first use in this function)
1491 | irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
| ^~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1492:9: error: invalid use of undefined type 'struct vfio_irq_set'
1492 | irq_set->start = vec_start;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1494:21: error: invalid use of undefined type 'struct vfio_irq_set'
1494 | rte_memcpy(&irq_set->data, efds, sizeof(*efds) * count);
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1495:27: error: 'VFIO_DEVICE_SET_IRQS' undeclared (first use in this function)
1495 | ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1438/2073] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -c ../drivers/raw/afu_mf/he_lbk.c
In file included from ../drivers/raw/afu_mf/he_lbk.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/he_lbk.c:16:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
cc1: all warnings being treated as errors
[1439/2073] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o -c ../drivers/raw/afu_mf/he_mem.c
In file included from ../drivers/raw/afu_mf/he_mem.c:24:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/he_mem.c:15:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
cc1: all warnings being treated as errors
[1440/2073] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o -c ../drivers/raw/afu_mf/he_hssi.c
In file included from ../drivers/raw/afu_mf/he_hssi.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/he_hssi.c:16:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
../drivers/raw/afu_mf/he_hssi.c: In function 'he_hssi_indirect_write':
../drivers/raw/afu_mf/he_hssi.c:56:11: error: 'ETIME' undeclared (first use in this function)
56 | return -ETIME;
| ^~~~~
../drivers/raw/afu_mf/he_hssi.c:56:11: note: each undeclared identifier is reported only once for each function it appears in
../drivers/raw/afu_mf/he_hssi.c: In function 'he_hssi_indirect_read':
../drivers/raw/afu_mf/he_hssi.c:101:11: error: 'ETIME' undeclared (first use in this function)
101 | return -ETIME;
| ^~~~~
cc1: all warnings being treated as errors
[1441/2073] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o
[1442/2073] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_rxtx.c.o
[1443/2073] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o
ninja: build stopped
*Build Failed #2:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-clang
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o
clang -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -c ../drivers/raw/afu_mf/afu_mf_rawdev.c
In file included from ../drivers/raw/afu_mf/afu_mf_rawdev.c:21:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33:9: error: 'CACHE_LINE_SIZE' macro redefined [-Werror,-Wmacro-redefined]
#define CACHE_LINE_SIZE(n) ((n) << 6)
^
/usr/include/machine/param.h:93:9: note: previous definition is here
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
^
1 error generated.
[1419/2034] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtqueue.c.o
[1420/2034] Linking target drivers/librte_net_ice.so.22.2
[1421/2034] Generating rte_net_txgbe.pmd.c with a custom command
[1422/2034] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o
[1423/2034] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o
clang -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o -c ../drivers/raw/afu_mf/he_mem.c
In file included from ../drivers/raw/afu_mf/he_mem.c:24:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33:9: error: 'CACHE_LINE_SIZE' macro redefined [-Werror,-Wmacro-redefined]
#define CACHE_LINE_SIZE(n) ((n) << 6)
^
/usr/include/machine/param.h:93:9: note: previous definition is here
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
^
1 error generated.
[1424/2034] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o
clang -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -c ../drivers/raw/afu_mf/he_lbk.c
In file included from ../drivers/raw/afu_mf/he_lbk.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33:9: error: 'CACHE_LINE_SIZE' macro redefined [-Werror,-Wmacro-redefined]
#define CACHE_LINE_SIZE(n) ((n) << 6)
^
/usr/include/machine/param.h:93:9: note: previous definition is here
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
^
1 error generated.
[1425/2034] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_ethdev.c.o
[1426/2034] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
clang -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -c ../drivers/raw/afu_mf/n3000_afu.c
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33:9: error: 'CACHE_LINE_SIZE' macro redefined [-Werror,-Wmacro-redefined]
#define CACHE_LINE_SIZE(n) ((n) << 6)
^
/usr/include/machine/param.h:93:9: note: previous definition is here
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
^
../drivers/raw/afu_mf/n3000_afu.c:691:10: error: use of undeclared identifier 'ETIME'
ret = -ETIME;
^
../drivers/raw/afu_mf/n3000_afu.c:1482:13: error: invalid application of 'sizeof' to an incomplete type 'struct vfio_irq_set'
sz = sizeof(*irq_set) + sizeof(*efds) * count;
^~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1487:9: error: incomplete definition of type 'struct vfio_irq_set'
irq_set->argsz = (uint32_t)sz;
~~~~~~~^
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1488:9: error: incomplete definition of type 'struct vfio_irq_set'
irq_set->count = count;
~~~~~~~^
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1489:9: error: incomplete definition of type 'struct vfio_irq_set'
irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
~~~~~~~^
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1489:19: error: use of undeclared identifier 'VFIO_IRQ_SET_DATA_EVENTFD'
irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
^
../drivers/raw/afu_mf/n3000_afu.c:1490:3: error: use of undeclared identifier 'VFIO_IRQ_SET_ACTION_TRIGGER'
VFIO_IRQ_SET_ACTION_TRIGGER;
^
../drivers/raw/afu_mf/n3000_afu.c:1491:9: error: incomplete definition of type 'struct vfio_irq_set'
irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
~~~~~~~^
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1491:19: error: use of undeclared identifier 'VFIO_PCI_MSIX_IRQ_INDEX'
irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
^
../drivers/raw/afu_mf/n3000_afu.c:1492:9: error: incomplete definition of type 'struct vfio_irq_set'
irq_set->start = vec_start;
~~~~~~~^
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1494:21: error: incomplete definition of type 'struct vfio_irq_set'
rte_memcpy(&irq_set->data, efds, sizeof(*efds) * count);
~~~~~~~^
../drivers/raw/afu_mf/n3000_afu.c:1469:9: note: forward declaration of 'struct vfio_irq_set'
struct vfio_irq_set *irq_set = NULL;
^
../drivers/raw/afu_mf/n3000_afu.c:1495:27: error: use of undeclared identifier 'VFIO_DEVICE_SET_IRQS'
ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set);
^
13 errors generated.
[1427/2034] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o
ninja: build stopped
*Build Failed #3:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-gcc+shared
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -c ../drivers/raw/afu_mf/afu_mf_rawdev.c
In file included from ../drivers/raw/afu_mf/afu_mf_rawdev.c:21:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/afu_mf_rawdev.c:15:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
cc1: all warnings being treated as errors
[1441/1936] Linking target drivers/librte_net_sfc.so.22.2
[1442/1936] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtqueue.c.o
[1443/1936] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx_simple_sse.c.o
[1444/1936] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -c ../drivers/raw/afu_mf/n3000_afu.c
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/n3000_afu.c:16:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
../drivers/raw/afu_mf/n3000_afu.c: In function 'poll_interrupt':
../drivers/raw/afu_mf/n3000_afu.c:691:10: error: 'ETIME' undeclared (first use in this function)
691 | ret = -ETIME;
| ^~~~~
../drivers/raw/afu_mf/n3000_afu.c:691:10: note: each undeclared identifier is reported only once for each function it appears in
../drivers/raw/afu_mf/n3000_afu.c: In function 'dma_afu_set_irqs':
../drivers/raw/afu_mf/n3000_afu.c:1482:13: error: invalid application of 'sizeof' to incomplete type 'struct vfio_irq_set'
1482 | sz = sizeof(*irq_set) + sizeof(*efds) * count;
| ^
../drivers/raw/afu_mf/n3000_afu.c:1487:9: error: invalid use of undefined type 'struct vfio_irq_set'
1487 | irq_set->argsz = (uint32_t)sz;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1488:9: error: invalid use of undefined type 'struct vfio_irq_set'
1488 | irq_set->count = count;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1489:9: error: invalid use of undefined type 'struct vfio_irq_set'
1489 | irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1489:19: error: 'VFIO_IRQ_SET_DATA_EVENTFD' undeclared (first use in this function)
1489 | irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1490:3: error: 'VFIO_IRQ_SET_ACTION_TRIGGER' undeclared (first use in this function)
1490 | VFIO_IRQ_SET_ACTION_TRIGGER;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1491:9: error: invalid use of undefined type 'struct vfio_irq_set'
1491 | irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1491:19: error: 'VFIO_PCI_MSIX_IRQ_INDEX' undeclared (first use in this function)
1491 | irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
| ^~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1492:9: error: invalid use of undefined type 'struct vfio_irq_set'
1492 | irq_set->start = vec_start;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1494:21: error: invalid use of undefined type 'struct vfio_irq_set'
1494 | rte_memcpy(&irq_set->data, efds, sizeof(*efds) * count);
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1495:27: error: 'VFIO_DEVICE_SET_IRQS' undeclared (first use in this function)
1495 | ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1445/1936] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_ethdev.c.o
[1446/1936] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_ethdev.c.o
[1447/1936] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_rxtx.c.o
[1448/1936] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o
[1449/1936] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o
ninja: build stopped
*Build Failed #4:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-gcc+debug
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_afu_mf_rawdev.c.o -c ../drivers/raw/afu_mf/afu_mf_rawdev.c
In file included from ../drivers/raw/afu_mf/afu_mf_rawdev.c:21:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/afu_mf_rawdev.c:15:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
cc1: all warnings being treated as errors
[1414/2034] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtqueue.c.o
[1415/2034] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx_simple_sse.c.o
[1416/2034] Generating rte_net_sfc.sym_chk with a custom command (wrapped by meson to capture output)
[1417/2034] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_ethdev.c.o
[1418/2034] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_ethdev.c.o
[1419/2034] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -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 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -c ../drivers/raw/afu_mf/n3000_afu.c
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/afu_mf_rawdev.h:33: error: "CACHE_LINE_SIZE" redefined [-Werror]
33 | #define CACHE_LINE_SIZE(n) ((n) << 6)
|
In file included from /usr/include/sys/param.h:146,
from /usr/include/pthread_np.h:36,
from ../lib/eal/freebsd/include/rte_os.h:17,
from ../lib/eal/include/rte_common.h:28,
from ../lib/eal/include/rte_log.h:25,
from ../lib/eal/include/rte_bus.h:23,
from ../lib/eal/include/rte_eal.h:20,
from ../drivers/raw/afu_mf/n3000_afu.c:16:
/usr/include/machine/param.h:93: note: this is the location of the previous definition
93 | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
|
../drivers/raw/afu_mf/n3000_afu.c: In function 'poll_interrupt':
../drivers/raw/afu_mf/n3000_afu.c:691:10: error: 'ETIME' undeclared (first use in this function)
691 | ret = -ETIME;
| ^~~~~
../drivers/raw/afu_mf/n3000_afu.c:691:10: note: each undeclared identifier is reported only once for each function it appears in
../drivers/raw/afu_mf/n3000_afu.c: In function 'dma_afu_set_irqs':
../drivers/raw/afu_mf/n3000_afu.c:1482:13: error: invalid application of 'sizeof' to incomplete type 'struct vfio_irq_set'
1482 | sz = sizeof(*irq_set) + sizeof(*efds) * count;
| ^
../drivers/raw/afu_mf/n3000_afu.c:1487:9: error: invalid use of undefined type 'struct vfio_irq_set'
1487 | irq_set->argsz = (uint32_t)sz;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1488:9: error: invalid use of undefined type 'struct vfio_irq_set'
1488 | irq_set->count = count;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1489:9: error: invalid use of undefined type 'struct vfio_irq_set'
1489 | irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1489:19: error: 'VFIO_IRQ_SET_DATA_EVENTFD' undeclared (first use in this function)
1489 | irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD |
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1490:3: error: 'VFIO_IRQ_SET_ACTION_TRIGGER' undeclared (first use in this function)
1490 | VFIO_IRQ_SET_ACTION_TRIGGER;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1491:9: error: invalid use of undefined type 'struct vfio_irq_set'
1491 | irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1491:19: error: 'VFIO_PCI_MSIX_IRQ_INDEX' undeclared (first use in this function)
1491 | irq_set->index = VFIO_PCI_MSIX_IRQ_INDEX;
| ^~~~~~~~~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1492:9: error: invalid use of undefined type 'struct vfio_irq_set'
1492 | irq_set->start = vec_start;
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1494:21: error: invalid use of undefined type 'struct vfio_irq_set'
1494 | rte_memcpy(&irq_set->data, efds, sizeof(*efds) * count);
| ^~
../drivers/raw/afu_mf/n3000_afu.c:1495:27: error: 'VFIO_DEVICE_SET_IRQS' undeclared (first use in this function)
1495 | ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1420/2034] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o
[1421/2034] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o
[1422/2034] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_rxtx.c.o
ninja: build stopped
*Build Failed #5:
OS: UB2004-32
Target: i686-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -c ../drivers/raw/afu_mf/he_lbk.c
../drivers/raw/afu_mf/he_lbk.c: In function ‘he_lbk_report’:
../drivers/raw/afu_mf/he_lbk.c:112:41: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
112 | printf("%10u %10u %10u %10u %10u %12lu %7.3f GB/s %7.3f GB/s\n",
| ~~~~^
| |
| long unsigned int
| %12llu
......
115 | ticks, rd_bw / 1e9, wr_bw / 1e9);
| ~~~~~
| |
| uint64_t {aka long long unsigned int}
../drivers/raw/afu_mf/he_lbk.c: In function ‘he_lbk_dump’:
../drivers/raw/afu_mf/he_lbk.c:400:32: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
400 | fprintf(f, "dsm_iova:\t%p\n", (void *)ctx->dsm_iova);
| ^
../drivers/raw/afu_mf/he_lbk.c:402:32: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
402 | fprintf(f, "src_iova:\t%p\n", (void *)ctx->src_iova);
| ^
../drivers/raw/afu_mf/he_lbk.c:404:33: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
404 | fprintf(f, "dest_iova:\t%p\n", (void *)ctx->dest_iova);
| ^
cc1: all warnings being treated as errors
[1685/2495] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_mem.c.o
[1686/2495] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_user_virtio_user_dev.c.o
[1687/2495] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_ethdev.c.o
[1688/2495] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o
[1689/2495] Compiling C object drivers/libtmp_rte_raw_dpaa2_cmdif.a.p/raw_dpaa2_cmdif_dpaa2_cmdif.c.o
[1690/2495] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -c ../drivers/raw/afu_mf/n3000_afu.c
../drivers/raw/afu_mf/n3000_afu.c: In function ‘nlb_afu_report’:
../drivers/raw/afu_mf/n3000_afu.c:103:31: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
103 | printf("%10u %10u %11u %12lu %7.3f GB/s %7.3f GB/s\n", cl,
| ~~~~^
| |
| long unsigned int
| %12llu
104 | stat->num_reads, stat->num_writes, ticks,
| ~~~~~
| |
| uint64_t {aka long long unsigned int}
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_write_unaligned’:
../drivers/raw/afu_mf/n3000_afu.c:401:39: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
401 | rte_memcpy(((char *)(&val)) + shift, (void *)host_addr, count);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_write’:
../drivers/raw/afu_mf/n3000_afu.c:433:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
433 | rte_write32(*(uint32_t *)src, ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c:452:4: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
452 | (uint64_t *)src, size_to_copy);
| ^
../drivers/raw/afu_mf/n3000_afu.c:462:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
462 | rte_write32(*(uint32_t *)src, ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_read_unaligned’:
../drivers/raw/afu_mf/n3000_afu.c:542:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
542 | rte_memcpy((void *)host_addr, ((char *)(&val)) + shift, count);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_read’:
../drivers/raw/afu_mf/n3000_afu.c:570:4: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
570 | *(uint32_t *)dst = rte_read32(ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c:589:4: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
589 | (uint64_t *)dst, size_to_copy);
| ^
../drivers/raw/afu_mf/n3000_afu.c:599:4: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
599 | *(uint32_t *)dst = rte_read32(ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_tx_buf’:
../drivers/raw/afu_mf/n3000_afu.c:901:34: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
901 | rte_memcpy(ctx->dma_buf[chunk], (void *)src, ctx->dma_buf_size);
| ^
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_host_to_fpga’:
../drivers/raw/afu_mf/afu_mf_rawdev.h:19:49: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
19 | rte_log(RTE_LOG_ ## level, afu_mf_pmd_logtype, "%s(): " fmt "\n", \
| ^~~~~~~~
../drivers/raw/afu_mf/afu_mf_rawdev.h:25:2: note: in expansion of macro ‘AFU_MF_PMD_LOG’
25 | AFU_MF_PMD_LOG(DEBUG, fmt, ## args)
| ^~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:923:2: note: in expansion of macro ‘AFU_MF_PMD_DEBUG’
923 | AFU_MF_PMD_DEBUG("0x%"PRIx64" ---> 0x%"PRIx64" (0x%"PRIx64")", src, dst,
| ^~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:969:6: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
969 | (void *)(src + offset),
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_rx_buf’:
../drivers/raw/afu_mf/n3000_afu.c:1027:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1027 | rte_memcpy((void *)(dst +
| ^
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_fpga_to_host’:
../drivers/raw/afu_mf/afu_mf_rawdev.h:19:49: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
19 | rte_log(RTE_LOG_ ## level, afu_mf_pmd_logtype, "%s(): " fmt "\n", \
| ^~~~~~~~
../drivers/raw/afu_mf/afu_mf_rawdev.h:25:2: note: in expansion of macro ‘AFU_MF_PMD_LOG’
25 | AFU_MF_PMD_LOG(DEBUG, fmt, ## args)
| ^~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1061:2: note: in expansion of macro ‘AFU_MF_PMD_DEBUG’
1061 | AFU_MF_PMD_DEBUG("0x%"PRIx64" ---> 0x%"PRIx64" (0x%"PRIx64")", src, dst,
| ^~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1101:15: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1101 | rte_memcpy((void *)(dst +
| ^
../drivers/raw/afu_mf/n3000_afu.c:1124:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1124 | rte_memcpy((void *)(dst + offset),
| ^
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_fpga_to_fpga’:
../drivers/raw/afu_mf/afu_mf_rawdev.h:19:49: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
19 | rte_log(RTE_LOG_ ## level, afu_mf_pmd_logtype, "%s(): " fmt "\n", \
| ^~~~~~~~
../drivers/raw/afu_mf/afu_mf_rawdev.h:25:2: note: in expansion of macro ‘AFU_MF_PMD_LOG’
25 | AFU_MF_PMD_LOG(DEBUG, fmt, ## args)
| ^~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1154:2: note: in expansion of macro ‘AFU_MF_PMD_DEBUG’
1154 | AFU_MF_PMD_DEBUG("0x%"PRIx64" ---> 0x%"PRIx64" (0x%"PRIx64")", src, dst,
| ^~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c: In function ‘sweep_test’:
../drivers/raw/afu_mf/n3000_afu.c:1292:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1292 | dma_buf_ptr = (uint64_t *)((uint64_t)ctx->data_buf + buf_offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘n3000_afu_dump’:
../drivers/raw/afu_mf/n3000_afu.c:1940:33: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1940 | fprintf(f, "dsm_iova:\t%p\n", (void *)ctx->dsm_iova);
| ^
../drivers/raw/afu_mf/n3000_afu.c:1942:33: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1942 | fprintf(f, "src_iova:\t%p\n", (void *)ctx->src_iova);
| ^
../drivers/raw/afu_mf/n3000_afu.c:1944:34: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1944 | fprintf(f, "dest_iova:\t%p\n", (void *)ctx->dest_iova);
| ^
../drivers/raw/afu_mf/n3000_afu.c:1956:35: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1956 | fprintf(f, "magic_iova:\t%p\n", (void *)ctx->magic_iova);
| ^
cc1: all warnings being treated as errors
[1691/2495] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_rxtx.c.o
[1692/2495] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o
[1693/2495] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o
ninja: build stopped
*Build Failed #6:
OS: UB2204-32
Target: i686-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_lbk.c.o -c ../drivers/raw/afu_mf/he_lbk.c
../drivers/raw/afu_mf/he_lbk.c: In function ‘he_lbk_report’:
../drivers/raw/afu_mf/he_lbk.c:112:48: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
112 | printf("%10u %10u %10u %10u %10u %12lu %7.3f GB/s %7.3f GB/s\n",
| ~~~~^
| |
| long unsigned int
| %12llu
......
115 | ticks, rd_bw / 1e9, wr_bw / 1e9);
| ~~~~~
| |
| uint64_t {aka long long unsigned int}
../drivers/raw/afu_mf/he_lbk.c: In function ‘he_lbk_dump’:
../drivers/raw/afu_mf/he_lbk.c:400:39: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
400 | fprintf(f, "dsm_iova:\t%p\n", (void *)ctx->dsm_iova);
| ^
../drivers/raw/afu_mf/he_lbk.c:402:39: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
402 | fprintf(f, "src_iova:\t%p\n", (void *)ctx->src_iova);
| ^
../drivers/raw/afu_mf/he_lbk.c:404:40: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
404 | fprintf(f, "dest_iova:\t%p\n", (void *)ctx->dest_iova);
| ^
cc1: all warnings being treated as errors
[1663/2398] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_he_hssi.c.o
[1664/2398] Compiling C object drivers/libtmp_rte_raw_ntb.a.p/raw_ntb_ntb_hw_intel.c.o
[1665/2398] Compiling C object drivers/libtmp_rte_raw_dpaa2_cmdif.a.p/raw_dpaa2_cmdif_dpaa2_cmdif.c.o
[1666/2398] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_ethdev.c.o
[1667/2398] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o
[1668/2398] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_rxtx.c.o
[1669/2398] Compiling C object drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
FAILED: drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o
gcc -Idrivers/libtmp_rte_raw_afu_mf.a.p -Idrivers -I../drivers -Idrivers/raw/afu_mf -I../drivers/raw/afu_mf -Ilib/rawdev -I../lib/rawdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/ifpga -I../drivers/bus/ifpga -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 -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.afu_mf -MD -MQ drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -MF drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o.d -o drivers/libtmp_rte_raw_afu_mf.a.p/raw_afu_mf_n3000_afu.c.o -c ../drivers/raw/afu_mf/n3000_afu.c
../drivers/raw/afu_mf/n3000_afu.c: In function ‘nlb_afu_report’:
../drivers/raw/afu_mf/n3000_afu.c:103:38: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
103 | printf("%10u %10u %11u %12lu %7.3f GB/s %7.3f GB/s\n", cl,
| ~~~~^
| |
| long unsigned int
| %12llu
104 | stat->num_reads, stat->num_writes, ticks,
| ~~~~~
| |
| uint64_t {aka long long unsigned int}
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_write_unaligned’:
../drivers/raw/afu_mf/n3000_afu.c:401:46: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
401 | rte_memcpy(((char *)(&val)) + shift, (void *)host_addr, count);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_write’:
../drivers/raw/afu_mf/n3000_afu.c:433:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
433 | rte_write32(*(uint32_t *)src, ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c:452:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
452 | (uint64_t *)src, size_to_copy);
| ^
../drivers/raw/afu_mf/n3000_afu.c:462:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
462 | rte_write32(*(uint32_t *)src, ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_read_unaligned’:
../drivers/raw/afu_mf/n3000_afu.c:542:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
542 | rte_memcpy((void *)host_addr, ((char *)(&val)) + shift, count);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘ase_read’:
../drivers/raw/afu_mf/n3000_afu.c:570:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
570 | *(uint32_t *)dst = rte_read32(ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c:589:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
589 | (uint64_t *)dst, size_to_copy);
| ^
../drivers/raw/afu_mf/n3000_afu.c:599:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
599 | *(uint32_t *)dst = rte_read32(ctx->ase_data_addr + offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_tx_buf’:
../drivers/raw/afu_mf/n3000_afu.c:901:41: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
901 | rte_memcpy(ctx->dma_buf[chunk], (void *)src, ctx->dma_buf_size);
| ^
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_host_to_fpga’:
../drivers/raw/afu_mf/afu_mf_rawdev.h:19:56: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
19 | rte_log(RTE_LOG_ ## level, afu_mf_pmd_logtype, "%s(): " fmt "\n", \
| ^~~~~~~~
../drivers/raw/afu_mf/afu_mf_rawdev.h:25:9: note: in expansion of macro ‘AFU_MF_PMD_LOG’
25 | AFU_MF_PMD_LOG(DEBUG, fmt, ## args)
| ^~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:923:9: note: in expansion of macro ‘AFU_MF_PMD_DEBUG’
923 | AFU_MF_PMD_DEBUG("0x%"PRIx64" ---> 0x%"PRIx64" (0x%"PRIx64")", src, dst,
| ^~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:969:41: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
969 | (void *)(src + offset),
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_rx_buf’:
../drivers/raw/afu_mf/n3000_afu.c:1027:44: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1027 | rte_memcpy((void *)(dst +
| ^
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_fpga_to_host’:
../drivers/raw/afu_mf/afu_mf_rawdev.h:19:56: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
19 | rte_log(RTE_LOG_ ## level, afu_mf_pmd_logtype, "%s(): " fmt "\n", \
| ^~~~~~~~
../drivers/raw/afu_mf/afu_mf_rawdev.h:25:9: note: in expansion of macro ‘AFU_MF_PMD_LOG’
25 | AFU_MF_PMD_LOG(DEBUG, fmt, ## args)
| ^~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1061:9: note: in expansion of macro ‘AFU_MF_PMD_DEBUG’
1061 | AFU_MF_PMD_DEBUG("0x%"PRIx64" ---> 0x%"PRIx64" (0x%"PRIx64")", src, dst,
| ^~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1101:36: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1101 | rte_memcpy((void *)(dst +
| ^
../drivers/raw/afu_mf/n3000_afu.c:1124:44: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1124 | rte_memcpy((void *)(dst + offset),
| ^
In file included from ../drivers/raw/afu_mf/n3000_afu.c:25:
../drivers/raw/afu_mf/n3000_afu.c: In function ‘dma_fpga_to_fpga’:
../drivers/raw/afu_mf/afu_mf_rawdev.h:19:56: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
19 | rte_log(RTE_LOG_ ## level, afu_mf_pmd_logtype, "%s(): " fmt "\n", \
| ^~~~~~~~
../drivers/raw/afu_mf/afu_mf_rawdev.h:25:9: note: in expansion of macro ‘AFU_MF_PMD_LOG’
25 | AFU_MF_PMD_LOG(DEBUG, fmt, ## args)
| ^~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c:1154:9: note: in expansion of macro ‘AFU_MF_PMD_DEBUG’
1154 | AFU_MF_PMD_DEBUG("0x%"PRIx64" ---> 0x%"PRIx64" (0x%"PRIx64")", src, dst,
| ^~~~~~~~~~~~~~~~
../drivers/raw/afu_mf/n3000_afu.c: In function ‘sweep_test’:
../drivers/raw/afu_mf/n3000_afu.c:1292:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1292 | dma_buf_ptr = (uint64_t *)((uint64_t)ctx->data_buf + buf_offset);
| ^
../drivers/raw/afu_mf/n3000_afu.c: In function ‘n3000_afu_dump’:
../drivers/raw/afu_mf/n3000_afu.c:1940:47: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1940 | fprintf(f, "dsm_iova:\t%p\n", (void *)ctx->dsm_iova);
| ^
../drivers/raw/afu_mf/n3000_afu.c:1942:47: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1942 | fprintf(f, "src_iova:\t%p\n", (void *)ctx->src_iova);
| ^
../drivers/raw/afu_mf/n3000_afu.c:1944:48: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1944 | fprintf(f, "dest_iova:\t%p\n", (void *)ctx->dest_iova);
| ^
../drivers/raw/afu_mf/n3000_afu.c:1956:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1956 | fprintf(f, "magic_iova:\t%p\n", (void *)ctx->magic_iova);
| ^
cc1: all warnings being treated as errors
[1670/2398] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o
[1671/2398] Compiling C object drivers/libtmp_rte_raw_dpaa2_qdma.a.p/raw_dpaa2_qdma_dpaa2_qdma.c.o
ninja: build stopped
DPDK STV team
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-18 2:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 2:35 [dpdk-test-report] |FAILURE| pw(111233) sid(22967) job(PER_PATCH_BUILD2460)[v2] raw/afu_mf: introduce AFU MF device driver sys_stv
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).