2024-10-16 00:28 AEDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000222mercuryBugpublic2013-05-28 13:47
Reportergloomdemon 
Assigned Tojuliensf 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
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

-Relationships
+Relationships

-Notes

~0000367

juliensf (administrator)

IIRC, the non-C backends (csharp, java, and erlang) require the use of mmc --make in order
to work properly.

~0000529

juliensf (administrator)

The documentation for the non-C backend is now clearer about the requirement for mmc --make.
+Notes

-Issue History
Date Modified Username Field Change
2011-10-18 19:14 gloomdemon New Issue
2011-10-18 21:33 juliensf Note Added: 0000367
2011-10-18 21:33 juliensf Status new => acknowledged
2013-05-28 13:47 juliensf Note Added: 0000529
2013-05-28 13:47 juliensf Status acknowledged => resolved
2013-05-28 13:47 juliensf Resolution open => fixed
2013-05-28 13:47 juliensf Assigned To => juliensf
+Issue History