<div dir="ltr"><div>Hi Simon,</div><div><br></div><div>That's weird, "ENG" isn't a valid locale as far as I know.</div><div><br></div><div>The locale should be getting set by your .profile by the line</div><div><br></div><div># Set user-defined locale<br>export LANG=$(locale -uU)</div><div><br></div><div>In my case that returns</div><div><br></div><div>$ locale -uU<br>en_GB.UTF-8</div><div><br></div><div>I would check to see if that line is in your .profile (it should be by default) or in case you're not login into bash (using --login), in your .bashrc. That should fix the warning.</div><div><br></div><div>However it's weird that it's using <span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">c:/msys64/usr/bin/perl to build GHC. As far as I know, the only usage of perl in GHC is for SplitObjs</span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">in which case we use a very old perl distribution that should have been downloaded by configure into inplace/perl/</span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent"><br></span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">and configure should have picked that one up. It's hardcoded somewhat to do so. What does configure report that it found?</span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent"><br></span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">in any case, setting the locale as above should fix the warning.</span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent"><br></span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">Cheers,</span></div><div><span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">Tamar</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 2:57 PM, Simon Peyton Jones <span dir="ltr"><<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" vlink="#954F72" link="#0563C1">
<div class="m_6248393525636129478WordSection1">
<p class="MsoNormal">Hi Tamar<u></u><u></u></p>
<p class="MsoNormal">One other thing happened to me when building GHC, very early.  See below.  I think the perl concerned is c:/msys64/usr/bin/perl.<u></u><u></u></p>
<p class="MsoNormal">Any ideas?  It seems non-fatal<u></u><u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Simon<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Setting locale failed.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Please check that your locale settings:<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LC_ALL = (unset),<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LANG = "ENG"<u></u><u></u></p>
<p class="m_6248393525636129478Code">    are supported and installed on your system.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Falling back to the standard locale ("C").<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Setting locale failed.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Please check that your locale settings:<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LC_ALL = (unset),<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LANG = "ENG"<u></u><u></u></p>
<p class="m_6248393525636129478Code">    are supported and installed on your system.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Falling back to the standard locale ("C").<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Setting locale failed.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Please check that your locale settings:<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LC_ALL = (unset),<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LANG = "ENG"<u></u><u></u></p>
<p class="m_6248393525636129478Code">    are supported and installed on your system.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Falling back to the standard locale ("C").<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Setting locale failed.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Please check that your locale settings:<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LC_ALL = (unset),<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LANG = "ENG"<u></u><u></u></p>
<p class="m_6248393525636129478Code">    are supported and installed on your system.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Falling back to the standard locale ("C").<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Setting locale failed.<u></u><u></u></p>
<p class="m_6248393525636129478Code">perl: warning: Please check that your locale settings:<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LC_ALL = (unset),<u></u><u></u></p>
<p class="m_6248393525636129478Code">       LANG = "ENG"<u></u><u></u></p>
<p class="m_6248393525636129478Code">    are supported and installed on your system.<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</div>
</div>

</blockquote></div><br></div>