DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] BUG BPF examples broken
Date: Sun, 9 Feb 2020 21:51:23 +0000	[thread overview]
Message-ID: <SN6PR11MB2558B2CD29C88B3D36714A169A1E0@SN6PR11MB2558.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20200207200436.7c42c7a5@hermes.lan>



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

      reply	other threads:[~2020-02-09 21:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-08  4:04 Stephen Hemminger
2020-02-09 21:51 ` Ananyev, Konstantin [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=SN6PR11MB2558B2CD29C88B3D36714A169A1E0@SN6PR11MB2558.namprd11.prod.outlook.com \
    --to=konstantin.ananyev@intel.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.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).