Re: Facing an error while compiling for bpf using clang

Jesper Dangaard Brouer

On Tue, 21 May 2019 23:17:28 -0700
"Yonghong Song" <ys114321@...> wrote:

bpf needs 3.7.1 and higher version. Later clang (>= 3.7.1) has more features.
In the kernel tree it is documented here:

But the kernel says:
clang >= version 3.4.0 + llvm >= version 3.7.1

What is your 'llc' version?
(run command: llc --version )

On Tue, May 21, 2019 at 11:13 PM Prashanth Fernando
<prashanth.fernando@...> wrote:


The clang version I am using is 3.4.2

clang --version
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat

Join to automatically receive all group messages.