<div dir="rtl"><div dir="ltr">That looks likea collision between the 32 bit and 64 bit versions of mingw.</div><div dir="ltr">Which version of 32 bit and 64 bit versions exactly do you, could you provide download links?</div><div dir="ltr">I ask because there are several mingw distributions around and they are different.</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-08-25 7:43 GMT+03:00 Edward Diener via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8/24/2015 11:38 PM, Yaron Keren via cfe-dev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Evidently to build a version of clang on Windows targeting mingw-64/gcc, which can compile 64-bit code, one must build clang with a 64-bit version of mingw-64/gcc. This may be apparent to you and other clang developers but it was not apparent to me.<br>
</blockquote>
<br>
clang may be built with any supported regardless the target. For<br>
example, I'm building clang using Visual C++ 64 bit and targetting the<br>
32-bit version of mingw. You do need to have the target mingw installed<br>
for the include files, library files and linker.<br>
</blockquote>
<br></span>
Please see my other response in this thread to Ivan. My experience is clearly that a 32-bit version of clang does not work when a 64-bit version of mingw-64/gcc is first in the Windows PATH. I also explained this previously in my post "Clang on Windows targeting mingw-64/gcc building 64bit code", which was unanswered.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
<br>
2015-08-25 5:15 GMT+03:00 Edward Diener via cfe-dev<br></span>
<<a href="mailto:cfe-dev-NBbBogny7ofFcdTEL8lfRQ@public.gmane.org" target="_blank">cfe-dev-NBbBogny7ofFcdTEL8lfRQ@public.gmane.org</a><br>
<mailto:<a href="mailto:cfe-dev-NBbBogny7ofFcdTEL8lfRQ@public.gmane.org" target="_blank">cfe-dev-NBbBogny7ofFcdTEL8lfRQ@public.gmane.org</a>>>:<span class=""><br>
<br>
On 8/24/2015 6:27 PM, Hans Wennborg via cfe-dev wrote:<br>
<br>
On Mon, Aug 24, 2015 at 2:36 PM, Edward Diener via cfe-dev<br>
<<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br></span><div><div class="h5">
<mailto:<a href="mailto:cfe-dev-NBbBogny7ofFcdTEL8lfRQ@public.gmane.org" target="_blank">cfe-dev-NBbBogny7ofFcdTEL8lfRQ@public.gmane.org</a>>> wrote:<br>
<br>
Is clang built form the latest svn source capable of<br>
creating 64-bit code on<br>
a Microsoft Windows 64-bit OS ?<br>
<br>
<br>
Yes. We build 64-bit Chromium on Windows with Clang continuously.<br>
<br>
If yes, is this done through the -m64 option<br>
or do I have to build clang from source in some particular<br>
way to enable the<br>
functionality ?<br>
<br>
<br>
Yes, using clang-cl -m64 is how we do it.<br>
<br>
<br>
Evidently to build a version of clang on Windows targeting<br>
mingw-64/gcc, which can compile 64-bit code, one must build clang<br>
with a 64-bit version of mingw-64/gcc. This may be apparent to you<br>
and other clang developers but it was not apparent to me.<br>
<br>
I would like to add to the documentation on the clang "Getting<br>
Started: Building and Running Clang" page at<br>
<a href="http://clang.llvm.org/get_started.html" rel="noreferrer" target="_blank">http://clang.llvm.org/get_started.html</a> a section of documentation<br>
following the section "Using Visual Studio" called "Using<br>
mingw(-64)/gcc". This section would explain how to build clang on<br>
Windows using ninja, CMake, and a mingw(-64)/gcc implementation and<br>
how to run clang from the command line using a mingw(-64)/gcc RTL. I<br>
am willing to completely write this documentation, to be vetted by<br>
whatever clang developer takes care of that "Getting Started" page,<br>
in order to help other developers build and run clang on Windows<br>
with the mingw(-64)/gcc RTL.<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>