[llvm-bugs] [Bug 38364] New: fatal error: error in backend: Cannot select: intrinsic %llvm.bpf.load.byte

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 30 05:15:23 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38364

            Bug ID: 38364
           Summary: fatal error: error in backend: Cannot select:
                    intrinsic %llvm.bpf.load.byte
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: GlobalISel
          Assignee: unassignedbugs at nondot.org
          Reporter: treeze.taeung at gmail.com
                CC: llvm-bugs at lists.llvm.org

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 (https://github.com/llvm-mirror/clang.git
547ca57a7d60b97bcd9c9f0c9f072a6e7b2f5f5d)
(https://github.com/llvm-mirror/llvm.git
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
https://bugs.llvm.org/ 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180730/e9200041/attachment.html>


More information about the llvm-bugs mailing list