DPDK usage discussions
 help / color / mirror / Atom feed
From: =?gb18030?B?TGVtbXlIdWFuZw==?= <hlm3280@qq.com>
To: =?gb18030?B?dXNlcnM=?= <users@dpdk.org>
Subject: [dpdk-users] A compilation problem on arm64
Date: Mon, 11 Jan 2021 21:43:11 +0800	[thread overview]
Message-ID: <tencent_ECB3028975B95149A2A8FBDB5D31101BDD0A@qq.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 5151 bytes --]

Dear Concerns,


I have a compilation problem on arm64.
My environment is dpdk-19.11, gcc-9.3.1 and kernel-5.10.0-0.0.0.7.aarch64. The errors are as follows:


&gt;&gt; ...
&gt;&gt;&nbsp; &nbsp;CC [M]&nbsp; /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/kni/kni_misc.o [0m
&gt;&gt;&nbsp; &nbsp;CC [M]&nbsp; /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/kni/kni_net.o [0m
&gt;&gt;&nbsp; &nbsp;LD librte_common_octeontx2.so.20.0 [0m
&gt;&gt;&nbsp; &nbsp;INSTALL-LIB librte_common_octeontx2.so.20.0 [0m
&gt;&gt; == Build drivers/bus [0m
&gt;&gt; In file included from ./include/linux/atomic.h:7, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/asm-generic/bitops/atomic.h:5, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./arch/arm64/include/asm/bitops.h:26, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/bitops.h:29, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/kernel.h:12, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/list.h:9, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/rculist.h:10, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/pid.h:5, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/sched.h:14, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/ratelimit.h:6, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/dev_printk.h:16, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/device.h:15, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/igb_uio/igb_uio.c:8: [0m
&gt;&gt; ./include/linux/atomic-arch-fallback.h: In function 'igbuio_pci_open': [0m
&gt;&gt; ./arch/arm64/include/asm/atomic.h:20:20: error: inlining failed in call to 'arch_atomic_sub.constprop': --param max-inline-insns-single-O2 limit reached [-Werror=inline] [0m
&gt;&gt;&nbsp; &nbsp; 20 | static inline void arch_##op(int i, atomic_t *v)&nbsp; &nbsp;\ [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~ [0m
&gt;&gt; ./arch/arm64/include/asm/atomic.h:30:1: note: in expansion of macro 'ATOMIC_OP' [0m
&gt;&gt;&nbsp; &nbsp; 30 | ATOMIC_OP(atomic_sub) [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;| ^~~~~~~~~ [0m
&gt;&gt; In file included from ./include/linux/atomic.h:81, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/asm-generic/bitops/atomic.h:5, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./arch/arm64/include/asm/bitops.h:26, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/bitops.h:29, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/kernel.h:12, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/list.h:9, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/rculist.h:10, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/pid.h:5, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/sched.h:14, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/ratelimit.h:6, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/dev_printk.h:16, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ./include/linux/device.h:15, [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/igb_uio/igb_uio.c:8: [0m
&gt;&gt; ./include/linux/atomic-arch-fallback.h:441:2: note: called from here [0m
&gt;&gt;&nbsp; &nbsp;441 |&nbsp; arch_atomic_sub(1, v); [0m
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; ^~~~~~~~~~~~~~~~~~~~~ [0m
&gt;&gt; cc1: all warnings being treated as errors [0m
&gt;&gt; make[6]: *** [scripts/Makefile.build:279: /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/igb_uio/igb_uio.o] Error 1 [0m
&gt;&gt; make[5]: *** [Makefile:1805: /home/abuild/rpmbuild/BUILD/dpdk-19.11/arm64-armv8a-linux-gcc/build/kernel/linux/igb_uio] Error 2 [0m
&gt;&gt; make[4]: *** [/home/abuild/rpmbuild/BUILD/dpdk-19.11/mk/rte.module.mk:51: igb_uio.ko] Error 2 [0m
&gt;&gt; make[3]: *** [/home/abuild/rpmbuild/BUILD/dpdk-19.11/mk/rte.subdir.mk:37: igb_uio] Error 2 [0m
&gt;&gt; make[3]: *** Waiting for unfinished jobs.... [0m
&gt;&gt; ...


Thanks &amp; Regards,
Lemmy_Huang

             reply	other threads:[~2021-01-17 22:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-11 13:43  =?gb18030?B?TGVtbXlIdWFuZw==?= [this message]
2021-01-18  8:40 ` David Marchand
2021-01-19 10:42   ` Luca Boccassi

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=tencent_ECB3028975B95149A2A8FBDB5D31101BDD0A@qq.com \
    --to=hlm3280@qq.com \
    --cc=users@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 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).