On Sun, Jan 17, 2021 at 11:04 PM LemmyHuang <hlm3...@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?


-- 
David Marchand

Reply via email to