[m-users.] Compiling Mercury on Windows 11 64bit

Julien Fischer jfischer at opturion.com
Mon Jan 17 14:21:44 AEDT 2022


Hi David,

On Sun, 16 Jan 2022, David Epstein wrote:

> I followed the instructions in the README files, opting to use MSYS2,
> mingw-w64-x86_64, and csc (for C# grade). The process proceeded
> gloriously until the error below. It may be just a warning (?) but it
> stopped compilation. I'm not proficient enough in C to know what to do
> next. Can anyone offer guidance?

There's a couple of things you could try:

1. Use one of the recent ROTDs intead of the 20.06.1, since they no
longer contain the code that is triggering the error.

2. Tell GCC not treat that warning as an error.  You can do this by
creating a file named Mmake.params in the top-level of the source
distribution and putting the following line in it:

     EXTRA_CFLAGS = -Wno-error=array-parameter

Julien.


More information about the users mailing list