[Mono-dev] problem compiling on cygwin.

Sin Li sinbios at gmail.com
Thu Jan 21 20:02:49 EST 2010


A trace reveals the culprit:

In codegen.cs method Init()
try {
	Assembly.Builder = current_domain.DefineDynamicAssembly (an,
		AssemblyBuilderAccess.RunAndSave | COMPILER_ACCESS, Dirname (name));
}

COMPILER_ACCESS is defined as
#if MS_COMPATIBLE
		const AssemblyBuilderAccess COMPILER_ACCESS = 0;
#else
		/* Keep this in sync with System.Reflection.Emit.AssemblyBuilder */
		const AssemblyBuilderAccess COMPILER_ACCESS = (AssemblyBuilderAccess)
0x800;
#endif

Seems like it's a compiler flag that's not compatible with the clr.


Lucas Meijer-4 wrote:
> 
> Hey,
> 
> I'm compiling mono on windows in sygwin.
> After a few bumps on the road that google and the mono-devel archive took
> care of, I'm now running into this one:
> 
> <snip>
> 
> make[7]: Entering directory `/usr/src/mono/mcs/build'
> make[7]: Leaving directory `/usr/src/mono/mcs/build'
> make[6]: Leaving directory `/usr/src/mono/mcs/build'
> make[6]: Entering directory `/usr/src/mono/mcs/jay'
> make all-local
> make[7]: Entering directory `/usr/src/mono/mcs/jay'
> make[7]: Nothing to be done for `all-local'.
> make[7]: Leaving directory `/usr/src/mono/mcs/jay'
> make[6]: Leaving directory `/usr/src/mono/mcs/jay'
> make[6]: Entering directory `/usr/src/mono/mcs/mcs'
> make all-local
> make[7]: Entering directory `/usr/src/mono/mcs/mcs'
> MCS     [basic] mcs.exe
> 
> Unhandled Exception: System.ArgumentException: Illegal enum value: 2051.
> Parameter name: access
>    at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name,
> Assembly
> BuilderAccess access, String dir, Evidence evidence, PermissionSet
> requiredPermi
> ssions, PermissionSet optionalPermissions, PermissionSet
> refusedPermissions,
> Sta
> ckCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes)
>    at System.AppDomain.DefineDynamicAssembly(AssemblyName name,
> AssemblyBuilderA
> ccess access, String dir)
>    at Mono.CSharp.CodeGen.Init(String name, String output, Boolean
> want_debuggin
> g_support)
>    at Mono.CSharp.Driver.Compile()
>    at Mono.CSharp.Driver.Main(String[] args)
> make[7]: *** [../class/lib/basic/mcs.exe] Error 77
> make[7]: Leaving directory `/usr/src/mono/mcs/mcs'
> make[6]: *** [do-all] Error 2
> make[6]: Leaving directory `/usr/src/mono/mcs/mcs'
> make[5]: *** [all-recursive] Error 1
> 
> </snip>
> 
> Does this ring a bell for anybody?
> 
> When I do a "which mcs" I get:
> /cygdrive/h/Program\ Files/Mono-2.0/bin/mcs
> which seems okay to me.
> 
> Bye, Lucas
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 

-- 
View this message in context: http://old.nabble.com/problem-compiling-on-cygwin.-tp20737913p27266257.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list