[Ironruby-core] Compiling on Mono?

Alistair Bush ali_bush at gentoo.org
Sun Oct 24 19:10:34 EDT 2010


> I have this branch successfully compiling on Mono:
> http://github.com/mletterle/ironruby/tree/linux
> 
> compile with xbuild /property:TreatWarningsAsErrors=false
> /property:DefineConstants="DEBUG MONO" Ruby.csproj

The interesting part is how did you get the other projects that Ruby,csproj 
depends on to build.....

MemoryMapping.V2.cs(16,12): error CS0234: The type or namespace name `Unix' 
does not exist in the namespace `Mono'. Are you missing an assembly reference?
                                        Task "Csc" execution -- FAILED
                                        Done building target "CoreCompile" in 
project "~/gentoo/dotnet/mono/ironruby-
mletterle/Runtime/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj".-- 
FAILED

and

dotnet/mono/ironruby-
mletterle/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj (default 
targets) ->
/usr/lib64/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) ->

        Hosting/ScriptScope.cs(229,21): error CS0030: Cannot convert type 
`System.Collections.Generic.KeyValuePair<string,dynamic>' to 
`System.Collections.Generic.KeyValuePair<string,object>'

and

dotnet/mono/ironruby-
mletterle/Runtime/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj 
(default targets) ->
/usr/lib64/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) ->

        MemoryMapping.V2.cs(16,12): error CS0234: The type or namespace name 
`Unix' does not exist in the namespace `Mono'. Are you missing an assembly 
reference?

         1 Warning(s)
         2 Error(s)

Looking at the Microsoft.Scripting.* projects so no reference to Mono specific 
libraries  (aka Mono.Posix).

> 
> On Sun, Oct 24, 2010 at 3:23 PM, Andrius Bentkus
> 
> <Andrius.Bentkus at rwth-aachen.de> wrote:
> > Hello,
> > I know there is a special outdated branch provided by casualjim which
> > lets you compile ironruby on mono/linux, but what about the current
> > version? Can I compile it with mono? I tried using the 2.8 release of
> > mono to compile ironruby 1.1.1, but it would result in an error:
> >         Runtime/SavableScriptCode.cs(40,47): error CS0246: The type or
> > namespace name `ScriptCode' could not be found. Are you missing a using
> > directive or an assembly reference?
> >         Runtime/LanguageBoundTextContentProvider.cs(26,62): error CS0246:
> > The type or namespace name `TextContentProvider' could not be found. Are
> > you missing a using directive or an assembly reference?
> >         Runtime/SourceStringContentProvider.cs(25,57): error CS0246: The
> > type or namespace name `TextContentProvider' could not be found. Are you
> > missing a using directive or an assembly reference?
> >         Runtime/NullTextContentProvider.cs(24,51): error CS0246: The type
> > or namespace name `TextContentProvider' could not be found. Are you
> > missing a using directive or an assembly reference?
> >         SourceFileContentProvider.cs(27,55): error CS0246: The type or
> > namespace name `StreamContentProvider' could not be found. Are you
> > missing a using directive or an assembly reference?
> > _______________________________________________
> > Ironruby-core mailing list
> > Ironruby-core at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/ironruby-core


More information about the Ironruby-core mailing list