[Mono-list] Error: mcs.exe: cannot execute binary file

Martin Baulig martin@gnome.org
21 Jun 2002 02:13:33 +0200


Paolo Molaro <lupus@ximian.com> writes:

> lupus@luna:/mnt/net/mcs/class/corlib$ mcs --timestamp -o S.dll @list
> [05:615] Loading references
> [00:018]    References loaded
> [00:008] Initializing Core Types
> [00:022]    Core Types done
> [00:002] Resolving tree
> [00:089] Populate tree
> [02:252] Emitting code
> System/Double.cs(151) error CS0029: Cannot convert implicitly from `int'
> to `double+State'

Fixed this afternoon.

> System/String.cs(773) error CS0030: Cannot convert type 'int' to 'uint'
> System/String.cs(820) error CS-00-6: Could not find any applicable
> function for this argument list
> System/Enum.cs(168) error CS0029: Cannot convert implicitly from
> `object' to `string'

That's the same bug.

> ** (process:21377): WARNING **: unhandled exception
> System.InvalidOperationException: "typebuilder: System.Enum"
> in <0x000ec> System.Reflection.Emit.TypeBuilder:get_UnderlyingSystemType ()
> in <0x0001c> Mono.CSharp.TypeManager:EnumToUnderlying (System.Type)

Oh, shit. I forgot to commit this and already shut down my hacking machine.

The fix is to add

        if (t == TypeManager.enum_type)
                return t;

to the top of TypeManager.EnumToUnderlying.

-- 
Martin Baulig
martin@gnome.org