[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce

Luis Lavena luislavena at gmail.com
Mon Jul 27 20:07:28 EDT 2009


On Mon, Jul 27, 2009 at 8:57 PM, Roger Pack<rogerdpack at gmail.com> wrote:
>> Roger: would you mind run the exact same command from rubyinline
>> repository and paste your output?
>
>
> C:\dev_c\downloads\rubyinline>ruby -d -w -Ilib example.rb
> Exception `LoadError' at
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1106 - no such file to load
> -- rubygems/defaults/operating_system
> Exception `LoadError' at
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
> file to load -- zentest_mapping
> RubyInline v 3.8.2
> Exception `LoadError' at
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
> file to load -- inline/Inline_MyTest_957b.so
> Exception `LoadError' at
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such
> file to load -- inline/Inline_MyTest_957b.so
> Building C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.so with 'gcc
> -shared -s   -g
> -O2  -I c:/ruby/lib/ruby/1.8/i386-mingw32  -I c:/ruby/include
> -Lc:/ruby/lib -o "C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.so"
> "C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.c"
> -Wl,--enable-auto-import -Lc:/ruby/lib -lmsvcrt-ruby18'
> gcc.exe: no input files
> Output:
>
> Exception `CompilationError' at ./lib/inline.rb:589 - error executing
> "gcc -shared -s   -g -O2  -I c:/ruby/lib/ruby/1.8/i386-mingw32  -I
> c:/ruby/include -Lc:/ruby/lib -o \"C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.so\"
> \"C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.c\"
> -Wl,--enable-auto-import -Lc:/ruby/lib -lmsvcrt-ruby18": 256
> Renamed C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.c to
> C:/Documents and Settings/Melissa./lib/inline.rb:589:in `build': error
> executing "gcc -shared -s   -g -O2  -I
> c:/ruby/lib/ruby/1.8/i386-mingw32  -I c:/ruby/include -Lc:/ruby/lib -o
> \"C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.so\"
> \"C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.c\"
> -Wl,--enable-auto-import -Lc:/ruby/lib -lmsvcrt-ruby18": 256
> (CompilationError)
> Renamed C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.c to
> C:/Documents and
> Settings/Melissa.BLACKY/.ruby_inline/Inline_MyTest_957b.c.bad
>        from ./lib/inline.rb:819:in `inline'
>        from example.rb:19

VERY WEIRD.

Even forcing INLINEDIR to be on Documents and Settings is not
triggering the bug you're seeing.

Can you try this GitHub repository?

http://github.com/seattlerb/rubyinline

There must be something else in your environment.

What is the content/format of gcc stub script?

Mine is this:

http://github.com/luislavena/binfiles/blob/master/gcc.bat

Or adding the full path:

http://github.com/luislavena/binfiles/blob/master/full-mingw.bat

Also, would you mind tell me the values of HOME, APPDATA and HOMEDRIVE HOMEPATH?

Thank you.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry


More information about the Rubyinstaller-devel mailing list