[Mono-bugs] [Bug 686312] New: FSharp.Core.dll for the 4.0 contains duplicates of classes defined in mscorlib

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 8 12:48:05 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=686312

https://bugzilla.novell.com/show_bug.cgi?id=686312#c0


           Summary: FSharp.Core.dll for the 4.0 contains duplicates of
                    classes defined in mscorlib
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: packaging
        AssignedTo: ajorgensen at novell.com
        ReportedBy: st at quanttec.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.16)
Gecko/20110319 Firefox/3.6.16

The Mono 2.10 packages contain a FSharp.Core.dll for the 4.0 runtime that
contains duplicates of the System.Tuple and
System.Collections.IStructural(Comparable|Equatable) classes from mscorlib.

This problem is caused by a bug in the build script for FSharp.Core.dll. The
flag "compiling-fslib-mscorlib40" makes fsc inject the above types into
FSharp.Core.dll. (From what I understand, this flag was meant for development
purposes at Microsoft.)

To correct this issue, remove
"--compiling-fslib-mscorlib40:$(monolibdir)mscorlib.dll" from FLAGS_4_0 in
"/src/fsharp/FSharp.Core/Makefile.in" and from <OtherFlags> in line 31 of
"/src/fsharp/FSharp.Core/FSharp.Core.fsproj" of the github F# source.



Reproducible: Always

Steps to Reproduce:
Try to compile the following C# code, referencing
/usr/lib/mono/4.0/FSharp.Core.dll:

using System;

namespace Test
{
    class MainClass
    {
        public static void Main (string[] args)
        {
            var t = new Tuple<int, int>(1,2);
        }
    }
}

Actual Results:  
Error CS0433: The imported type `System.Tuple<T1,T2>' is defined multiple times
(CS0433) (Test)

Expected Results:  
No compiler error

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list