I think building LLVM for x86 target should solve the problem. The
resulting ispc will be able to built both x86 and x86-64.

I guess the error occurs when ispc is trying to link x86 libraries, while
LLVM TargetMachine is defaulted to x86-64, so the error. Though not
completely sure.

Let me know if building x86 LLVM doesn't solve the problem.

Dmitry.

On Fri, Jul 1, 2016 at 6:30 PM, dkoerner <[email protected]> wrote:

> Hi,
>
> I successfully built ispc (1.9.1) under windows using llvm-3.8.0. Since I
> compiled llvm for x64 I also compiled ispc for x64 (I had to create a new
> target in the solution file).
>
> Now when trying to compile the simple example I get the following:
> c:\libs\ispc-1.9.1\examples\simple>C:\libs\ispc-1.9.1\x64\Release\ispc.exe
> -o simple.obj --arch=x86 --target=sse2 simple.ispc
> error: Invalid bitcode signature
>
> This error message appears with every ispc code I want to compile.
>
> Does this come from the fact that I built llvm for x64 target? What
> bitcode signature is llvm refering to here?
>
> Thanks for any help in advance.
> Best,
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "Intel SPMD Program Compiler Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to