GNOME Bugzilla – Bug 586979
Banshee does not compile using Mono 1.9.1
Last modified: 2010-08-09 17:09:52 UTC
Please describe the problem: Banshee fails to build using Mono 1.9.1. The build log can be found here: http://launchpadlibrarian.net/27487230/buildlog_ubuntu-intrepid-amd64.banshee_1.5.0-0ubuntu1~hyper2~intrepid1_FAILEDTOBUILD.txt.gz Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information: According to Bertrand, this error is caused by a bug in Mono 1.9.1, fixed in 2.0 and above: https://bugzilla.novell.com/show_bug.cgi?id=357047
Confirming, as it was also reported on the mailing list. The relevant error during compilation is : Making all in Analyzer make[4]: Entering directory `/build/buildd/banshee-1.5.0/tests/Analyzer' MCS Analyzer.exe Analyzer.cs(121,66): error CS0121: The call is ambiguous between the following methods or properties: `System.Linq.Enumerable.Min<Banshee.Tests.TestCase>(System.Collections.Generic.IEnumerable<Banshee.Tests.TestCase>, System.Func<Banshee.Tests.TestCase,double?>)' and `System.Linq.Enumerable.Min<Banshee.Tests.TestCase>(System.Collections.Generic.IEnumerable<Banshee.Tests.TestCase>, System.Func<Banshee.Tests.TestCase,double>)' /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) Analyzer.cs(122,66): error CS0121: The call is ambiguous between the following methods or properties: `System.Linq.Enumerable.Max<Banshee.Tests.TestCase>(System.Collections.Generic.IEnumerable<Banshee.Tests.TestCase>, System.Func<Banshee.Tests.TestCase,double?>)' and `System.Linq.Enumerable.Max<Banshee.Tests.TestCase>(System.Collections.Generic.IEnumerable<Banshee.Tests.TestCase>, System.Func<Banshee.Tests.TestCase,double>)' /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) Analyzer.cs(123,66): error CS0121: The call is ambiguous between the following methods or properties: `System.Linq.Enumerable.Average<Banshee.Tests.TestCase>(System.Collections.Generic.IEnumerable<Banshee.Tests.TestCase>, System.Func<Banshee.Tests.TestCase,double>)' and `System.Linq.Enumerable.Average<Banshee.Tests.TestCase>(System.Collections.Generic.IEnumerable<Banshee.Tests.TestCase>, System.Func<Banshee.Tests.TestCase,double?>)' /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) Analyzer.cs(128,26): error CS0266: Cannot implicitly convert type `double?' to `double'. An explicit conversion exists (are you missing a cast?) Compilation failed: 4 error(s), 0 warnings
I removed the Analyzer from the build; it's only used at the moment for one-off performance testing anyway.
*** Bug 626444 has been marked as a duplicate of this bug. ***