From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1017] [dpdk-22.07*] kernel/linux/kni meson build failed with gcc 11.2.0 on Ub22.04/64
Date: Mon, 23 May 2022 07:52:49 +0000 [thread overview]
Message-ID: <bug-1017-3@http.bugs.dpdk.org/> (raw)
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.
next reply other threads:[~2022-05-23 7:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-23 7:52 bugzilla [this message]
2022-06-09 2:04 ` [Bug 1017] [dpdk-22.07*] kernel/linux/kni meson build failed with gcc 11.2.0 on Ub22.04/64 bugzilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-1017-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.