[mercury-users] Error: posix incompatible with --csharp-compiler-type microsoft

Jeff Thompson jeff at thefirst.org
Sat Jan 21 06:35:48 AEDT 2012


On 1/19/2012 7:25 PM, Julien Fischer wrote:
>
> On Fri, 20 Jan 2012, Julien Fischer wrote:
>
>>
>> On Thu, 19 Jan 2012, Jeff Thompson wrote:
>>
>>> I built the latest beta release mercury-11.07.1-beta-2012-01-18 in 
>>> cygwin on Windows 7 with make install LIBGRADES=csharp.  This has 
>>> worked for me many times before, especially the stable 11.07 
>>> release.  Now, when I make with:
>>>
>>> $ /usr/local/mercury-11.07.1-beta-2012-01-18/bin/mercury.bat 
>>> --mercury-stdlib-dir 
>>> /usr/local/mercury-11.07.1-beta-2012-01-18/lib/mercury -m --csharp 
>>> testMercury
>>>
>>> it gives the error:
>>>
>>> mercury_compile: `--host-env-type posix` is incompatible with
>>>  `--csharp-compiler-type microsoft'.
>>> Mercury Compiler, version 11.07.1-beta-2012-01-18, configured for 
>>> i686-pc-cygwin
>>>
>>> Any hints on how to fix?
>>
>> Give the compiler the option --env-type=cygwin.  (See the
>> --env-type, --host-env-type and --target-env-type opions for details.)
>
> You can set the above option in the Mercury.config file
> (in <install-prefix>lib/mercury/conf/Mercury.config), by appending
>
>    MCFLAGS+=--env-type=cygwin
>
> to that file.
> (I will fix the compiler so that it does select the appropriate
> environment type on MinGW and Cygwin systems.)
>

Looking good.  The latest release of the day fixes this.  (And it uses 
double instead of object in the C# struct, as advertised.)

Thanks,
- Jeff

--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list