[LLVMbugs] [Bug 23665] New: fatal error: error in backend: Cannot select: 0x2d59140: ch = brind 0x2d54d00:1, 0x2d54d00 [ORD=1] [ID=10]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 26 14:27:24 PDT 2015


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

            Bug ID: 23665
           Summary: fatal error: error in backend: Cannot select:
                    0x2d59140: ch = brind 0x2d54d00:1, 0x2d54d00 [ORD=1]
                    [ID=10]
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bero at linaro.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14387
  --> https://llvm.org/bugs/attachment.cgi?id=14387&action=edit
preprocessed source

This will be a little hard to reproduce because so far I only see it with a
patched llvm/clang, but I'm pretty sure the error is merely exposed, not
caused, by the patches.

This happens while building musl for an x32 target:

fatal error: error in backend: Cannot select: 0x2d59140: ch = brind
0x2d54d00:1, 0x2d54d00 [ORD=1] [ID=10]
  0x2d54d00: i32,ch = load 0x2d58000:1, 0x2d557b0, 0x2d58130<LD4[JumpTable]>
[ORD=1] [ID=9]
    0x2d557b0: i32 = add 0x2d57550, 0x2d55090 [ORD=1] [ID=8]
      0x2d57550: i32 = shl 0x2d58000, 0x2d58260 [ORD=1] [ID=7]
        0x2d58000: i32,ch = CopyFromReg 0x2ccfae0, 0x2d55550 [ORD=1] [ID=5]
          0x2d55550: i32 = Register %vreg43 [ID=1]
        0x2d58260: i8 = Constant<2> [ID=4]
      0x2d55090: i32 = X86ISD::Wrapper 0x2d58db0 [ID=6]
        0x2d58db0: i32 = TargetJumpTable<0> [ID=3]
    0x2d58130: i32 = undef [ID=2]
In function: sysconf
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.7.0 (trunk)
Target: x86_64-openmandriva-linux-muslx32
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.


The patches I'm applying essentially just teach clang about the musl libc
(different dynamic linker path etc.) and teach it to recognize the "-muslx32"
suffix in the target as "Use musl libc and x32 ABI".

-- 
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/20150526/3ca87197/attachment.html>


More information about the llvm-bugs mailing list