Luis Lavena
2009-Jul-25 19:01 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
Hello guys, Roger found that RubyINline cannot work with path with spaces, but I just ran a check and it worked: http://pastie.org/558824 Roger: would you mind run the exact same command from rubyinline repository and paste your output? I remember deal with this over XP and fixed these issues using #inspect, which quoted the file paths. Since now I''m using Windows 7 as main development machine, access to Documents and Settings is doable, and I did that to trick the compiler. Perhaps there is something else? Now, in your code here: http://github.com/rogerdpack/rubyinline/commit/cc872bd027a62293d6e85b6556187481b06fe49c Which seems odd. 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
Roger Pack
2009-Jul-27 23:57 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
> 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
Luis Lavena
2009-Jul-28 00:07 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
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:19VERY 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
Roger Pack
2009-Aug-01 10:48 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
> VERY WEIRD.I totally agree. After I sent this email my first thought was "why in the world is it working here and not there?" And I''m still not sure.> Can you try this GitHub repository? > > http://github.com/seattlerb/rubyinlineYeah that was the repository I used.> What is the content/format of gcc stub script? > > Mine is this: > > http://github.com/luislavena/binfiles/blob/master/gcc.batC:\dev\ruby\old\which_ruby>cat c:\ruby\bin\gcc.bat @ECHO OFF SETLOCAL SET DEVKIT=%~dp0..\devkit SET PATH=%DEVKIT%\gcc\3.4.5\bin;%DEVKIT%\msys\1.0.11\bin bash.exe --login -i -c "gcc %*"> Or adding the full path: > > http://github.com/luislavena/binfiles/blob/master/full-mingw.batHere''s my equiv. set PATH=c:\installs\build_env\mingw\bin;c:\installs\build_env\msys\bin;c:\installs\build_env\msys\usr\local\bin;%PATH%> Also, would you mind tell me the values of HOME, APPDATA and HOMEDRIVE HOMEPATH?HOME=C:\Documents and Settings\Default HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Default APPDATA=C:\Documents and Settings\Default\Application Data Thanks for your help with this. =r
Luis Lavena
2009-Aug-01 23:49 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
On Sat, Aug 1, 2009 at 7:48 AM, Roger Pack<rogerdpack at gmail.com> wrote:> > C:\dev\ruby\old\which_ruby>cat c:\ruby\bin\gcc.bat > @ECHO OFF > SETLOCAL > SET DEVKIT=%~dp0..\devkit > SET PATH=%DEVKIT%\gcc\3.4.5\bin;%DEVKIT%\msys\1.0.11\bin > bash.exe ?--login -i -c "gcc %*" >Well, that explains things a bit. You''re calling GCC from inside bash, which is going to mess all the PATH and quotes around the command itself. I found that later than published the devkit, going to work on a patch or new version, but was focusing more on getting the recipes for the Gem. Please change your gcc.bat to only load bin of MinGW and call gcc.exe with %*, like my sample script. Cheating every tool under the sun sometimes doesn''t work. -- 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
Roger Pack
2009-Aug-08 11:35 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
> Please change your gcc.bat to only load bin of MinGW and call gcc.exe > with %*, like my sample script.Sweet that fixed it. I look forward to the new scripts. What are the plans for the devkit, anyway? Is it to be a new installer? -r
Luis Lavena
2009-Aug-08 23:14 UTC
[Rubyinstaller-devel] RubyInline: Path with spaces, cannot reproduce
On Sat, Aug 8, 2009 at 8:35 AM, Roger Pack<rogerdpack at gmail.com> wrote:>> Please change your gcc.bat to only load bin of MinGW and call gcc.exe >> with %*, like my sample script. > > Sweet that fixed it. I look forward to the new scripts. ?What are the > plans for the devkit, anyway? Is it to be a new installer?New installer hopefully if God allows me, this weekend. DevKit? as gem, no installer, so users will require/need internet access. Still no progress on that since I''m still playing with the porting system. -- 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