[Mono-devel-list] 0.29 fails to compile, wrong path separator?
Gonzalo Paniagua Javier
gonzalo at ximian.com
Wed Dec 3 14:30:34 EST 2003
El mié, 03-12-2003 a las 19:24, Alan Jenkins escribió:
> I compiled and installed mono-0.29, then attempted to compile mcs-0.29
> (on linux). I got the following error during the build:
>
>
> MONO_PATH="../../class/lib:$MONO_PATH" mono ../../mcs/mcs.exe
> -d:NET_1_1 -g /noconfig /r:mscorlib.dll /r:System.dll /r:System.Xml.dll
> /r:System.Data.dll /r:ICSharpCode.SharpZipLib.dll /r:System.Design.dll
> /r:System.Drawing.dll /r:System.Windows.Forms.dll
> /res:mysqlclient/Designers/command.bmp
> /res:mysqlclient/Designers/connection.bmp
> /res:mysqlclient/Designers/dataadapter.bmp /target:library
> /out:../../class/lib/ByteFX.Data.dll @ByteFX.Data.dll.sources
>
> Unhandled Exception: System.IO.FileNotFoundException: Could not find
> file "..\..\bytefx.snk"
> in <0x002fa> System.IO.FileStream:.ctor
> (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
> in <0x00086> System.IO.FileStream:.ctor (string,System.IO.FileMode)
> in <0x00065> (wrapper remoting-invoke-with-check)
> System.IO.FileStream:.ctor (string,System.IO.FileMode)
> in <0x00214> System.Reflection.Emit.AssemblyBuilder:SetCustomAttribute
> (System.Reflection.Emit.CustomAttributeBuilder)
> in <0x00df9> Mono.CSharp.Attribute:ApplyAttributes
> (Mono.CSharp.EmitContext,object,object,Mono.CSharp.Attributes)
> in <0x001f9> Mono.CSharp.RootContext:EmitCode ()
> in <0x0081f> Mono.CSharp.Driver:MainDriver (string[])
> in <0x0001b> Mono.CSharp.Driver:Main (string[])
>
> Note that the path separator is wrong for linux. From the filename, i
> guess this has something to do with strongnames. This doesnt look like
> a very general problem as Npgsql appears to compile ok, and there is a
> file class/Npgsql/Npgsql/Npgsql.snk
>
> P.S. The mcs version number has not changed since last version:
>
> mono-0.29/mono/mini/mono mono-0.29/runtime/mcs.exe --version
> Mono C# compiler version 0.28.0.0
>
> All help is gratefully appreciated
Both issues have already been fixed, but after the release.
For the bytefx.snk, edit mcs/class/ByteFX.Data/AssemblyInfo.cs and
comment out the following line:
[assembly: AssemblyKeyFile("..\\..\\bytefx.snk")]
-Gonzalo
More information about the Mono-devel-list
mailing list