Actually, now I see that this has nothing to do with Mac OS X. I fail in the same way on a linux system when I try to compile: type foo = NAME of string class bar = object (self) method baz = NAME "test" end If baz has an argument, it compiles without any problem. Similarly, if baz returns a Big_int or just an integer, no problem. Any suggestions? --Mike > I'm attempting to use the ocaml-memprof patch for OCaml 3.12.0 on Mac OS X, > but using the resulting ocamlopt often fails with an assertion: > > Fatal error: exception Assert_failure("bytecomp/typeopt.ml", 569, 9) > > This is an assertion in record_representation when the type parameter's desc > field does not match what is expected (Tconstr). > > Has anyone gotten ocaml-memprof to work on Mac OSX? Otherwise, is there a > description of the internals of this patch somewhere and/or a description of > how the code generation differs between Mac OS X and Linux so I could get some > idea of where to go from here?