[Ironruby-core] Compiling on Mono?

Andrius Bentkus Andrius.Bentkus at rwth-aachen.de
Mon Oct 25 03:13:51 EDT 2010


I got it compiling, there is a missing reference for Mono.Posix, one bad
cast and you need to use CCI in the constants. Does someone know what CCI
should be?

On Mon, Oct 25, 2010 at 1:49 AM, Michael Letterle <
michael.letterle at gmail.com> wrote:

> You may have to compile some of the dependency libraries WITHOUT the
> MONO constant...
>
> On Sun, Oct 24, 2010 at 7:10 PM, Alistair Bush <ali_bush at gentoo.org>
> wrote:
> >> 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
> > _______________________________________________
> > Ironruby-core mailing list
> > Ironruby-core at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/ironruby-core
> >
>
>
>
> --
> Michael Letterle
> IronRuby MVP
> http://blog.prokrams.com
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20101025/75870e7c/attachment.html>


More information about the Ironruby-core mailing list