DPDK usage discussions
 help / color / mirror / Atom feed
From: Luca Boccassi <bluca@debian.org>
To: David Marchand <david.marchand@redhat.com>, LemmyHuang <hlm3280@qq.com>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] A compilation problem on arm64
Date: Tue, 19 Jan 2021 10:42:39 +0000	[thread overview]
Message-ID: <2d83126a534caa02813a92dd08c507bdc1e00d34.camel@debian.org> (raw)
In-Reply-To: <CAJFAV8zh-4Bjb9Nfx5UXT6OcwQ+peSE=0GJc723o8nVvAARyyw@mail.gmail.com>

On Mon, 2021-01-18 at 09:40 +0100, David Marchand wrote:
> On Sun, Jan 17, 2021 at 11:04 PM LemmyHuang <hlm3280@qq.com> wrote:
> > 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; ...
> 
> This is hard to read, please paste raw outputs.
> This error does not ring a bell, this is probably kernel/arch specific.
> I copied Luca who maintains 19.11.
> 
> On the other hand, rather than fixing igb_uio build, why don't you use vfio-pci?

Yeah it's not very readable, unfortunately.

-- 
Kind regards,
Luca Boccassi

      reply	other threads:[~2021-01-19 10:42 UTC|newest]

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

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=2d83126a534caa02813a92dd08c507bdc1e00d34.camel@debian.org \
    --to=bluca@debian.org \
    --cc=david.marchand@redhat.com \
    --cc=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).