What version of Ruby? The version of GCC and the options feed by Ruby
rbconfig are important.
> So in 3.4.5, gcc specifies an explicit path to cc1. In 4.5.0, it doesn't.
> If I add %DEVKIT%mingw\libexec\gcc\mingw32\4.5.0; to PATH, I can use
> gcc, but I see `gem install` is still broken.
You should not be playing with the PATH, officially only mingw/bin
needs to be added as the other paths are managed internally.
Since seems you're using a Windows vista installation, would you mind
execute the same testing program with GCC 4.5.0 on a elevated command
prompt?
Jon <jon.f...@gmail.com> Sep 22 04:59PM -0400 ^
> Now run in 4.5.0, in a separate window with a clean environment:
> C:\Users\ericp\trash>which gcc
> C:\Devkit450\mingw\bin\gcc.EXE
In addition to Luis's feedback, for the above what else is on your PATH, in which environment are you running 'which', and do you have Cygwin installed?
As I mentioned before, this issue only happen under Vista for previous
GCC 3.4.5 r1 and r2, which was fixed in r3.
See this thread:
http://lists-archives.org/mingw-users/10261-3-4-5-mingw-vista-special-r2-still-broken-on-vista.html
>
> I run with admin privileges all the time -- could you be more specific about
> what I need to do here?
That means that the command prompt is elevated? You are running with
Admin rights? (UAC Stuff)
>
> I don't have a minimal path, but there's no cygwin in it. Again, here's my
> path:
>
> PATH=c:\Devkit450\bin
> c:\Devkit450\mingw\bin
> c:\Ruby192\bin
> C:\Python26\Scripts
> C:\Python26
> C:\apps\php-5.3.0-nts-vc9
> C:\apps\php-5.3.0-nts
> C:\apps\PHP-5.3
> C:\Perl\site\bin
> C:\Perl\bin
> c:\apps\svn\bin
> c:\bin
> c:\Users\ericp\bin
> C:\TclDevKit\bin
> C:\Tcl\bin
> c:\apps\git\bin
> C:\Windows\system32
> C:\Windows
> C:\Windows\System32\Wbem
>
> Note that gcc is at the top of the list. I'm pretty sure the problem is
> that the gcc in
> devkit 4.5.0 doesn't know how to launch cc1.
>
I don't have Vista to test this out, but again, sounds quite similar
to GCC 3.4.5 issue.
Please see the above thread I pointed out and try the things mentioned
by the authors.
Would suggest reporting it to mingw-users as I did.
--
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
Eric...this is maddening and it's a shame you're having to deal with the frustration.
Would you humor me and set the following PATH in a Command Prompt and see if you get the same failure? I'd like to convince myself that nothing else on PATH is messing things up.
PATH=c:\Devkit450\bin
c:\Devkit450\mingw\bin
c:\Ruby192\bin
c:\Windows\system32
c:\Windows
c:\Windows\System32\Wbem
Eventhough it's later in PATH, maybe "c:\apps\git\bin" could be a problem as there's a whole bunch of MSYS stuff in there (like sh.exe, etc) that could be hosing things. A stretch I know :( FWIW, I use the portable version of msysgit and put "c:\git\cmd" on PATH and don't have any problems. Let's see what happens on your system.
Jon
I know this will be annoying, but can you please provide the output as
indicated in the mingw-users thread I mentioned before?
http://lists-archives.org/mingw-users/10262-3-4-5-mingw-vista-special-r2-still-broken-on-vista.html
Thank you.
> On Mon, Sep 27, 2010 at 4:30 PM, Eric Promislow
> <eric.pr...@gmail.com> wrote:
> > I get the exact same result with that minimal path.
> >
> > I ran filemon.exe to watch what's happening. The 3.4.5 gcc
> > find cc1.exe in the expected place, the 4.5.0 gcc doesn't.
> >
> > I also ran `rebase -v 0x30000000 msys-1.0.dll`, with the
> > same results.
> >
>
> I know this will be annoying, but can you please provide the output as
> indicated in the mingw-users thread I mentioned before?
>
> http://lists-archives.org/mingw-users/10262-3-4-5-mingw-vista-special-r2-still-broken-on-vista.html
>
Ugh, this one's no fun at all.
After trying Luis' suggestion, would you add one more test to your Annoying Queue?
A quick check to see if anything else is living where msys-1.0.dll (non and rebased version) wants to live. Here's a memory map pic from my Win7 32-bit system http://www.mediafire.com/i/?cv2qq4ebzqne4t8 showing a typical working case.
1) Download VMMap from http://technet.microsoft.com/en-us/sysinternals/dd535533.aspx and extract somewhere, say "C:\winsystools\vmmap"
2) Set up the same environment that fails...hopefully this means no other programs, shells, browsers, antivirus, etc. running.
3) Open a Command Prompt and type "\Devkit450\msys.bat" to bring up an MSYS shell.
4) run "vmmap.exe" from (1) and select the (hopefully only) "sh.exe" process
5) See if anything else lives at 60800000 (normal DevKit msys-1.0.dll location) or your rebased 30000000 location
Jon
I had hoped to overlay DevKit 3.4.5 on top of my Ruby192 and investigate, but haven't found the time yet...hopefully later today.
Jon
So much for easy :(
This is a stretch, but any chance there's something lurking in C:\Windows or C:\Windows\system32? And I bet it's not environment variables causing problems with just gcc 4.5.0 -> http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
Hmmm...
FYI, I just overlaid DevKit 3.4.5 on my 1.9.2 install with the following PATH and things worked fine for both rdiscount install and basic usage:
C:\Users\Jon>echo %PATH%
C:\DevKit\bin;C:\DevKit\mingw\bin;C:\ruby192\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
So, is this a summary of all the things we've tried so far with no luck?
1) Minimal PATH of just DevKit 4.5.0 dirs, Ruby192 bindir, and basic Vista system dirs (no Cygwin, no git\bin, and no other msys\mingw artifacts)
2) Normal and elevated UAC Command Prompt usage
3) Normal and rebased (30000000) msys-1.0.dll
4) Visual check with vmmap.exe to ensure nothing else (e.g. - antivirus) is living where msys-1.0.dll wants to live
5) gcc -v and -print-search-dirs investigation
6) filemon.exe investigation in which cc1.exe isn't found
Hey Guys,
I think this is turning into a a never ending story. The clear issue
here is Windows Vista and we can't reproduce without it.
Now having Eric information as similarly requested to me by TDM, we
can ask mingw-users about it.
Just for the record, Eric would you mind fill in the form I sent a few
days ago (in case you haven't)
https://spreadsheets.google.com/viewform?formkey=dG1DajlXc0luLTNKdUhYOWRlZ2FleVE6MQ
forgot one...
7) Confirmed that no C:\DevKit450\etc\fstab was (unnecessarily) created
I don't know if you've seen this [1] thread, but could you try building a TDM 4.5.1 based DevKit and see if it solves what looks to be a Vista interaction issue?
1) Clone our repo http://github.com/oneclick/rubyinstaller
2) Put http://gist.github.com/562679 into a <RUBYINSTALLER_REPO_ROOT>\override\build_config.rb file
3) Run "rake devkit sfx=1 override=1" from within <RUBYINSTALLER_REPO_ROOT> and try the generated DevKit (incorrectly named) in <RUBYINSTALLER_REPO_ROOT>\pkg.
Note that this will create a TDM 4.5.1 built rdiscount.so to run against a TDM 4.5.0 ruby192 install, but I don't think (hope) that will be a source of problems.
If you need me to build you a copy, contact me offlist.
Jon
[1] http://groups.google.com/group/rubyinstaller/browse_thread/thread/c198ff7f27149fd8
I've since pushed a new "dk32-451" branch [1] to the repo which you can use to build the 4.5.1 DevKit rather than the previous override instructions.
Jon
[1] http://github.com/oneclick/rubyinstaller/tree/dk32-451
> --
> You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
> To post to this group, send email to rubyin...@googlegroups.com.
> To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
>
Jon