[llvm-bugs] [Bug 35505] New: cannot compile BPF program using bpf_trace_printk

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 1 21:55:01 PST 2017


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

            Bug ID: 35505
           Summary: cannot compile BPF program using bpf_trace_printk
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: viz_skywalker at yahoo.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19511
  --> https://bugs.llvm.org/attachment.cgi?id=19511&action=edit
Preprocessed source and associated run script

fatal error: error in backend: Cannot select: 0x564421ad8f18: ch,glue =
BPFISD::CALL 0x564421ad6b00, 0x564421ad6bd0, Register:i64
      %R1, Register:i64 %R2, Register:i64 %R3, 0x564421ad6b00:1
  0x564421ad6bd0: i64,ch = load<LD8[@bpf_trace_printk](dereferenceable)>
0x564421aafc98, 0x564421ad9390, undef:i64
    0x564421ad9390: i64 = BPFISD::Wrapper TargetGlobalAddress:i64<i32 (i8*,
i32, ...)** @bpf_trace_printk> 0
      0x564421ad96d0: i64 = TargetGlobalAddress<i32 (i8*, i32, ...)**
@bpf_trace_printk> 0
    0x564421ad63b0: i64 = undef
  0x564421ad66f0: i64 = Register %R1
  0x564421ad8eb0: i64 = Register %R2
  0x564421ad6960: i64 = Register %R3
  0x564421ad6b00: ch,glue = CopyToReg 0x564421ad6e40, Register:i64 %R3,
0x564421ad65b8, 0x564421ad6e40:1
    0x564421ad6960: i64 = Register %R3
    0x564421ad65b8: i64 = srl 0x564421ad6d08, Constant:i64<48>
      0x564421ad6d08: i64 = bswap 0x564421ad6ea8
        0x564421ad6ea8: i64,ch = load<LD2[%138], anyext from i16>
0x564421ad6550, 0x564421ad6210, undef:i64
          0x564421ad6210: i64 = add 0x564421ad64e8, Constant:i64<2>
            0x564421ad64e8: i64,ch = load<LD8[%13](dereferenceable)>
0x564421aafc98, FrameIndex:i64<11>, undef:i64
              0x564421ad62e0: i64 = FrameIndex<11>
              0x564421ad63b0: i64 = undef
            0x564421ad6c38: i64 = Constant<2>
          0x564421ad63b0: i64 = undef
      0x564421ad6348: i64 = Constant<48>
    0x564421ad6e40: ch,glue = CopyToReg 0x564421ad6b68, Register:i64 %R2,
Constant:i64<32>, 0x564421ad6b68:1
      0x564421ad8eb0: i64 = Register %R2
      0x564421ad69c8: i64 = Constant<32>
      0x564421ad6b68: ch,glue = CopyToReg 0x564421ad6688, Register:i64 %R1,
FrameIndex:i64<14>
        0x564421ad66f0: i64 = Register %R1
        0x564421ad6140: i64 = FrameIndex<14>
In function: xdp_program
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (tags/RELEASE_500/final)
Target: bpf
Thread model: posix
InstalledDir: /usr/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-5.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/xdp-cef28c.c
clang-5.0: note: diagnostic msg: /tmp/xdp-cef28c.sh
clang-5.0: note: diagnostic msg:

-- 
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/20171202/9b2017ff/attachment-0001.html>


More information about the llvm-bugs mailing list