DPDK patches and discussions
 help / color / mirror / Atom feed
From: Yi Li <lovelylich@gmail.com>
To: dev@dpdk.org
Subject: compile failed with t3.c
Date: Thu, 17 Nov 2022 14:57:11 +0800	[thread overview]
Message-ID: <CAAA3+BqdjNLasSD+JnftmzR9JE0PSvpzDX6owXk6tUk8GOPxGA@mail.gmail.com> (raw)

Hi list,
   When i try to compile examples/bpf/t3.c with command annotated in
that source file, got this error:
[root@server bpf]# clang -O2 -U __GNUC__ -target bpf
-Wno-int-to-void-pointer-cast -c t3.c
In file included from t3.c:27:
In file included from /usr/local/include/rte_mbuf_core.h:22:
/usr/local/include/rte_byteorder.h:30:16: error: invalid output
constraint '=Q' in asm
                      : [x1] "=Q" (x)
                             ^
1 error generated.
[root@server bpf]#

   I think this should be the root cause as noted linux kernel
Documentation/bpf/bpf_devel_QA.txt

BPF programs may recursively include header file(s) with file scope
inline assembly codes. The default target can handle this well, while
bpf target may fail if bpf backend assembler does not understand these
assembly codes, which is true in most cases.

                 reply	other threads:[~2022-11-17  6:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAAA3+BqdjNLasSD+JnftmzR9JE0PSvpzDX6owXk6tUk8GOPxGA@mail.gmail.com \
    --to=lovelylich@gmail.com \
    --cc=dev@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).