[LLVMbugs] [Bug 6721] New: llvm-gcc -c -emit-llvm doesn't create .bc file
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 27 02:39:19 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6721
Summary: llvm-gcc -c -emit-llvm doesn't create .bc file
Product: tools
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: vlacomp at orange.fr
CC: llvmbugs at cs.uiuc.edu
Hi,
Thanks for making llvm available.
I compiled/installed successfully llvm and llvm-gcc-4.2 on CYGWIN_NT-6.0.
I am using the svn versions of llvm and llvm-gcc-4.2.
I wanted to try tutorial: An Example Using the LLVM Tool Chain found in
http://llvm.org/docs/GettingStarted.html#environment
Here is what I did:
$ llvm-gcc -O3 hello.c -o hello.exe
This works fine. hello.exe is created and executes OK.
$ llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc
This command creates file hello.s. File hello.bc is not created.
I thought it is not important if the extension is not .bc
I renamed file hello.s into hello.bc.
Then I tried:
$ lli hello.bc
lli: error loading program 'hello.bc': Bitcode stream should be a multiple of 4
bytes in length
I don't see how to fix this issue?
Please can you help me?
Thanks,
Laurent
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list