Mercury Bugs - mercury
View Issue Details
0000222mercuryBugpublic2011-10-18 19:142013-05-28 13:47
Assigned Tojuliensf 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000222: mmc can't compile csharp grade without --make under mingw
Descriptionrotd 2011-10-11, simple hello world program

command 'mmc --make --grade csharp hello' compiles all
command 'mmc --grade csharp hello.m':

$ mmc --grade csharp hello.m
mkinit: error opening file `hello.c': No such file or directory
mkinit: error opening file `c:\mingw\mercury\lib\mercury\modules\csharp\mer_rt.init': No such file or directory
mkinit: error opening file `c:\mingw\mercury\lib\mercury\modules\csharp\mer_std.init': No such file or directory
Error: system command received signal 1.

create files: hello.cs, hello.cs_date, hello.d

mercury compiled with configure options: CFLAGS=-O2 CPPFLAGS=-O2 ./configure --prefix=c:/mingw/mercury --enable-libgrades=asm_fast.gc,asm_fast.gc.debug,asm_fast.gc.decldebug,hlc.gc,hlc.par.gc,reg.gc,csharp --enable-csharp-grade --enable-new-mercuryfile-struct
Additional Informationhello.m:

:- module hello.

:- interface.
:- import_module io.

:- pred main(io::di, io::uo) is det.

:- implementation.
:- import_module int.

main(!IO) :-
    io.write_string("hello ", !IO).
TagsNo tags attached.
Attached Files

2011-10-18 21:33   
IIRC, the non-C backends (csharp, java, and erlang) require the use of mmc --make in order
to work properly.
2013-05-28 13:47   
The documentation for the non-C backend is now clearer about the requirement for mmc --make.

Issue History
2011-10-18 19:14gloomdemonNew Issue
2011-10-18 21:33juliensfNote Added: 0000367
2011-10-18 21:33juliensfStatusnew => acknowledged
2013-05-28 13:47juliensfNote Added: 0000529
2013-05-28 13:47juliensfStatusacknowledged => resolved
2013-05-28 13:47juliensfResolutionopen => fixed
2013-05-28 13:47juliensfAssigned To => juliensf