<div dir="ltr"><div>FWIW, my LLVM knowledge on Windows setup was based on the assumption of "use GNUWin32" because I think that's what it was when I set up my machine for building LLVM. I guess a) documentation needs to be more specific, and b) if it wasn't already announced, we need to make it clear on llvm-dev that Windows users should be using version X of the tools.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 6 Oct 2021 at 17:32, Michael Kruse via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://reviews.llvm.org/D84380" rel="noreferrer" target="_blank">https://reviews.llvm.org/D84380</a> was supposed to remove the dependency<br>
on GnuWin32 and use git-for-Windows instead.<br>
<br>
Only the Clang doc still refers to GnuWin32:<br>
<a href="https://clang.llvm.org/get_started.html" rel="noreferrer" target="_blank">https://clang.llvm.org/get_started.html</a><br>
The Clang getting_started, at least the how to build part, feels<br>
redundant with LLVM's. Maybe it should link to LLVM's instead?<br>
<br>
I myself am using MSYS2 (not from Git-for-Windows) with its bin<br>
directory in %PATH%.<br>
<br>
Michael<br>
<br>
<br>
Am Di., 5. Okt. 2021 um 09:51 Uhr schrieb via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>>:<br>
><br>
> At a minimum, I think we should stop using (and recommending) the bit-rotting GnuWin32 tools, and instead use the tools that come with git-for-Windows.  Lit currently checks for 5 tools (cmp, diff, echo, grep, sed) and all of these are in the git-Windows set.  This will reduce the set of packages we depend on, even if it doesn’t reduce the set of actual tools we depend on.<br>
><br>
> --paulr<br>
><br>
><br>
><br>
> From: llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>> On Behalf Of via llvm-dev<br>
> Sent: Tuesday, October 5, 2021 10:30 AM<br>
> To: <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> Subject: [llvm-dev] [llvm-lit] Old echo causes test failure on windows<br>
><br>
><br>
><br>
> Hi llvm-dev,<br>
><br>
><br>
><br>
> I wanted to bring discussion from D110986 to a wider audience.<br>
><br>
><br>
><br>
> After D110986 added a unicode character to the test, llvm\test\tools\llvm-cxxfilt\delimiters.test<br>
><br>
> started failing in our (Sony's) downstream Windows CI build (and locally for me) because the<br>
><br>
> unicode character was being converted to '?' at some stage in the test. The upstream Windows bots<br>
><br>
> seemed to have no such trouble. I added a workaround in D111072 that we landed because a Chromium<br>
><br>
> bot was running into the same issue.<br>
><br>
><br>
><br>
> Digging a little deeper it turns out that the echo that lit was picking up for me (`echo (GNU<br>
><br>
> coreutils) 5.3.0` from GnuWin32) converts unicode characters to '?'.<br>
><br>
><br>
><br>
> llvm-lit has its own built in echo which handles unicode without an issue. This is used in the workaround<br>
><br>
> D111072; lit's echo is used iff the echo command isn't used in a pipeline.<br>
><br>
><br>
><br>
> N.B. `echo (GNU coreutils) 8.32` shipped with git for Windows also appears to handle unicode without<br>
><br>
> an issue.<br>
><br>
><br>
><br>
> I have a few questions:<br>
><br>
> 1) Is there a reason we cannot always use lit's echo, as Hans suggests in D111072?<br>
><br>
> 2) If we can't always use lit's echo, maybe we could add an error/warning if a "bad" echo is<br>
><br>
> detected at build-config or test-running time?<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> Orlando<br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>