DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] A compilation problem on arm64
@ 2021-01-11 13:43 =?gb18030?B?TGVtbXlIdWFuZw==?=
  2021-01-18  8:40 ` David Marchand
  0 siblings, 1 reply; 3+ messages in thread
From: =?gb18030?B?TGVtbXlIdWFuZw==?= @ 2021-01-11 13:43 UTC (permalink / raw)
  To: =?gb18030?B?dXNlcnM=?=

[-- 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:


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


Thanks & Regards,
Lemmy_Huang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-19 10:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 13:43 [dpdk-users] A compilation problem on arm64 =?gb18030?B?TGVtbXlIdWFuZw==?=
2021-01-18  8:40 ` David Marchand
2021-01-19 10:42   ` Luca Boccassi

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git