Re: LLVM error: "Bitcode stream should be a multiple of 4 bytes in length" (fwd)
> Do you know why I might be getting this error?
> [dconnors@eces-shell Hello]$ llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc
> [dconnors@eces-shell Hello]$ llc hello.bc -o hello.s
> llc: bitcode didn't read correctly.
> Reason: Bitcode stream should be a multiple of 4 bytes in length
this means that hello.bc doesn't contain bitcode, though I suppose it might
contain an out-of-date version of bitcode. My guess is that you have an old
llvm-gcc or llc floating around in your path, which is getting used accidentally.
You might want to look inside hello.bc, and see what the first 10 characters or
so look like. Also, try doing "file hello.bc". If it is bitcode you should get