[MLton] Intel Mac version of MLton

John Reppy jhr at cs.uchicago.edu
Mon Oct 9 21:05:20 PDT 2006


With some additional help from Matthew, I've got mlton to  
successfully build
on my Intel iMac.  Are there any regression tests that I should run?   
What
should I do with the result?

Also, I had to make one change to runtime/basis/Ptrace.c, which  
produces an
empty .o file, which bothers ranlib on the Mac.  I added the following:

<jhr at frogbat> svn diff
Index: runtime/basis/Ptrace.c
===================================================================
--- runtime/basis/Ptrace.c      (revision 4721)
+++ runtime/basis/Ptrace.c      (working copy)
@@ -10,4 +10,7 @@
          return ptrace (request, pid, (int) addr, (int) data);
}
+#else
+/* we need the following to make the MacOS linker happy -- jhr  
(2006-10-08) */
+int mlton_no_ptrace_dummy;
#endif

On Oct 4, 2006, at 5:26 PM, Stephen Weeks wrote:

>
> John Reppy has an Intel Mac and has volunteered to try building a
> MLton package, if we can walk him through it.
>
> John, some instructions on porting MLton are at
>
>   http://mlton.org/PortingMLton
>
> You can skip the "What code to change" and move straight to "Running
> the regressions ..." followed by "Bootstrap".
>
> Here's an overview of the steps.
>
>   1. Create a cross compiler using bin/add-cross.
>   2. Check that the cross compiler works.
>   3. Cross compile MLton.
>   4. Compile MLton normally on the target, i.e. "make all install".
>   5. Make a tgz of the install directory.
>
> Don't start just yet.  Matthew has one more commit to make, which he
> will make soon and let you know once he has done so.
>
> Feel free to send questions to MLton at mlton.org.
>




More information about the MLton mailing list