* [dpdk-dev] BUG BPF examples broken
@ 2020-02-08 4:04 Stephen Hemminger
2020-02-09 21:51 ` Ananyev, Konstantin
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2020-02-08 4:04 UTC (permalink / raw)
To: Konstantin Ananyev; +Cc: dev
The BPF examples do not compile on Debian.
The issue is that ret_mbuf_core.h includes rte_atomic which include rte_common
which pulls in errno.h and bits/errno.h. And then asm/errno.h
/usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not found
#include <asm/errno.h>
^~~~~~~~~~~~~
1 error generated.
asm/errno.h is architecture specific and BPF is an architecture.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] BUG BPF examples broken
2020-02-08 4:04 [dpdk-dev] BUG BPF examples broken Stephen Hemminger
@ 2020-02-09 21:51 ` Ananyev, Konstantin
0 siblings, 0 replies; 2+ messages in thread
From: Ananyev, Konstantin @ 2020-02-09 21:51 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: dev
> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: Saturday, February 8, 2020 4:05 AM
> To: Ananyev, Konstantin <konstantin.ananyev@intel.com>
> Cc: dev@dpdk.org
> Subject: BUG BPF examples broken
>
> The BPF examples do not compile on Debian.
>
> The issue is that ret_mbuf_core.h includes rte_atomic which include rte_common
> which pulls in errno.h and bits/errno.h. And then asm/errno.h
>
> /usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not found
> #include <asm/errno.h>
> ^~~~~~~~~~~~~
> 1 error generated.
>
> asm/errno.h is architecture specific and BPF is an architecture.
AFAIK, installing gcc-multilib package will generate a symlink for /usr/include/asm:
On my ubuntu box:
ls -ld /usr/include/asm
lrwxrwxrwx 1 root root 20 May 20 2019 /usr/include/asm -> x86_64-linux-gnu/asm
As another possible way: -I/usr/include/x86_64-linux-gnu manually.
clang -O2 -U __GNUC__ -I/usr/include/x86_64-linux-gnu -I${RTE_SDK}/${RTE_TARGET}/include -target bpf -Wno-int-to-void-pointer-cast -c t3.c
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-09 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-08 4:04 [dpdk-dev] BUG BPF examples broken Stephen Hemminger
2020-02-09 21:51 ` Ananyev, Konstantin
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).