<p dir="ltr">I tested with Windows 8.1, unfortunately I've no access to anything older at the moment.<br>
My guess is that Windows 7 will be working as well, as the user space stuff didn't change that much. Question is, will a future release of Mercury still support Windows XP. <br>
Java 8 already doesn't work on Windows 8. I'll try to test for that as well, maybe use Microsoft's free virtual machines </p>
On Julien Fischer <jfischer@opturion.com>, Apr 8, 2015 8:51 AM wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p></p><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">

<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style></head>
<body>
<div class="PlainText">Hi Sebastian,<br>
<br>
On Tue, 7 Apr 2015, Sebastian Godelet wrote:<br>
<br>
> While trying to figure out why util/mfiltercc is not filtering that<br>
> gcc `used but undefined' messages on Windows using either cmd.exe or<br>
> the msys shell, I noticed that command redirection is handled<br>
> differently on the win32 platform.<br>
> So just removing the use_win32 specific code in compiler/module_cmds.m<br>
> and building the compiler itself and all other Mercury programs I did<br>
> not notice any observable difference besides the correct filtering of<br>
> that gcc warning.<br>
<br>
My only worry about that is the different support for Windows may have<br>
been required for older versions of Windows.  What version were you<br>
using?<br>
<br>
> --<br>
><br>
> fix util/mfiltercc on Windows<br>
><br>
> Remove Windows specific error redirection handling to enable the mfiltercc <br>
> functionality.<br>
><br>
> compiler/module_cmds.m:<br>
>    see above.<br>
><br>
> --<br>
><br>
> diff --git a/compiler/module_cmds.m b/compiler/module_cmds.m<br>
> index e0c7770..03c3219 100644<br>
> --- a/compiler/module_cmds.m<br>
> +++ b/compiler/module_cmds.m<br>
> @@ -568,10 +568,6 @@ invoke_system_command_maybe_filter_output(Globals, <br>
> ErrorStream, Verbosity,<br>
>         % XXX can't use Bourne shell syntax to redirect on .NET<br>
>         % XXX the output will go to the wrong place!<br>
>         CommandRedirected = Command<br>
> -    ; use_win32 -><br>
> -        % On windows we can't in general redirect standard error in the<br>
> -        % shell.<br>
> -        CommandRedirected = Command ++ " > " ++ TmpFile<br>
>     ;<br>
>         CommandRedirected =<br>
>             string.append_list([Command, " > ", TmpFile, " 2>&1"])<br>
> @@ -608,19 +604,14 @@ invoke_system_command_maybe_filter_output(Globals, <br>
> ErrorStream, Verbosity,<br>
>         io.make_temp(ProcessedTmpFile, !IO),<br>
><br>
>         % XXX we should get rid of use_win32<br>
> -        ( use_win32 -><br>
> +        (<br>
> +            use_win32,<br>
>             get_system_env_type(Globals, SystemEnvType),<br>
> -            ( SystemEnvType = env_type_powershell -><br>
> -                ProcessOutputRedirected = string.append_list(<br>
> -                    ["Get-Content ", TmpFile, " | ", ProcessOutput,<br>
> -                        " > ", ProcessedTmpFile, " 2>&1"])<br>
> -            ;<br>
> -                % On windows we can't in general redirect standard<br>
> -                % error in the shell.<br>
> -                ProcessOutputRedirected = string.append_list(<br>
> -                    [ProcessOutput, " < ", TmpFile, " > ",<br>
> -                        ProcessedTmpFile])<br>
> -            )<br>
> +            SystemEnvType = env_type_powershell<br>
> +        -><br>
> +            ProcessOutputRedirected = string.append_list(<br>
> +                ["Get-Content ", TmpFile, " | ", ProcessOutput,<br>
> +                    " > ", ProcessedTmpFile, " 2>&1"])<br>
<br>
A better solution here would be to avoid the use of the use_win32/0 predicate<br>
at all, by just switching on the system env-type.  (We should get rid<br>
of the use_win32/0 predicate.)<br>
<br>
Cheers,<br>
Julien.<br>
</div>
</body>
</html>
</blockquote>