* FreeBSD 14.0 build failure
@ 2024-01-18 2:28 Stephen Hemminger
2024-01-18 9:35 ` Bruce Richardson
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2024-01-18 2:28 UTC (permalink / raw)
To: Bruce Richardson; +Cc: dev
DPDK will not build on FreeBSD 14.0
[2/2] Generating kernel/freebsd/nic_uio with a custom command
FAILED: kernel/freebsd/nic_uio.ko
/usr/bin/make -f ../kernel/freebsd/BSDmakefile.meson KMOD_OBJDIR=kernel/freebsd KMOD_SRC=../kernel/freebsd/nic_uio/nic_uio.c KMOD=nic_uio 'KMOD_CFLAGS=-I/home/shemminger/dpdk/build -I/home/shemminger/dpdk/config -include rte_config.h' CC=clang
clang -O2 -pipe -include rte_config.h -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/home/shemminger/dpdk/build -I/home/shemminger/dpdk/config -include /home/shemminger/dpdk/build/kernel/freebsd/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD -MF.depend.nic_uio.o -MTnic_uio.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-functi
on -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=gnu99 -c /home/shemminger/dpdk/kernel/freebsd/nic_uio/nic_uio.c -o nic_uio.o
/home/shemminger/dpdk/kernel/freebsd/nic_uio/nic_uio.c:84:81: error: too many arguments provided to function-like macro invocation
DRIVER_MODULE(nic_uio, pci, nic_uio_driver, nic_uio_devclass, nic_uio_modevent, 0);
^
/usr/src/sys/sys/bus.h:832:9: note: macro 'DRIVER_MODULE' defined here
#define DRIVER_MODULE(name, busname, driver, evh, arg) \
^
/home/shemminger/dpdk/kernel/freebsd/nic_uio/nic_uio.c:84:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
DRIVER_MODULE(nic_uio, pci, nic_uio_driver, nic_uio_devclass, nic_uio_modevent, 0);
^
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FreeBSD 14.0 build failure
2024-01-18 2:28 FreeBSD 14.0 build failure Stephen Hemminger
@ 2024-01-18 9:35 ` Bruce Richardson
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2024-01-18 9:35 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: dev
On Wed, Jan 17, 2024 at 06:28:11PM -0800, Stephen Hemminger wrote:
> DPDK will not build on FreeBSD 14.0
>
> [2/2] Generating kernel/freebsd/nic_uio with a custom command
> FAILED: kernel/freebsd/nic_uio.ko
> /usr/bin/make -f ../kernel/freebsd/BSDmakefile.meson KMOD_OBJDIR=kernel/freebsd KMOD_SRC=../kernel/freebsd/nic_uio/nic_uio.c KMOD=nic_uio 'KMOD_CFLAGS=-I/home/shemminger/dpdk/build -I/home/shemminger/dpdk/config -include rte_config.h' CC=clang
> clang -O2 -pipe -include rte_config.h -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/home/shemminger/dpdk/build -I/home/shemminger/dpdk/config -include /home/shemminger/dpdk/build/kernel/freebsd/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD -MF.depend.nic_uio.o -MTnic_uio.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=gnu99 -c /home/shemminger/dpdk/kernel/freebsd/nic_uio/nic_uio.c -o nic_uio.o
> /home/shemminger/dpdk/kernel/freebsd/nic_uio/nic_uio.c:84:81: error: too many arguments provided to function-like macro invocation
> DRIVER_MODULE(nic_uio, pci, nic_uio_driver, nic_uio_devclass, nic_uio_modevent, 0);
> ^
> /usr/src/sys/sys/bus.h:832:9: note: macro 'DRIVER_MODULE' defined here
> #define DRIVER_MODULE(name, busname, driver, evh, arg) \
> ^
> /home/shemminger/dpdk/kernel/freebsd/nic_uio/nic_uio.c:84:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
> DRIVER_MODULE(nic_uio, pci, nic_uio_driver, nic_uio_devclass, nic_uio_modevent, 0);
> ^
Yes. I've sent out a patch last month for this:
https://patches.dpdk.org/project/dpdk/patch/20231219112959.10440-1-bruce.richardson@intel.com/
/Bruce
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-18 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18 2:28 FreeBSD 14.0 build failure Stephen Hemminger
2024-01-18 9:35 ` Bruce Richardson
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).