[Mono-dev] Mono 3.2.8 fails to compile from source

Jean-Michel.Perraud at csiro.au Jean-Michel.Perraud at csiro.au
Sun Feb 23 22:27:03 UTC 2014


I can report I could compile from the git tag 3.2.8 and the tarball, on a Debian unstable x64, doing a make while a mono 3.2.3 was installed. I had messed up my local 3.2.3 and needed to rebuild/reinstall it to successfully compile 3.2.8.
I also had some difficulties on CentOS starting from the tarball, which I eventually overcame with a few attempts, unfortunately cannot give reproducible steps since this was a trial and error affair.

I did have issues recently with  MCS     [net_2_0] mscorlib.dll and 3.2.7, so your persistence may pay off.

All I can advise is for you to have a recent (3.2.3 or newer) Mono installed prior to building 3.2.8.

Cheers


-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Daniel Isenmann
Sent: Monday, 24 February 2014 7:40 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] Mono 3.2.8 fails to compile from source

Hi,

mono 3.2.8 fails to compile from source tarball (at least on a x86_64, don't tested it on a i686 system). Following error appears:

System.IO.MemoryMappedFiles/MemoryMappedFile.cs(442,8): warning CS0414:
The private field
`System.IO.MemoryMappedFiles.MemoryMappedFile.fileCapacity' is assigned but its value is never used Compilation succeeded - 10 warning(s)
MCS     [build] mcs.exe
AOT     [build] mscorlib.dll.so
AOT     [build] mcs.exe.so
MCS     [build] gacutil.exe
MCS     [build] sn.exe
MCS     [build] culevel.exe
CompileUplevel.cs(943,34): warning CS0618:
`System.CodeDom.Compiler.CodeDomProvider.CreateGenerator()' is obsolete:
`ICodeGenerator is obsolete'
Compilation succeeded - 1 warning(s)
mkdir -p -- ../../class/lib/net_2_0/tmp/
MCS     [net_2_0] mscorlib.dll

Unhandled Exception:
Nested exception detected.
Original Exception: at System.NumberFormatter.GetInstance () <0x00029> at System.NumberFormatter.NumberToString
(string,int,System.IFormatProvider) <0x00016> at int.ToString (string,System.IFormatProvider) <0x00027> at string.FormatHelper
(System.Text.StringBuilder,System.IFormatProvider,string,object[])
<0x00539>
at System.Text.StringBuilder.AppendFormat
(System.IFormatProvider,string,object[]) <0x0002e> at System.Text.StringBuilder.AppendFormat (string,object,object,object) <0x000a2> at Mono.CSharp.ReportPrinter.Print
(Mono.CSharp.AbstractMessage,System.IO.TextWriter,bool) <0x00150> at Mono.CSharp.StreamReportPrinter.Print
(Mono.CSharp.AbstractMessage,bool) <0x00028> at Mono.CSharp.Report.Error (int,Mono.CSharp.Location,string) <0x0008e> at Mono.CSharp.Report.Error (int,Mono.CSharp.Location,string,string)
<0x00040>
at Mono.CSharp.Report.Error (int,string,string) <0x00046> at Mono.CSharp.CommandLineParser.ParseOption
(string,string[]&,Mono.CSharp.CompilerSettings) <0x01fcb> at Mono.CSharp.CommandLineParser.ParseArguments
(Mono.CSharp.CompilerSettings,string[]) <0x0035c> at Mono.CSharp.CommandLineParser.ParseArguments (string[]) <0x00040> at Mono.CSharp.Driver.Main (string[]) <0x00081>

Nested exception:at System.NumberFormatter.GetInstance () <0x00029> at System.NumberFormatter.NumberToString
(string,int,System.IFormatProvider) <0x00016> at int.ToString (string,System.IFormatProvider) <0x00027> at string.FormatHelper
(System.Text.StringBuilder,System.IFormatProvider,string,object[])
<0x00539>
at System.Text.StringBuilder.AppendFormat
(System.IFormatProvider,string,object[]) <0x0002e> at System.Text.StringBuilder.AppendFormat (string,object) <0x00052> at System.Exception.AddFrames
(System.Text.StringBuilder,string,string,System.Diagnostics.StackTrace)
<0x001e9>
at System.Exception.get_StackTrace () <0x0016b> at System.Exception.ToString () <0x0010d>


[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
Original Exception: at System.NumberFormatter.GetInstance () <0x00029> at System.NumberFormatter.NumberToString
(string,int,System.IFormatProvider) <0x00016> at int.ToString (string,System.IFormatProvider) <0x00027> at string.FormatHelper
(System.Text.StringBuilder,System.IFormatProvider,string,object[])
<0x00539>
at System.Text.StringBuilder.AppendFormat
(System.IFormatProvider,string,object[]) <0x0002e> at System.Text.StringBuilder.AppendFormat (string,object,object,object) <0x000a2> at Mono.CSharp.ReportPrinter.Print
(Mono.CSharp.AbstractMessage,System.IO.TextWriter,bool) <0x00150> at Mono.CSharp.StreamReportPrinter.Print
(Mono.CSharp.AbstractMessage,bool) <0x00028> at Mono.CSharp.Report.Error (int,Mono.CSharp.Location,string) <0x0008e> at Mono.CSharp.Report.Error (int,Mono.CSharp.Location,string,string)
<0x00040>
at Mono.CSharp.Report.Error (int,string,string) <0x00046> at Mono.CSharp.CommandLineParser.ParseOption
(string,string[]&,Mono.CSharp.CompilerSettings) <0x01fcb> at Mono.CSharp.CommandLineParser.ParseArguments
(Mono.CSharp.CompilerSettings,string[]) <0x0035c> at Mono.CSharp.CommandLineParser.ParseArguments (string[]) <0x00040> at Mono.CSharp.Driver.Main (string[]) <0x00081>

Nested exception:at System.NumberFormatter.GetInstance () <0x00029> at System.NumberFormatter.NumberToString
(string,int,System.IFormatProvider) <0x00016> at int.ToString (string,System.IFormatProvider) <0x00027> at string.FormatHelper
(System.Text.StringBuilder,System.IFormatProvider,string,object[])
<0x00539>
at System.Text.StringBuilder.AppendFormat
(System.IFormatProvider,string,object[]) <0x0002e> at System.Text.StringBuilder.AppendFormat (string,object) <0x00052> at System.Exception.AddFrames
(System.Text.StringBuilder,string,string,System.Diagnostics.StackTrace)
<0x001e9>
at System.Exception.get_StackTrace () <0x0016b> at System.Exception.ToString () <0x0010d>


../../build/library.make:263: recipe for target '../../class/lib/net_2_0/tmp/mscorlib.dll' failed
make[8]: *** [../../class/lib/net_2_0/tmp/mscorlib.dll] Error 1
../../build/rules.make:143: recipe for target 'do-all' failed
make[7]: *** [do-all] Error 2
../build/rules.make:164: recipe for target 'all-recursive' failed
make[6]: *** [all-recursive] Error 1
build/rules.make:164: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
Makefile:100: recipe for target 'profile-do--net_2_0--all' failed
make[4]: *** [profile-do--net_2_0--all] Error 2
Makefile:96: recipe for target 'profiles-do--all' failed
make[3]: *** [profiles-do--all] Error 2
Makefile:510: recipe for target 'all-local' failed
make[2]: *** [all-local] Error 2
make[2]: Leaving directory '/build/mono/src/mono-3.2.8/runtime'
Makefile:453: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/build/mono/src/mono-3.2.8'
Makefile:380: recipe for target 'all' failed
make: *** [all] Error 2


Anyone have a glue what goes wrong here??

Thanks
Daniel




_______________________________________________
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