* [Bug 1017] [dpdk-22.07*] kernel/linux/kni meson build failed with gcc 11.2.0 on Ub22.04/64
@ 2022-05-23 7:52 bugzilla
2022-06-09 2:04 ` bugzilla
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-05-23 7:52 UTC (permalink / raw)
To: dev
https://bugs.dpdk.org/show_bug.cgi?id=1017
Bug ID: 1017
Summary: [dpdk-22.07*] kernel/linux/kni meson build failed with
gcc 11.2.0 on Ub22.04/64
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: daxuex.gao@intel.com
Target Milestone: ---
[DPDK Version]
dpdk latest code dpdk-next-* and dpdk branch
[OS version]
Ubuntu22.04 LTS/(5.17.5-051705-generic/5.15.0-25-generic)
GCC 11.2.0
[Test Setup]
This error is to fix https://bugs.dpdk.org/show_bug.cgi?id=1009
# wget
https://patchwork.dpdk.org/project/dpdk/patch/20220510150635.61975-1-heinrich.schuchardt@canonical.com/mbox/
-O /tmp/a.patch
# git apply /tmp/a.patch
# meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static gcc-linux-app
# ninja -C gcc-linux-app
[log]
[warning log]
ninja: Entering directory `gcc-linux-app'
[3631/3631] Generating kernel/linux/kni/rte_kni with a custom command
make: Entering directory '/usr/src/linux-headers-5.17.5-051705-generic'
CC [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/kni_misc.o
CC [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/kni_net.o
/tmp/dpdk/kernel/linux/kni/kni_net.c: In function ‘kni_net_set_mac’:
/tmp/dpdk/kernel/linux/kni/kni_net.c:782:22: warning: passing argument 1 of
‘memcpy’ discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
782 | memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
| ~~~~~^~~~~~~~~
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/paravirt.h:17,
from ./arch/x86/include/asm/irqflags.h:63,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:26,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/ratelimit.h:6,
from ./include/linux/dev_printk.h:16,
from ./include/linux/device.h:15,
from /tmp/dpdk/kernel/linux/kni/kni_net.c:11:
./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument
is of type ‘const unsigned char *’
212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t
size)
| ~~~~~~^
/tmp/dpdk/kernel/linux/kni/kni_misc.c: In function ‘kni_ioctl_create’:
/tmp/dpdk/kernel/linux/kni/kni_misc.c:406:31: warning: passing argument 1 of
‘memcpy’ discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
406 | memcpy(net_dev->dev_addr, dev_info.mac_addr, ETH_ALEN);
| ~~~~~~^~~~~~~~~
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:22,
from ./arch/x86/include/asm/timex.h:5,
from ./include/linux/timex.h:65,
from ./include/linux/time32.h:13,
from ./include/linux/time.h:60,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:13,
from /tmp/dpdk/kernel/linux/kni/kni_misc.c:7:
./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument
is of type ‘const unsigned char *’
212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t
size)
| ~~~~~~^
/tmp/dpdk/kernel/linux/kni/kni_misc.c:409:40: warning: passing argument 1 of
‘eth_random_addr’ discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
409 | eth_random_addr(net_dev->dev_addr);
| ~~~~~~^~~~~~~~~
In file included from /tmp/dpdk/kernel/linux/kni/kni_misc.c:10:
./include/linux/etherdevice.h:230:40: note: expected ‘u8 *’ {aka ‘unsigned char
*’} but argument is of type ‘const unsigned char *’
230 | static inline void eth_random_addr(u8 *addr)
| ~~~^~~
LD [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.o
MODPOST /tmp/dpdk/gcc-linux-app/kernel/linux/kni/Module.symvers
CC [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.mod.o
LD [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.ko
BTF [M] /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.ko
Skipping BTF generation for /tmp/dpdk/gcc-linux-app/kernel/linux/kni/rte_kni.ko
due to unavailability of vmlinux
make: Leaving directory '/usr/src/linux-headers-5.17.5-051705-generic'
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-09 2:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 7:52 [Bug 1017] [dpdk-22.07*] kernel/linux/kni meson build failed with gcc 11.2.0 on Ub22.04/64 bugzilla
2022-06-09 2:04 ` bugzilla
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).