Hi, I was trying to build IronRuby from SVN head, but I encountered a few problems: 1. Several times in context.rb, there are calls to String#basename and String#dirname. These should probably be replaced by File.basename(some_string) and File.dirname(some_string), respectively. 2. After fixing this I encountered something an issue because the paths have been hard coded with "\" as the path separator, which doesn''t work on non-Windows systems. Since I''m not sure where all these paths are coming from, and I don''t want to break other things, I''ve added pathname pathname.gsub(''\\'', File::SEPARATOR) at the beginning of the method. 3. This still doesn''t fix things, as the method is receiving a filename surrounded by double quotes ("Actions\ActionSelfExpression.cs"), instead of just the filename. I''m not sure this is to be sure you don''t mess up paths with spaces in them, but it causes trouble here. I''ve hacked around it by removing the quotes before changing the separator issue, but this is obviously a dirty hack. 4. After I did this, it turned out the path being passed resided in a subdirectory of the current directory, instead of the current directory itself. I''m not sure what to do about this issue. Are all the paths refering to ./src/microsoft.scripting/actions? Has anyone else tried running a recent version on Mono? -- Wim Vander Schelden http://fixnum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080902/29137af5/attachment.html>
2008/9/3 Wim Vander Schelden <wim at fixnum.org>:> Has anyone else tried running a recent version on Mono?Yes, please use patches here: http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ -- Seo Sanghyeon
Ok, these patches get me past the errors I got earlier, but a few steps further I run into this: ./utils/helpers.cs(37,20): error CS1502: The best overloaded method match for `System.Reflection.Emit.DynamicMethod.DynamicMethod(string, System.Type, System.Type[], System.Reflection.Module)'' has some invalid arguments /usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error) ./utils/helpers.cs(37,20): error CS1503: Argument 4: Cannot convert type `bool'' to `System.Reflection.Module'' Compilation failed: 2 error(s), 12 warnings I''m using Mono 1.9.1. On Tue, Sep 2, 2008 at 11:27 PM, Seo Sanghyeon <sanxiyn at gmail.com> wrote:> 2008/9/3 Wim Vander Schelden <wim at fixnum.org>: > > Has anyone else tried running a recent version on Mono? > > Yes, please use patches here: > http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/<http://sparcs.kaist.ac.kr/%7Etinuviel/download/IronRuby/> > > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- Wim Vander Schelden http://fixnum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080902/c65d64a8/attachment-0001.html>
2008/9/3 Wim Vander Schelden <wim at fixnum.org>:> I''m using Mono 1.9.1.Yes, these issues are fixed in SVN, but not fixed in any stable releases yet. -- Seo Sanghyeon
On Wed, Sep 03, 2008 at 06:27:15AM +0900, Seo Sanghyeon wrote:> 2008/9/3 Wim Vander Schelden <wim at fixnum.org>: > > Has anyone else tried running a recent version on Mono? > > Yes, please use patches here: > http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ >Seo and I are working on constructing an automated build test machine. We''ll document the process as we proceed. Keep your eye on http://ironruby.colliertech.org/ Cheers, C.J. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080902/21ea0f67/attachment.bin>
hey there Wim, I just finished reviewing Seo''s recent postings and it looks like IronRuby currently requires a Mono from subversion. We''d be happy to walk you through the process on #mono (irc.gimp.net). If you''re familiar with ye olde autotools build system, you can grab the source from svn and go. $ svn co svn://anonsvn.mono-project.com/source/trunk/mono $ cd mono $ svn co svn://anonsvn.mono-project.com/source/trunk/mcs $ wget -O ~/.devenv http://www.colliertech.org/~cjac/scripts/_devenv.sh $ . ~/.devenv $ ./autogen.sh --prefix=$HOME/opt $ make $ make install ... $ which mono Cheers, C.J. On Tue, Sep 02, 2008 at 11:50:07PM +0200, Wim Vander Schelden wrote:> Ok, these patches get me past the errors I got earlier, but a few steps > further I run into this: > > ./utils/helpers.cs(37,20): error CS1502: The best overloaded method match > for `System.Reflection.Emit.DynamicMethod.DynamicMethod(string, System.Type, > System.Type[], System.Reflection.Module)'' has some invalid arguments > /usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous > error) > ./utils/helpers.cs(37,20): error CS1503: Argument 4: Cannot convert type > `bool'' to `System.Reflection.Module'' > Compilation failed: 2 error(s), 12 warnings > > > I''m using Mono 1.9.1. > > On Tue, Sep 2, 2008 at 11:27 PM, Seo Sanghyeon <sanxiyn at gmail.com> wrote: > > > 2008/9/3 Wim Vander Schelden <wim at fixnum.org>: > > > Has anyone else tried running a recent version on Mono? > > > > Yes, please use patches here: > > http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/<http://sparcs.kaist.ac.kr/%7Etinuviel/download/IronRuby/> > > > > -- > > Seo Sanghyeon > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Wim Vander Schelden > http://fixnum.org> _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080902/25276a13/attachment-0001.bin>
I''ve built Mono from SVN (following the instructions found on http://www.mono-project.com/Compiling_Mono) now, but I''m still getting errors. The old ones are fixed, but now I''m getting these (output contains many more warnings, but I don''t think those matter at the moment): ./ast/LambdaExpression.cs(178,20): error CS0122: `System.Linq.Expressions.Expression<TDelegate>.Expression(System.Linq.Expressions.Expression, System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.ParameterExpression>)'' is inaccessible due to its protection level /home/wim/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) ./ast/LambdaExpression.cs(178,20): error CS1729: The type `System.Linq.Expressions.Expression<TDelegate>'' does not contain a constructor that takes `5'' arguments /home/wim/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) ./ast/LambdaExpression.cs(313,20): error CS0122: `System.Linq.Expressions.Expression<TDelegate>.Expression(System.Linq.Expressions.Expression, System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.ParameterExpression>)'' is inaccessible due to its protection level /home/wim/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) ./ast/LambdaExpression.cs(313,20): error CS1729: The type `System.Linq.Expressions.Expression<TDelegate>'' does not contain a constructor that takes `5'' arguments /home/wim/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll (Location of the symbol related to previous error) Any help with this one? I''m really sorry to keep polluting the mailinglist with these problems, but I don''t know where else to look. kind regards, Wim On Wed, Sep 3, 2008 at 12:33 AM, C.J. Adams-Collier <cjac at colliertech.org>wrote:> hey there Wim, > > I just finished reviewing Seo''s recent postings and it looks like > IronRuby currently requires a Mono from subversion. We''d be happy to > walk you through the process on #mono (irc.gimp.net). If you''re > familiar with ye olde autotools build system, you can grab the source > from svn and go. > > $ svn co svn://anonsvn.mono-project.com/source/trunk/mono > $ cd mono > $ svn co svn://anonsvn.mono-project.com/source/trunk/mcs > $ wget -O ~/.devenv http://www.colliertech.org/~cjac/scripts/_devenv.sh<http://www.colliertech.org/%7Ecjac/scripts/_devenv.sh> > $ . ~/.devenv > $ ./autogen.sh --prefix=$HOME/opt > $ make > $ make install > ... > $ which mono > > Cheers, > > C.J. > > On Tue, Sep 02, 2008 at 11:50:07PM +0200, Wim Vander Schelden wrote: > > Ok, these patches get me past the errors I got earlier, but a few steps > > further I run into this: > > > > ./utils/helpers.cs(37,20): error CS1502: The best overloaded method match > > for `System.Reflection.Emit.DynamicMethod.DynamicMethod(string, > System.Type, > > System.Type[], System.Reflection.Module)'' has some invalid arguments > > /usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to > previous > > error) > > ./utils/helpers.cs(37,20): error CS1503: Argument 4: Cannot convert type > > `bool'' to `System.Reflection.Module'' > > Compilation failed: 2 error(s), 12 warnings > > > > > > I''m using Mono 1.9.1. > > > > On Tue, Sep 2, 2008 at 11:27 PM, Seo Sanghyeon <sanxiyn at gmail.com> > wrote: > > > > > 2008/9/3 Wim Vander Schelden <wim at fixnum.org>: > > > > Has anyone else tried running a recent version on Mono? > > > > > > Yes, please use patches here: > > > http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/<http://sparcs.kaist.ac.kr/%7Etinuviel/download/IronRuby/> > <http://sparcs.kaist.ac.kr/%7Etinuviel/download/IronRuby/> > > > > > > -- > > > Seo Sanghyeon > > > _______________________________________________ > > > Ironruby-core mailing list > > > Ironruby-core at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > > > > > -- > > Wim Vander Schelden > > http://fixnum.org > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFIvb84XKBS0hdr6UYRAjuUAJ0TX+XeBGq91FKdAfFBmZuddg2H2QCeIQp4 > cbKyo6Gyh0/QhIfCsFS+GM8> =aX75 > -----END PGP SIGNATURE----- > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Wim Vander Schelden http://fixnum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080905/58dbd805/attachment.html>
Hey, On 9/5/08, Wim Vander Schelden <wim at fixnum.org> wrote:> The old ones are fixed, but now I''m getting thesePass -noconfig to gmcs, that will prevent it to reference System.Core, which causes the conflicts you''re seing. -- Jb Evain <jb at nurv.fr>
I''ve tried alliasing gmcs, but that doesn''t seem to work, how do I make rake use gmcs -noconfig instead of gmcs? kind regards, Wim On Fri, Sep 5, 2008 at 12:16 AM, Jb Evain <jb at nurv.fr> wrote:> Hey, > > On 9/5/08, Wim Vander Schelden <wim at fixnum.org> wrote: > > The old ones are fixed, but now I''m getting these > > Pass -noconfig to gmcs, that will prevent it to reference System.Core, > which causes the conflicts you''re seing. > > -- > Jb Evain <jb at nurv.fr> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- Wim Vander Schelden http://fixnum.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080905/d36a9520/attachment.html>