[mercury-users] csharp grade error in mdb.browse.cs

Jeff Thompson jeff at thefirst.org
Thu Dec 2 08:29:27 AEDT 2010



On 11/28/2010 4:27 PM, Peter Wang wrote:
> On 2010-11-27, Jeff Thompson<jeff at thefirst.org>  wrote:
>    
>> I was able to build top_level.exe.  When I try to compile a .m file
>> I get the following errors. The file builtin.int is there in the
>> subdirectory Mercury/ints.  Do I need to add something so that
>> mercury_compile can find it?
>> mercury_compile: cannot find `builtin.int' in directories .
>> mercury_compile: cannot find `io.int' in directories .
>> mercury_compile: cannot find `private_builtin.int' in directories .
>>      
> Yes, --use-subdirs, which is implied by mmc --make.  You have to use
> mmc --make if targetting C#, as `mmc -s csharp foo' will still assume
> you are trying to link a C program (a low priority bug).
>
> You can use top_level.exe with an existing Mercury installation by
> overriding the MERCURY_COMPILER environment variable in the mmc script.
> Override it with a shell script that calls: mono /path/to/top_level.exe "$@"
>    
I re-built with release of the day 2010-11-29 and compiled top-level.exe 
with no problem.  I created a shell script to call mono 
/path/to/top_level.exe, and set the MERCURY_COMPILER environment 
variable in the mmc script to use it.  Then I try "mmc --csharp --make 
hello_world".  It still gives me:
** Error: error reading file `builtin.m' to generate dependencies.

I copied builtin.m and the other dependent files into the same directory 
as hello_world.m. Then I try "mmc --csharp --make hello_world" and get 
the following:
Making Mercury/ints/hello_world.int
Making Mercury/css/hello_world.cs
Error: system command received signal 255.
** Error making `Mercury/css/hello_world.cs'.

Thanks for any help,
- Jeff


--------------------------------------------------------------------------
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