Clang binaries for Windows x86-64?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Clang binaries for Windows x86-64?

Simon Koeman

I am trying to find Clang binaries to download for the Windows x86-64 target and have not been successful.

 

Do any such binaries exist?

 

Thank you,

 

Simon Koeman


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Clang binaries for Windows x86-64?

Reid Kleckner-2
I believe we only have 32-bit binaries, but they can produce 64-bit code if that's what you're looking for.  You simply pass the -m64 flag.

If you want a 64-bit binary for better performance or whatnot, you'll have to build from source for now.


On Fri, Jul 25, 2014 at 2:57 PM, Simon Koeman <[hidden email]> wrote:

I am trying to find Clang binaries to download for the Windows x86-64 target and have not been successful.

 

Do any such binaries exist?

 

Thank you,

 

Simon Koeman


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Clang binaries for Windows x86-64?

Óscar Fuentes
In reply to this post by Simon Koeman
Simon Koeman <[hidden email]> writes:

> I am trying to find Clang binaries to download for the Windows x86-64
> target and have not been successful.
>
> Do any such binaries exist?

MSYS2 provides binary packages for Windows 64 bits using the Mingw-w64
runtime and g++ ABI.

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Clang binaries for Windows x86-64?

İsmail Dönmez
In reply to this post by Reid Kleckner-2
Hi,


On Sat, Jul 26, 2014 at 3:41 AM, Reid Kleckner <[hidden email]> wrote:
I believe we only have 32-bit binaries, but they can produce 64-bit code if that's what you're looking for.  You simply pass the -m64 flag.

If you want a 64-bit binary for better performance or whatnot, you'll have to build from source for now.


Thats not gonna work though:

clang version 3.5.0 (213584)
Target: i686-pc-windows-gnu
Thread model: posix

C:\Users\ismail\Desktop>clang -target x86_64-pc-windows-msvc -m64 nic.c
libcmt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machi
e type 'x64'
clang.exe: error: linker command failed with exit code 1112 (use -v to see invocation)

Seems to be libpath is not properly set for 64bit case.



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Clang binaries for Windows x86-64?

Reid Kleckner-2

If you want to link, you also need to put 64bit link.exe on PATH, as well as the right LIBs.

Sent from phone

On Jul 26, 2014 12:53 AM, "İsmail Dönmez" <[hidden email]> wrote:
Hi,


On Sat, Jul 26, 2014 at 3:41 AM, Reid Kleckner <[hidden email]> wrote:
I believe we only have 32-bit binaries, but they can produce 64-bit code if that's what you're looking for.  You simply pass the -m64 flag.

If you want a 64-bit binary for better performance or whatnot, you'll have to build from source for now.


Thats not gonna work though:

clang version 3.5.0 (213584)
Target: i686-pc-windows-gnu
Thread model: posix

C:\Users\ismail\Desktop>clang -target x86_64-pc-windows-msvc -m64 nic.c
libcmt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machi
e type 'x64'
clang.exe: error: linker command failed with exit code 1112 (use -v to see invocation)

Seems to be libpath is not properly set for 64bit case.



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Clang binaries for Windows x86-64?

İsmail Dönmez



On Mon, Jul 28, 2014 at 5:15 AM, Reid Kleckner <[hidden email]> wrote:

If you want to link, you also need to put 64bit link.exe on PATH, as well as the right LIBs.


Ah, that works. Thanks!
 

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev