<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Assembly crash, linux kernel compilation, clang integrated assembler command failed due to signal"
   href="http://llvm.org/bugs/show_bug.cgi?id=22628">22628</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assembly crash, linux  kernel compilation, clang integrated assembler command failed due to signal
          </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>LLVM assembly language parser
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jmp@safe.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13900" name="attach_13900" title="As requested">attachment 13900</a> <a href="attachment.cgi?id=13900&action=edit" title="As requested">[details]</a></span>
As requested

Unable to compile linux Kernel, 3.19.0-rc4 (extracted from via
git clone git://git.linuxfoundation.org/llvmlinux/kernel.git, compiled 
on FC20 openvz VPS, (shouldn't matter)).

make defconfig
make HOSTCC=clang CC=clang

CHK     include/generated/compile.h
AS      arch/x86/realmode/rm/trampoline_64.o
invalid fixup kind!
UNREACHABLE executed at
/var/tmp/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp:160!
#0 0x4303cd0 llvm::sys::PrintStackTrace(_IO_FILE*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:423:0
#1 0x4303f6b PrintStackTraceSignalHandler(void*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:481:0
#2 0x4302c2c SignalHandler(int)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:198:0
#3 0x7fd4a6bd16d0 __restore_rt (/lib64/libpthread.so.0+0xf6d0)
#4 0x7fd4a5e10877 __GI_raise (/lib64/libc.so.6+0x35877)
#5 0x7fd4a5e11f68 __GI_abort (/lib64/libc.so.6+0x36f68)
#6 0x42e8e49 bindingsErrorHandler(void*, std::string const&, bool)
/var/tmp/llvm/lib/Support/ErrorHandling.cpp:126:0
#7 0x3fa910a (anonymous
namespace)::X86ELFObjectWriter::GetRelocType(llvm::MCValue const&,
llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp:163:0
#8 0x406ddc1 (anonymous namespace)::ELFObjectWriter::GetRelocType(llvm::MCValue
const&, llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:185:0
#9 0x406f93e (anonymous
namespace)::ELFObjectWriter::RecordRelocation(llvm::MCAssembler&,
llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&,
llvm::MCValue, bool&, unsigned long&)
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:843:0
#10 0x408a30c llvm::MCAssembler::handleFixup(llvm::MCAsmLayout const&,
llvm::MCFragment&, llvm::MCFixup const&)
/var/tmp/llvm/lib/MC/MCAssembler.cpp:900:0
#11 0x408a7a7 llvm::MCAssembler::Finish()
/var/tmp/llvm/lib/MC/MCAssembler.cpp:966:0
#12 0x40b7e71 llvm::MCObjectStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCObjectStreamer.cpp:424:0
#13 0x40a7b2a llvm::MCELFStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCELFStreamer.cpp:561:0
#14 0x40bdd9a llvm::MCStreamer::Finish()
/var/tmp/llvm/lib/MC/MCStreamer.cpp:582:0
#15 0x3ffb9f6 (anonymous namespace)::AsmParser::Run(bool, bool)
/var/tmp/llvm/lib/MC/MCParser/AsmParser.cpp:687:0
#16 0x1243efa ExecuteAssembler((anonymous namespace)::AssemblerInvocation&,
clang::DiagnosticsEngine&)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:401:0
#17 0x1244546 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:482:0
#18 0x124b99f ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/var/tmp/llvm/tools/clang/tools/driver/driver.cpp:371:0
#19 0x124beda main /var/tmp/llvm/tools/clang/tools/driver/driver.cpp:415:0
#20 0x7fd4a5dfcd65 __libc_start_main (/lib64/libc.so.6+0x21d65)
#21 0x123cab9 _start (/usr/local/bin/clang+0x123cab9)
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1as -triple
i386-unknown-linux-code16 -filetype obj -main-file-name trampoline_64.S
-target-cpu i386 -target-feature -mmx -target-feature -sse -g
-fdebug-compilation-dir /var/tmp/kernel -dwarf-debug-producer clang version
3.7.0 (trunk 229714) -o arch/x86/realmode/rm/trampoline_64.o
/tmp/trampoline_64-0aaa37.s 
1.    Program arguments: -triple i386-unknown-linux-code16 -filetype obj
-main-file-name trampoline_64.S -target-cpu i386 -target-feature -mmx
-target-feature -sse -g -fdebug-compilation-dir /var/tmp/kernel
-dwarf-debug-producer clang version 3.7.0 (trunk 229714) -o
arch/x86/realmode/rm/trampoline_64.o /tmp/trampoline_64-0aaa37.s 
#0 0x4303cd0 llvm::sys::PrintStackTrace(_IO_FILE*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:423:0
#1 0x4303f6b PrintStackTraceSignalHandler(void*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:481:0
#2 0x4302c2c SignalHandler(int)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:198:0
#3 0x7fd4a6bd16d0 __restore_rt (/lib64/libpthread.so.0+0xf6d0)
#4 0x7fd4a5e10877 __GI_raise (/lib64/libc.so.6+0x35877)
#5 0x7fd4a5e11f68 __GI_abort (/lib64/libc.so.6+0x36f68)
#6 0x42e8e49 bindingsErrorHandler(void*, std::string const&, bool)
/var/tmp/llvm/lib/Support/ErrorHandling.cpp:126:0
#7 0x3fa910a (anonymous
namespace)::X86ELFObjectWriter::GetRelocType(llvm::MCValue const&,
llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp:163:0
#8 0x406ddc1 (anonymous namespace)::ELFObjectWriter::GetRelocType(llvm::MCValue
const&, llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:185:0
#9 0x406f93e (anonymous
namespace)::ELFObjectWriter::RecordRelocation(llvm::MCAssembler&,
llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&,
llvm::MCValue, bool&, unsigned long&)
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:843:0
#10 0x408a30c llvm::MCAssembler::handleFixup(llvm::MCAsmLayout const&,
llvm::MCFragment&, llvm::MCFixup const&)
/var/tmp/llvm/lib/MC/MCAssembler.cpp:900:0
#11 0x408a7a7 llvm::MCAssembler::Finish()
/var/tmp/llvm/lib/MC/MCAssembler.cpp:966:0
#12 0x40b7e71 llvm::MCObjectStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCObjectStreamer.cpp:424:0
#13 0x40a7b2a llvm::MCELFStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCELFStreamer.cpp:561:0
#14 0x40bdd9a llvm::MCStreamer::Finish()
/var/tmp/llvm/lib/MC/MCStreamer.cpp:582:0
#15 0x3ffb9f6 (anonymous namespace)::AsmParser::Run(bool, bool)
/var/tmp/llvm/lib/MC/MCParser/AsmParser.cpp:687:0
#16 0x1243efa ExecuteAssembler((anonymous namespace)::AssemblerInvocation&,
clang::DiagnosticsEngine&)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:401:0
#17 0x1244546 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:482:0
#18 0x124b99f ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/var/tmp/llvm/tools/clang/tools/driver/driver.cpp:371:0
#19 0x124beda main /var/tmp/llvm/tools/clang/tools/driver/driver.cpp:415:0
#20 0x7fd4a5dfcd65 __libc_start_main (/lib64/libc.so.6+0x21d65)
#21 0x123cab9 _start (/usr/local/bin/clang+0x123cab9)
clang: error: unable to execute command: Aborted
clang: error: clang integrated assembler command failed due to signal (use -v
to see invocation)
clang version 3.7.0 (trunk 229714)
Target: i386-unknown-linux-code16
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/trampoline_64-bac34d.S
clang: note: diagnostic msg: /tmp/trampoline_64-bac34d.sh
clang: note: diagnostic msg:</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>