[Mono-list] Help running F# on mono in OS X

Jeffrey Vaughan vaughan2 at seas.upenn.edu
Tue May 29 23:32:01 EDT 2007


Hi,

I'm trying use mono to run F# on OS X and am running into some problems.  In
particular, the fsc.exe compiler and the fsi.exe interpreter throw
exceptions on startup.

The fsharp developers indicated that this may be a bug with mono's tail call
optimization.  Another user has filed a bug report against the mono runtime
(http://bugzilla.ximian.com/show_bug.cgi?id=80326), but there has been no
follow up from the mono developers.

I'm tried mono 1.2.3.1 as well as mono 1.2.4.  My operating system is OS X
10.4 and I've tried running several versions of F#, including 1.1.13.8.
More detailed information follows.

Any help diagnosing and correcting this would be greatly appreciated, as I'd
really like to get hacking:)  Thank you!

--Jeff Vaughan

jeff at echo FSharp-1.1.13.8 $ uname -v
Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007;
root:xnu-792.17.14~1/RELEASE_PPC

jeff at echo FSharp-1.1.13.8 $ mono --version
Mono JIT compiler version 1.2.4 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Architecture:  ppc
        Disabled:      none

jeff at echo FSharp-1.1.13.8 $ gacutil -l | egrep 'fslib|mllib|FSharp'
FSharp.Compiler, Version=1.1.13.8, Culture=neutral,
PublicKeyToken=a19089b1c74d0809
FSharp.Compiler10, Version=1.1.13.8, Culture=neutral,
PublicKeyToken=a19089b1c74d0809
fslib, Version=1.1.13.8, Culture=neutral, PublicKeyToken=a19089b1c74d0809
fslib10, Version=1.1.13.8, Culture=neutral, PublicKeyToken=a19089b1c74d0809
mllib, Version=1.1.13.8, Culture=neutral, PublicKeyToken=a19089b1c74d0809
mllib10, Version=1.1.13.8, Culture=neutral, PublicKeyToken=a19089b1c74d0809


jeff at echo FSharp-1.1.13.8 $ mono bin/fsc.exe

Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for
<StartupCode>.Microsoft.FSharp.Compiler.Ast --->
System.NullReferenceException: Object reference not set to an instance of an
object
  at Microsoft.FSharp.Collections.RawSetOps.height at 476
(Microsoft.FSharp.Collections.SetTree t) [0x00000]
  at Microsoft.FSharp.Collections.RawSetOps.mk at 503
(Microsoft.FSharp.Collections.SetTree l, System.Object k,
Microsoft.FSharp.Collections.SetTree r) [0x00000]
  at Microsoft.FSharp.Collections.RawSetOps.add at 543 (IComparer cf,
System.Object k, Microsoft.FSharp.Collections.SetTree t) [0x00000]
  at Microsoft.FSharp.Collections.Tagged.Set.Add (System.Object x) [0x00000]
  at Microsoft.AbstractIL.Internal.Zset+addL at 19.Invoke
(Microsoft.FSharp.Collections.Tagged.Set a, System.Object x) [0x00000]
  at Microsoft.AbstractIL.Internal.Zset+addL at 19.Invoke (System.Object ,
System.Object ) [0x00000]
  at Microsoft.FSharp.Core.FastFunc.InvokeFast2
(Microsoft.FSharp.Core.FastFunc f, System.Object t, System.Object u) [0x00000]
  at Microsoft.FSharp.Primitives.Basics+List.fold_left
(Microsoft.FSharp.Core.FastFunc f, System.Object acc,
Microsoft.FSharp.Collections.List l) [0x00000]
  at Microsoft.AbstractIL.Internal.Zset.addL
(Microsoft.FSharp.Collections.List xs,
Microsoft.FSharp.Collections.Tagged.Set a) [0x00000]
  at <StartupCode>.Microsoft.FSharp.Compiler.Ast..cctor () [0x00000] --- End
of inner exception stack trace ---

  at <0x00000> <unknown method>
  at <StartupCode>.Microsoft.FSharp.Compiler.CommandLineMain._main () [0x00000]
  at <StartupCode>.Microsoft.FSharp.Compiler.CommandLineMain._main () [0x00000]
jeff at echo FSharp-1.1.13.8 $



More information about the Mono-list mailing list