Hello,<br><br>As I succeeded in building clang, I've tested the compiled binary, and it seems I have (yet again) some environment hiccups (mind you "only" 23 unexpected failures)<br><br>There seems to be some shell issues:<br>
<br>  FAIL: Clang :: Preprocessor/cxx_oper_spelling.cpp (1700 of 2898)<br>  D:/llvm-cmake/bin/.\clang.EXE -cc1 -E D:\llvm\tools\clang\test\Preprocessor\cxx_oper_spelling.cpp | grep 'a: "and"'<br><br>  Command 1 Stderr:<br>
  /usr/bin/grep: Trailing backslash<br><br>Even though when I used the command myself in MSYS everything works fine (though I do have to transform it before), so I was wondering if I should run the tests from the MSYS command line or from the basic Windows console (by the way, the executable name is wrong here, it's .exe)<br>
<br><br>I have had some issues with missing headers, such as:<br><br>  <stdlib.h> // located in /mingw/include<br><br>So I've modified /d/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp<br><br>Index: lib/Frontend/InitHeaderSearch.cpp<br>
===================================================================<br>--- lib/Frontend/InitHeaderSearch.cpp   (rÚvision 126540)<br>+++ lib/Frontend/InitHeaderSearch.cpp   (copie de travail)<br>@@ -533,6 +533,7 @@<br>     AddPath("/usr/include/w32api", System, true, false, false);<br>
     break;<br>   case llvm::Triple::MinGW32:<br>+         AddPath("/mingw/include", System, true, false, false);<br>     AddPath("c:/mingw/include", System, true, false, false);<br>     break;<br>   default:<br>
@@ -581,6 +582,8 @@<br>             false, false);<br>     AddPath("c:/MinGW/include/c++/4.5.2/backward", CXXSystem, true, false,<br>             false);<br>+               // Try gcc 4.5.2 (MSYS)<br>+               AddMinGWCPlusPlusIncludePaths("/mingw/lib/gcc", "mingw32", "4.5.2");<br>
     // Try gcc 4.5.0<br>     AddMinGWCPlusPlusIncludePaths("c:/MinGW/lib/gcc", "mingw32", "4.5.0");<br>     // Try gcc 4.4.0<br><br>(note: I've personally installed MinGW on d: ... is /mingw usable outside of MSYS ? are there people using MinGW without MSYS ? I don't suppose it's worth a Triple :/)<br>
<br>I suppose I could start working (now) and discard those 23 failures as "environmental" (ie not worry about them), but I'd feel more comfortable if the tests were 100% right :)<br><br>Thanks for your advice on CMake!<br>
<br>-- Matthieu<br><br><div class="gmail_quote">2011/3/2 Matthieu Monrocq <span dir="ltr"><<a href="mailto:matthieu.monrocq@gmail.com">matthieu.monrocq@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm using MSYS, so I used the CMake "for MSYS" alternative as recommended (though there does not seem to be a generator for the CodeBlocks/MSYS combination).<br><br>And it built! Thanks you very much :)<br><br>

Next step is to test the lit setup and check that the built code runs smoothly, hopefully I'll see about it tomorrow.<br><br>Matthieu.<br><br><div class="gmail_quote">2011/2/27 Ruben Van Boxem <span dir="ltr"><<a href="mailto:vanboxem.ruben@gmail.com" target="_blank">vanboxem.ruben@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><p>Op 27 feb. 2011 23:02 schreef "Anton Korobeynikov" <<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>> het volgende:</p>

<div><br>
><br>
> Hello Ruben,<br>
><br>
> > You should really use CMake to build on mingw:<br>
> This is not a strict requirement. Everything works fine out of the box<br>
> with just configure + make inside msys shell w/o cmake.<br>
></div>
<p>I know, it's only a recommendation, because CMake is just faster than MSYS. But it also works, yes.</p>
<p>Ruben <br>
</p>
</blockquote></div></div></div><br>
</blockquote></div><br>