All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sowmini Varadhan <sowmini05@gmail.com>
To: Jesper Dangaard Brouer <brouer@redhat.com>
Cc: "xdp-newbies@vger.kernel.org" <xdp-newbies@vger.kernel.org>
Subject: Re: building eBPF
Date: Sat, 25 Apr 2020 12:34:58 -0400	[thread overview]
Message-ID: <20200425163458.GB455@gmail.com> (raw)
In-Reply-To: <20200425145619.4405a50d@carbon>

On (04/25/20 14:56), Jesper Dangaard Brouer wrote:
> 
> The kernel's samples/bpf/ should still builds with LLVM-9 (and lower).
> Follow instructions in the README.rst file[1].
> 
> There are pre-build Debian and Ubuntu packages for LLVM-10 here:
>  https://apt.llvm.org/

thanks that helped me install llvm-10

However, after all my adventures, I  end up with
# ls /usr/bin/llc*
/usr/bin/llc  /usr/bin/llc-10  /usr/bin/llc-5.0  /usr/bin/llc-6.0  /usr/bin/llc-7
and the default points at 6.0 so I had to go and tweak Makefile
to use clang-10 and llc-10

After that, samples builds and runs (thanks for that hint!).
But not selftests.  However, samples is good enough for my experiments,
for now.

> I suggest you start with the XDP-tutorial[2], it (still) works with older
> LLVM versions: [2] https://github.com/xdp-project/xdp-tutorial

will do.  

--Sowmini

  parent reply	other threads:[~2020-04-25 16:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200425122225.GA455@gmail.com>
2020-04-25 12:56 ` building eBPF Jesper Dangaard Brouer
2020-04-25 16:16   ` David Ahern
2020-04-25 16:34   ` Sowmini Varadhan [this message]
2020-04-27 10:46     ` Toke Høiland-Jørgensen
2020-04-27  0:20   ` Sowmini Varadhan
2020-04-27 10:03     ` Jesper Dangaard Brouer
2020-04-27 10:49       ` Sowmini Varadhan
2020-04-27 12:08         ` Daniel Borkmann

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=20200425163458.GB455@gmail.com \
    --to=sowmini05@gmail.com \
    --cc=brouer@redhat.com \
    --cc=xdp-newbies@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.