Hello, I'm eager to get to know Clang+LLVM but I'm having some problems generating debug information that force llc.exe to crash. I'm running from the command-line on Windows 7 with clang+llvm versions 2.9 downloaded from the website. The input file is main.c: void mainCRTStartup() { } This is compiled to intermediate with debug symbols using: clang -g -O0 -c main.c -emit-llvm -o main.bc This runs fine and outputs main.bc - disassembly is here: http://donw.org/main.bc.txt I then try to comple that as an .obj file: llc -filetype=obj main.bc And I get a crash with the error message: EmitRawText called on an MCStreamer that doesn't support it, something must not be fully mc'ized I understand from the 2.9 release notes that filetype=obj is currently experimentalbut the above is lifted from the visual studio intro on the website with a couple of minor modifications. Can I expect this to work? Am I doing something wrong? Thanks! - Don
On Fri, Jun 17, 2011 at 11:07 AM, Don Williamson <don.williamson at yahoo.com> wrote:> And I get a crash with the error message: > > EmitRawText called on an MCStreamer that doesn't support it, something must not be fully mc'ized > > I understand from the 2.9 release notes that filetype=obj is currently experimentalbut the above is lifted from the visual studio intro on the website with a couple of minor modifications. > > Can I expect this to work? Am I doing something wrong?There's a FIXME in AsmPrinter::EmitSectionOffset (in lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp) pointing to this issue... filetype=obj is still experimental, particularly for Windows. -Eli
OK, thanks - that's a real shame. ----- Original Message ----- From: Eli Friedman <eli.friedman at gmail.com> To: Don Williamson <don.williamson at yahoo.com> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> Sent: Friday, June 17, 2011 7:27 PM Subject: Re: [LLVMdev] Simple clang + llc crash on Windows 7 On Fri, Jun 17, 2011 at 11:07 AM, Don Williamson <don.williamson at yahoo.com> wrote:> And I get a crash with the error message: > > EmitRawText called on an MCStreamer that doesn't support it, something must not be fully mc'ized > > I understand from the 2.9 release notes that filetype=obj is currently experimentalbut the above is lifted from the visual studio intro on the website with a couple of minor modifications. > > Can I expect this to work? Am I doing something wrong?There's a FIXME in AsmPrinter::EmitSectionOffset (in lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp) pointing to this issue... filetype=obj is still experimental, particularly for Windows. -Eli
Reasonably Related Threads
- [LLVMdev] Simple clang + llc crash on Windows 7
- [LLVMdev] Simple clang + llc crash on Windows 7
- [LLVMdev] Simple clang + llc crash on Windows 7
- [LLVMdev] emitting function stub for mips16 floating point patch
- [LLVMdev] Questions on ARMInstrInfo.td and MC/ARM/ELF