[Ironruby-core] bug?

Will Green will at hotgazpacho.org
Fri Jun 25 11:01:36 EDT 2010


That depends on how the platform is determined by mkrf. Can you verify what
mkrf is using to determine the platform? Here's a printout of IronRuby's
RbConfig:

>>> pp RbConfig::CONFIG
{"MAJOR"=>"1",
 "MINOR"=>"8",
 "TEENY"=>"6",
 "PATCHLEVEL"=>"0",
 "EXEEXT"=>".exe",
 "ruby_install_name"=>"ir",
 "RUBY_INSTALL_NAME"=>"ir",
 "RUBY_SO_NAME"=>"msvcrt-ruby18",
 "SHELL"=>"$(COMSPEC)",
 "BUILD_FILE_SEPARATOR"=>"\\",
 "PATH_SEPARATOR"=>";",
 "CFLAGS"=>"-MD -Zi -O2b2xg- -G6",
 "CPPFLAGS"=>"",
 "CXXFLAGS"=>"",
 "FFLAGS"=>"",
 "LDFLAGS"=>"",
 "LIBS"=>"oldnames.lib user32.lib advapi32.lib ws2_32.lib ",
 "bindir"=>"C:/IronRuby/bin",
 "libdir"=>"C:/IronRuby/lib",
 "DESTDIR"=>"C:",
 "prefix"=>"C:/IronRuby",
 "exec_prefix"=>"C:/IronRuby",
 "sbindir"=>"C:/IronRuby/sbin",
 "libexecdir"=>"C:/IronRuby/libexec",
 "datadir"=>"C:/IronRuby/share",
 "sysconfdir"=>"C:/IronRuby/etc",
 "sharedstatedir"=>"C:/etc",
 "localstatedir"=>"C:/var",
 "includedir"=>"C:/IronRuby/include",
 "infodir"=>"C:/IronRuby/info",
 "mandir"=>"C:/IronRuby/man",
 "rubylibdir"=>"C:/IronRuby/lib/ruby/1.8",
 "sitedir"=>"C:/IronRuby/lib/ruby/site_ruby",
 "oldincludedir"=>"/usr/include",
 "host_cpu"=>"i686",
 "host_os"=>"mswin32",
 "target"=>"dotnet2.0",
 "arch"=>"universal-dotnet2.0",
 "build"=>"universal-dotnet2.0",
 "target_alias"=>"dotnet2.0",
 "target_cpu"=>"i386",
 "target_vendor"=>"pc",
 "target_os"=>"mswin32",
 "CC"=>"cl -nologo",
 "CPP"=>"cl -nologo -E",
 "YACC"=>"byacc",
 "RANLIB"=>"",
 "AR"=>"lib -nologo",
 "ARFLAGS"=>"-machine:x86 -out:",
 "LN_S"=>"",
 "SET_MAKE"=>"",
 "CP"=>"copy > nul",
 "ALLOCA"=>"",
 "DEFAULT_KCODE"=>"",
 "OBJEXT"=>"obj",
 "XCFLAGS"=>
  "-DRUBY_EXPORT -I. -IC:/develop/win/ruby/ruby-1.8.6
-IC:/develop/win/ruby/ruby-1.8.6/missing",
 "XLDFLAGS"=>"-stack:0x2000000",
 "DLDFLAGS"=>
  "-link -incremental:no -debug -opt:ref -opt:icf -dll $(LIBPATH)
-def:$(DEFFILE) -implib:$(*F:.so=)-universal-dotnet2.0.lib
-pdb:$(*F:.so=)-universal-dotnet2.0.pdb",
 "ARCH_FLAG"=>"",
 "STATIC"=>"",
 "CCDLFLAGS"=>"",
 "LDSHARED"=>"cl -nologo -LD",
 "DLEXT"=>"so",
 "DLEXT2"=>"dll",
 "LIBEXT"=>"lib",
 "STRIP"=>"",
 "EXTSTATIC"=>"",
 "setup"=>"Setup",
 "MINIRUBY"=>".\\miniruby.exe ",
 "PREP"=>"miniruby.exe",
 "RUNRUBY"=>
  ".\\ruby.exe \"C:/develop/win/ruby/ruby-1.8.6/runruby.rb\"
--extout=\".ext\" --",
 "EXTOUT"=>".ext",
 "ARCHFILE"=>"",
 "RDOCTARGET"=>"install-nodoc",
 "LIBRUBY_LDSHARED"=>"cl -nologo -LD",
 "LIBRUBY_DLDFLAGS"=>" -def:msvcrt-ruby18.def",
 "rubyw_install_name"=>"rubyw",
 "RUBYW_INSTALL_NAME"=>"rubyw",
 "LIBRUBY_A"=>"msvcrt-ruby18-static.lib",
 "LIBRUBY_SO"=>"msvcrt-ruby18.dll",
 "LIBRUBY_ALIASES"=>"",
 "LIBRUBY"=>"msvcrt-ruby18.lib",
 "LIBRUBYARG"=>"msvcrt-ruby18.lib",
 "LIBRUBYARG_STATIC"=>"msvcrt-ruby18-static.lib",
 "LIBRUBYARG_SHARED"=>"msvcrt-ruby18.lib",
 "SOLIBS"=>"",
 "DLDLIBS"=>"",
 "ENABLE_SHARED"=>"yes",
 "OUTFLAG"=>"-Fe",
 "CPPOUTFILE"=>"-P",
 "LIBPATHFLAG"=>" -libpath:\"%s\"",
 "RPATHFLAG"=>"",
 "LIBARG"=>"%s.lib",
 "LINK_SO"=>
  "cl -nologo -LD -Fe$(@) $(OBJS) oldnames.lib user32.lib advapi32.lib
ws2_32.lib  $(LOCAL_LIBS) -link -incremental:no -debug -opt:ref -opt:icf
-dll $(LIBPATH) -def:$(DEFFILE) -implib:$(*F:.so=)-universal-dotnet2.0.lib
-pdb:$(*F:.so=)-universal-dotnet2.0.pdb",
 "COMPILE_C"=>"cl -nologo $(INCFLAGS) -MD -Zi -O2b2xg- -G6  -c
-Tc$(<:\\=/)",
 "COMPILE_CXX"=>"$(CXX) $(INCFLAGS)   -c -Tp$(<:\\=/)",
 "COMPILE_RULES"=>
  "{$(srcdir)}.%s{}.%s: {C:/IronRuby/lib/IronRuby}.%s{}.%s:
{$(hdrdir)}.%s{}.%s: .%s.%s:",
 "RULE_SUBST"=>"{.;$(srcdir);C:/IronRuby/lib/IronRuby;$(hdrdir)}%s",
 "TRY_LINK"=>
  "cl -nologo -Feconftest $(INCFLAGS) -I$(hdrdir)  -MD -Zi -O2b2xg- -G6
$(src) $(LOCAL_LIBS) oldnames.lib user32.lib advapi32.lib ws2_32.lib  -link
 $(LIBPATH) -stack:0x2000000",
 "COMMON_LIBS"=>"m",
 "COMMON_MACROS"=>"WIN32_LEAN_AND_MEAN",
 "COMMON_HEADERS"=>"winsock2.h windows.h",
 "DISTCLEANFILES"=>"vc*.pdb",
 "EXPORT_PREFIX"=>" ",
 "configure_args"=>"--with-make-prog=nmake --enable-shared --with-winsock2",
 "ruby_version"=>"1.8",
 "archdir"=>"C:/IronRuby/lib/ruby/1.8/universal-dotnet2.0",
 "sitelibdir"=>"C:/IronRuby/lib/ruby/site_ruby/1.8",
 "sitearchdir"=>"C:/IronRuby/lib/ruby/site_ruby/1.8/$(sitearch)",
 "topdir"=>"C:/IronRuby/lib/IronRuby"}

--
Will Green
http://hotgazpacho.org/


On Fri, Jun 25, 2010 at 10:13 AM, Roger Pack <lists at ruby-forum.com> wrote:

> Jimmy Schementi wrote:
> > IronRuby doesn't support faster_rubygems as it contains a c-based
> > extension compiled against MRI.
>
> faster_rubygems doesn't contain a c-based extension, it contains a
> mkrf_conf.rb file, which ends up being pure ruby, and works fine with
> jruby (which also doesn't support C extensions), hence my expecting it
> to work with IR [1].
>
> Perhaps I am mistaken?
>
> -r
> [1]
>
> http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_use_a_Rakefile_instead_of_a_Makefile
> --
> Posted via http://www.ruby-forum.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/20100625/dc043d13/attachment-0001.html>


More information about the Ironruby-core mailing list