<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - fatal error: error in backend: Cannot select: intrinsic %llvm.bpf.load.byte"
href="https://bugs.llvm.org/show_bug.cgi?id=38364">38364</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>fatal error: error in backend: Cannot select: intrinsic %llvm.bpf.load.byte
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>GlobalISel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>treeze.taeung@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When building BPF programs in samples/bpf of the kernel source,
I found the below error. I think "Component:" of this bug report should be
"Backend: bpf" but it doesn't exist yet.
And I think the below error message seems to be printed at CannotYetSelect() of
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
I using clang only like below:
(e.g. $ clang -target bpf -O2 -g -c -Xclang -target-feature -Xclang +dwarfris
...)
$ cd linux/samples/bpf/
$ make
[...]
CLANG-bpf /home/taeung/git/linux/samples/bpf/sockex1_kern.o
'+dwarfris' is not a recognized feature for this target (ignoring feature)
'+dwarfris' is not a recognized feature for this target (ignoring feature)
'+dwarfris' is not a recognized feature for this target (ignoring feature)
fatal error: error in backend: Cannot select: intrinsic %llvm.bpf.load.byte
clang-7: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 7.0.0 (<a href="https://github.com/llvm-mirror/clang.git">https://github.com/llvm-mirror/clang.git</a>
547ca57a7d60b97bcd9c9f0c9f072a6e7b2f5f5d)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
32b278468b15338064ac12a584f25f074ee96451)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-7: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-7: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7: note: diagnostic msg: /tmp/sockex1_kern-604876.c
clang-7: note: diagnostic msg: /tmp/sockex1_kern-604876.sh
clang-7: note: diagnostic msg:
********************
/home/taeung/git/linux/samples/bpf/Makefile:267: recipe for target
'/home/taeung/git/linux/samples/bpf/sockex1_kern.o' failed</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>