[mercury-users] Weird and annoying showstopper building Mercury 11.07.1

Michael Richter ttmrichter at gmail.com
Tue Jul 31 22:08:07 AEST 2012

./configure --enable-java --enable-erlang && make && sudo make install

This terminates with:

mmc --generate-dependencies --grade asm_fast.gc.debug
--mercury-linkage shared --flags LIB_FLAGS   --flags INTER_FLAGS
--no-warn-nothing-exported --no-warn-unused-imports   mer_std
mercury_compile: `--host-env-type posix` is incompatible with
  `--csharp-compiler-type microsoft'.
Mercury Compiler, version 11.07.1, configured for x86_64-unknown-linux-gnu
Copyright (C) 1993-2012 The University of Melbourne
Usage: mmc [<options>] <arguments>
Use `mmc --help' for more information.
make[2]: *** [mer_std.depend] Error 1
make[2]: Leaving directory
To clean up from failed install, remove
make[1]: *** [install_grades] Error 1
make[1]: Leaving directory
make: *** [install] Error 2

This is all stuff which has been built on this very machine before, so
something I've installed since then has confused the configure script into
thinking I have the Microsoft C# compiler.  A few questions, though:

1. Why is --csharp-compiler-type microsoft being issued *at all* given that
I didn't --enable-csharp-grade nor --enable-dotnet-grade?
2. How is configure managing to think I have the Microsoft C# compiler on a
POSIX system?  (As in, why is configure even *LOOKING* for the Microsoft
compiler on a POSIX system?)
3. How do I fix this?

#3 is the most important part because I'm absolutely show-stopped right
now.  In a fit of stupidity I accidentally installed this over top of a
working Mercury installation and now I have a completely broken setup.
Zapping the whole /usr/local/mercury* thing isn't fixing it.

"Perhaps people don't believe this, but throughout all of the discussions
of entering China our focus has really been what's best for the Chinese
people. It's not been about our revenue or profit or whatnot."
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20120731/b5d6c240/attachment.html>

More information about the users mailing list