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

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Jan 20 14:25:02 AEDT 2012

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


to that file.
(I will fix the compiler so that it does select the appropriate
environment type on MinGW and Cygwin systems.)

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