Bug 3691 - mcs 2.11 fails to resolve extension method when building IronRuby
Summary: mcs 2.11 fails to resolve extension method when building IronRuby
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2012-02-29 16:00 UTC by Alex Corrado [MSFT]
Modified: 2012-03-01 07:44 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Alex Corrado [MSFT] 2012-02-29 16:00:48 UTC
While packaging Mono 2.11 for OSX, I'm getting an error building IronRuby that I did not get when building the same revision on Mono 2.10. It appears to be a compiler bug. I failed to extract an isolated test case, but reproducing from an IronLanguages tree is pretty straightforward. Here's the fastest way:

1. curl -L -o IronLanguages-main-de63773.tgz http://github.com/IronLanguages/main/tarball/de63773744ccf9873c1826470730ae0446fd64d7 && tar xzvf IronLanguages-main-de63773.tgz
2. cd IronLanguages-main-de63773
3. xbuild /p:Configuration=Release Solutions/Ruby.sln

Errors:

/Users/alex/OpenSource/bockbuild/profiles/mono-master-mac/build-root/main-2.11/_build/IronLanguages-main-de63773/Solutions/Ruby.sln (default targets) ->
(Build target) ->
/Users/alex/OpenSource/bockbuild/profiles/mono-master-mac/build-root/main-2.11/_build/IronLanguages-main-de63773/Runtime/Microsoft.Dynamic/Microsoft.Dynamic.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/2.11/lib/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) ->

	Ast/Utils.cs(88,22): error CS1061: Type `System.Linq.Expressions.ExpressionType' does not contain a definition for `IsReadWriteAssignment' and no extension method `IsReadWriteAssignment' of type `System.Linq.Expressions.ExpressionType' could be found (are you missing a using directive or an assembly reference?)
	Ast/Utils.cs(92,22): error CS1061: Type `System.Linq.Expressions.ExpressionType' does not contain a definition for `IsWriteOnlyAssignment' and no extension method `IsWriteOnlyAssignment' of type `System.Linq.Expressions.ExpressionType' could be found (are you missing a using directive or an assembly reference?)
	Interpreter/LoopCompiler.cs(224,41): error CS1061: Type `System.Linq.Expressions.ExpressionType' does not contain a definition for `IsReadWriteAssignment' and no extension method `IsReadWriteAssignment' of type `System.Linq.Expressions.ExpressionType' could be found (are you missing a using directive or an assembly reference?)
	Interpreter/LoopCompiler.cs(224,19): error CS1502: The best overloaded method match for `System.Diagnostics.Debug.Assert(bool)' has some invalid arguments
	Interpreter/LoopCompiler.cs(246,30): error CS1501: No overload for method `Update' takes `2' arguments
	Interpreter/LoopCompiler.cs(245,39): error CS1502: The best overloaded method match for `System.Linq.Expressions.Expression.Block(System.Linq.Expressions.Expression, System.Linq.Expressions.Expression)' has some invalid arguments
	Interpreter/LoopCompiler.cs(250,33): error CS1501: No overload for method `Update' takes `2' arguments
	Interpreter/LoopCompiler.cs(263,41): error CS1061: Type `System.Linq.Expressions.ExpressionType' does not contain a definition for `IsReadWriteAssignment' and no extension method `IsReadWriteAssignment' of type `System.Linq.Expressions.ExpressionType' could be found (are you missing a using directive or an assembly reference?)
	Interpreter/LoopCompiler.cs(263,19): error CS1502: The best overloaded method match for `System.Diagnostics.Debug.Assert(bool)' has some invalid arguments
	Ast/GeneratorRewriter.cs(883,20): error CS0123: A method or delegate `System.Linq.Expressions.BinaryExpression.Update(System.Linq.Expressions.Expression, System.Linq.Expressions.LambdaExpression, System.Linq.Expressions.Expression)' parameters do not match delegate `System.Func<System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression>(System.Linq.Expressions.Expression, System.Linq.Expressions.Expression)' parameters
	Ast/GeneratorRewriter.cs(883,20): error CS1502: The best overloaded method match for `Microsoft.Scripting.Ast.GeneratorRewriter.Rewrite(System.Linq.Expressions.Expression, System.Linq.Expressions.Expression, System.Linq.Expressions.Expression, System.Func<System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression>)' has some invalid arguments
	Ast/GeneratorRewriter.cs(883,20): error CS1503: Argument `#4' cannot convert `method group' expression to type `System.Func<System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression>'

	 0 Warning(s)
	 12 Error(s)
Comment 1 Marek Safar 2012-03-01 07:44:46 UTC
Fixed in master