[Mono-dev] Sharing violation exception when building Mono on Win32

Kornél Pál kornelpal at gmail.com
Tue May 9 12:46:33 EDT 2006


This solved the problem. Thanks.

Kornél

----- Original Message ----- 
From: "Zoltan Varga" <vargaz at gmail.com>
To: "Kornél Pál" <kornelpal at gmail.com>
Cc: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, May 09, 2006 5:13 PM
Subject: Re: [Mono-dev] Sharing violation exception when building Mono on 
Win32


This should be fixed in r60449.

      Zoltan

On 5/9/06, Zoltan Varga <vargaz at gmail.com> wrote:
> Its a bug caused by some recent runtime changes.
>
> On 5/9/06, Kornél Pál <kornelpal at gmail.com> wrote:
> > Hi,
> >
> > I haven't checked out Mono for about a week and now when I tried to 
> > compile
> > trunk I got IOException.
> >
> > Please have a look at the attached console output and let me know 
> > whether
> > I'm doing something incorrect or is this a bug in the build process.
> >
> > Kornél
> >
> > MONO_PATH="../../class/lib/net_1_1_bootstrap;$MONO_PATH"
> > /mono/mono/runtime/mono
> > -wrapper  ../../class/lib/net_1_1_bootstrap/mcs.exe
> > /codepage:28591 -nowarn:169,
> > 612,618,649 -d:INSIDE_CORLIB /nologo /optimize -d:NET_1_1 -d:ONLY_1_1
> > /debug+ /d
> > ebug:full
> > /noconfig -unsafe -nostdlib -resource:resources/collation.core.bin -re
> > source:resources/collation.tailoring.bin -resource:resources/collation.cjkCHS.bi
> > n -resource:resources/collation.cjkCHT.bin -resource:resources/collation.cjkJA.b
> > in -resource:resources/collation.cjkKO.bin -resource:resources/collation.cjkKOlv
> > 2.bin -target:library -out:mscorlib.dll
> > @../../build/deps/default_corlib.dll.re
> > sponse
> > System\Int32.cs(146,33): warning CS0168: The variable `e' is declared 
> > but
> > never
> > used
> > System.Security.Permissions\FileIOPermission.cs(531,30): warning CS0162:
> > Unreach
> > able code detected
> > System.Reflection\Binder.cs(153,41): warning CS0162: Unreachable code
> > detected
> > System\MonoType.cs(188,8): warning CS0219: The variable `typesLen' is
> > assigned b
> > ut its value is never used
> > Compilation succeeded - 4 warning(s)
> > MONO_PATH="../../class/lib/net_1_1_bootstrap;$MONO_PATH"
> > /mono/mono/runtime/mono
> > -wrapper  ../../class/lib/net_1_1_bootstrap/sn.exe -q -R mscorlib.dll
> > ../../clas
> > s/mono.snk
> >
> > Unhandled Exception: System.IO.IOException: Sharing violation on path
> > mscorlib.d
> > ll
> > in <0x00336> System.IO.FileStream:.ctor (System.String name, FileMode 
> > mode,
> > File
> > Access access, FileShare share, Int32 bufferSize, Boolean anonymous,
> > FileOptions
> >  options)
> > in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode 
> > mode,
> > File
> > Access access, FileShare share)
> > in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
> > (string,Syste
> > m.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
> > in <0x00021> System.IO.File:OpenWrite (System.String path)
> > in <0x0012e> Mono.Security.StrongName:Sign (System.String fileName)
> > in <0x00124> Mono.Tools.SN:ReSign (System.String assemblyName,
> > System.Security.C
> > ryptography.RSA key)
> > $
> > make[8]: *** [../../class/lib/default/mscorlib.dll] Error 1
> > make[8]: Leaving directory `/mono/mcs/class/corlib'
> > $
> > make[7]: Leaving directory `/mono/mcs/class/corlib'
> > make[6]: *** [all-recursive] Error 1
> > make[6]: Leaving directory `/mono/mcs/class'
> > make[5]: *** [all-recursive] Error 1
> > make[5]: Leaving directory `/mono/mcs'
> > make[4]: *** [profile-do--default--all] Error 2
> > make[4]: Leaving directory `/mono/mcs'
> >
> > Unhandled Exception: System.IO.IOException: Sharing violation on path
> > mscorlib.d
> > ll
> > in <0x00336> System.IO.FileStream:.ctor (System.String name, FileMode 
> > mode,
> > File
> > Access access, FileShare share, Int32 bufferSize, Boolean anonymous,
> > FileOptions
> >  options)
> > in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode 
> > mode,
> > File
> > Access access, FileShare share)
> > in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
> > (string,Syste
> > m.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
> > in <0x00021> System.IO.File:OpenWrite (System.String path)
> > in <0x0012e> Mono.Security.StrongName:Sign (System.String fileName)
> > in <0x00124> Mono.Tools.SN:ReSign (System.String assemblyName,
> > System.Security.C
> > ryptography.RSA key)
> > $
> > make[8]: *** [../../class/lib/default/mscorlib.dll] Error 1
> > make[8]: Leaving directory `/mono/mcs/class/corlib'
> > $
> > make[7]: Leaving directory `/mono/mcs/class/corlib'
> > make[6]: *** [all-recursive] Error 1
> > make[6]: Leaving directory `/mono/mcs/class'
> > make[5]: *** [all-recursive] Error 1
> > make[5]: Leaving directory `/mono/mcs'
> > make[4]: *** [profile-do--default--all] Error 2
> > make[4]: Leaving directory `/mono/mcs'
> > make[3]: *** [profiles-do--all] Error 2
> > make[3]: Leaving directory `/mono/mcs'
> > make[2]: *** [all-local] Error 2
> > make[2]: Leaving directory `/mono/mono/runtime'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/mono/mono'
> > make: *** [all] Error 2
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> 




More information about the Mono-devel-list mailing list