<div dir="ltr">Julian, Julien,<div><br></div><div>My grades are:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace">asm_fast.gc.debug.stseg</font></div><div><font face="courier new, monospace">asm_fast.gc.memprof</font></div><div><font face="courier new, monospace">hlc.gc</font></div><div><font face="courier new, monospace">asm_fast.gc.trseg</font></div><div><font face="courier new, monospace">asm_fast.gc</font></div><div><font face="courier new, monospace">asm_fast.gc.prof</font></div><div><font face="courier new, monospace">asm_fast.gc.decldebug.stseg</font></div><div><font face="courier new, monospace">none.gc.stseg</font></div><div><font face="courier new, monospace">asm_fast.gc.profdeep.stseg</font></div><div><font face="courier new, monospace">asm_fast.gc.trseg.debug.stseg</font></div><div><font face="courier new, monospace">none.gc.debug.stseg</font></div></blockquote><div><br></div><div>So that's solved the problem...I will attempt to add in the ones i wanted...the initial configure line was given to me by somebody else on the list a few weeks or so back when I was attempting the build for the first time and it was taking hours!</div><div><br></div><div>Thanks again, I will see how i get on! I am confident in my mercury enough now to see if I can somehow integrate it into Java and Erlang as i use those daily at work.</div><div><br></div><div>Again, thank you both.</div><div>Sean.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 31 Jul 2019 at 11:29, Julien Fischer <<a href="mailto:jfischer@opturion.com">jfischer@opturion.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On Wed, 31 Jul 2019, emacstheviking wrote:<br>
<br>
> I have a github build running:<br>
> <br>
> Mercury Compiler, version DEV, on x86_64-pc-linux-gnu<br>
> Copyright (C) 1993-2012 The University of Melbourne<br>
> Copyright (C) 2013-2019 The Mercury team<br>
> Usage: mmc [<options>] <arguments><br>
> Use `mmc --help' for more information.<br>
> <br>
> mmc --make --target java gives me:<br>
> Use of Boehm GC is incompatible with target language Java<br>
<br>
You probably don't want to use the --target option directly.<br>
The above has set the target language to Java, but left the --gc option<br>
at its default value (e.g. boehm, it needs to be "automatic" for the<br>
non-C grades). Just use the --grade option and it will set all the<br>
appropriate options for you.<br>
<br>
> but using<br>
> mmc --make --grade java j1<br>
<br>
The compiler should be giving an error message about the Java grade not<br>
being installed. (It's possible if there are files left over from a<br>
previous broken installation that error won't be detected however.)<br>
<br>
...<br>
<br>
> So I don't know if I have not got the Java grade or there is some<br>
> other issue. The man page doesn't seem to mention a "list all the<br>
> available grades".<br>
<br>
It is:<br>
<br>
--output-libgrades<br>
Print the list of compilation grades in which a library<br>
to be installed should be built to the standard output.<br>
<br>
If you do:<br>
<br>
$ mmc --output-libgrades<br>
<br>
with no other options, then it will print the list of installed grades.<br>
<br>
> I just git pulled the latest from the repo so I am<br>
> ready to build again and I would like to have:<br>
> - hlc<br>
> - erlang<br>
> - java<br>
> - c#<br>
> <br>
> My configuration incantation the last time I built was:<br>
> ./configure --enable-libgrades=hlc.gc,none.gc.stseg,none.gc.debug.stseg<br>
<br>
And that would install exactly the grades listed. If you want to<br>
install the non-C grades just include them in that list, e.g.<br>
<br>
--enable-libgrades=hlc.gc,none.gc.stseg,none.gc.debug.stseg,java,csharp,erlang<br>
<br>
> I am not sure what options to pass for erlang, java and c# as they<br>
> probably don't use the Boehm GC either...<br>
<br>
As I mentioned above, setting the gc is usually handled implicitly.<br>
<br>
Julien.</blockquote></div>