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


Cc XDP-newbies, as I cannot scale by doing individual "support".

On Sat, 25 Apr 2020 08:22:25 -0400 Sowmini Varadhan <sowmini05@gmail.com> wrote:

> Hi Jesper, 
> 
> I am trying to get some basic eBPF examples up and running and I ran
> into the problem you describe at https://lkml.org/lkml/2020/2/19/433

Yes, building kernel bpf selftests requires latest LLVM, currently
works with LLVM-10.

> I dont want to deal with building my own llvm (looks like it needs
> more disk space than is available in my test mmachine, and I dont
> want to go hunting for space just yet) so do you have some suggestions
> on how I can work around this (maybe skip some of the advanced
> tests?

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/

> I am just trying to play with basic examples at this point)

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


[1] https://github.com/torvalds/linux/blob/master/samples/bpf/README.rst
-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer

       reply	other threads:[~2020-04-25 12:56 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 ` Jesper Dangaard Brouer [this message]
2020-04-25 16:16   ` building eBPF David Ahern
2020-04-25 16:34   ` Sowmini Varadhan
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=20200425145619.4405a50d@carbon \
    --to=brouer@redhat.com \
    --cc=sowmini05@gmail.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.