From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
by inbox.dpdk.org (Postfix) with ESMTP id 6212E43743;
Tue, 19 Dec 2023 08:46:21 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id F28AD40283;
Tue, 19 Dec 2023 08:46:20 +0100 (CET)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id 5198A40265
for ; Tue, 19 Dec 2023 08:46:19 +0100 (CET)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id 2F2E643744; Tue, 19 Dec 2023 08:46:19 +0100 (CET)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1335] [dpdk-24.03-rc0] freebsd/nic_uio meson build error with
clang16.0.6 and gcc12.2.0 on FreeBSD14
Date: Tue, 19 Dec 2023 07:46:18 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: core
X-Bugzilla-Version: 23.11
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daxuex.gao@intel.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: Normal
X-Bugzilla-Assigned-To: dev@dpdk.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
op_sys bug_status bug_severity priority component assigned_to reporter
target_milestone
Message-ID:
Content-Type: multipart/alternative; boundary=17029719780.b9fDdB1.2464568
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
MIME-Version: 1.0
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
--17029719780.b9fDdB1.2464568
Date: Tue, 19 Dec 2023 08:46:18 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
https://bugs.dpdk.org/show_bug.cgi?id=3D1335
Bug ID: 1335
Summary: [dpdk-24.03-rc0] freebsd/nic_uio meson build error
with clang16.0.6 and gcc12.2.0 on FreeBSD14
Product: DPDK
Version: 23.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: daxuex.gao@intel.com
Target Milestone: ---
[git]
# git log -1
commit e5dc404d33ac1c6cea5c62a88489746c5cb5e35e (HEAD, origin/main,
origin/HEAD, main)
Author: Stephen Hemminger
Date: Mon Dec 11 12:17:32 2023 -0800
cryptodev: use a dynamic logtype
The cryptodev logs are all referenced via rte_cryptodev.h,
so make it dynamic there.
Signed-off-by: Stephen Hemminger
Acked-by: Akhil Goyal
[OS version]
FreeBSD 14.0-RELEASE
14.0-RELEASE
clang version 16.0.6
gcc version 12.2.0
[bad commit]
The new freebsd14 found this problem, while the old freebsd13.2 did not.
[Test setup]
CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=
=3Dall
--default-library=3Dstatic x86_64-native-bsd-clang
ninja -j 10 -C x86_64-native-bsd-clang
CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da=
ll
--default-library=3Dstatic x86_64-native-bsdapp-gcc
ninja -j 10 -C x86_64-native-bsd-gcc
[error log]
ninja: Entering directory `x86_64-native-bsdapp-gcc'
[1889/1897] Generating kernel/freebsd/contigmem with a custom command
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
i386 -> /usr/src/sys/i386/include
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -h
touch opt_global.h
clang -O2 -pipe -include rte_config.h -fno-strict-aliasing -Werror -D_KER=
NEL
-DKLD_MODULE -nostdinc -I/root/dpdk/x86_64-native-bsdapp-gcc
-I/root/dpdk/config -include
/root/dpdk/x86_64-native-bsdapp-gcc/kernel/freebsd/opt_global.h -I.
-I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
-fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include -MD=20
-MF.depend.contigmem.o -MTcontigmem.o -mcmodel=3Dkernel -mno-red-zone -mno-=
mmx
-mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwra=
pv
-fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-co=
mpare
-Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality
-Wno-error=3Dunused-function -Wno-error=3Dpointer-sign
-Wno-error=3Dshift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length -mno-aes -mno-avx -std=3Dgnu99 -c
/root/dpdk/kernel/freebsd/contigmem/contigmem.c -o contigmem.o
ld -m elf_x86_64_fbsd -warn-common --build-id=3Dsha1 -T
/usr/src/sys/conf/ldscript.kmod.amd64 -r -o contigmem.ko contigmem.o
:> export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk contigmem.ko export_syms | xargs -J%
objcopy % contigmem.ko
objcopy --strip-debug contigmem.ko
[1894/1897] 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=3Dkernel/f=
reebsd
KMOD_SRC=3D../kernel/freebsd/nic_uio/nic_uio.c KMOD=3Dnic_uio
'KMOD_CFLAGS=3D-I/root/dpdk/x86_64-native-bsdapp-gcc -I/root/dpdk/config -i=
nclude
rte_config.h' CC=3Dclang
clang -O2 -pipe -include rte_config.h -fno-strict-aliasing -Werror -D_KER=
NEL
-DKLD_MODULE -nostdinc -I/root/dpdk/x86_64-native-bsdapp-gcc
-I/root/dpdk/config -include
/root/dpdk/x86_64-native-bsdapp-gcc/kernel/freebsd/opt_global.h -I.
-I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
-fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include -MD=20
-MF.depend.nic_uio.o -MTnic_uio.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx
-mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwra=
pv
-fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-co=
mpare
-Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality
-Wno-error=3Dunused-function -Wno-error=3Dpointer-sign
-Wno-error=3Dshift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length -mno-aes -mno-avx -std=3Dgnu99 -c
/root/dpdk/kernel/freebsd/nic_uio/nic_uio.c -o nic_uio.o
/root/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_modev=
ent,
0);
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
^
/usr/src/sys/sys/bus.h:832:9: note: macro 'DRIVER_MODULE' defined here
#define DRIVER_MODULE(name, busname, driver, evh, arg) \
^
/root/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_modev=
ent,
0);
^
int
2 errors generated.
*** Error code 1
Stop.
make: stopped in /root/dpdk/x86_64-native-bsdapp-gcc
[1896/1897] Linking target examples/dpdk-vmdq
ninja: build stopped: subcommand failed.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--17029719780.b9fDdB1.2464568
Date: Tue, 19 Dec 2023 08:46:18 +0100
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
Bug ID |
1335
|
Summary |
[dpdk-24.03-rc0] freebsd/nic_uio meson build error with clang=
16.0.6 and gcc12.2.0 on FreeBSD14
|
Product |
DPDK
|
Version |
23.11
|
Hardware |
All
|
OS |
All
|
Status |
UNCONFIRMED
|
Severity |
normal
|
Priority |
Normal
|
Component |
core
|
Assignee |
dev@dpdk.org
|
Reporter |
daxuex.gao@intel.com
|
Target Milestone |
---
|
You are receiving this mail because:
- You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
=
--17029719780.b9fDdB1.2464568--