Web lists-archives.org

Re: [Mingw-users] Necessary environment path settings?




Roland Schwarz wrote:
> With the mingw 3.4.5 release it was possible to invoke
> the compiler just by calling with an absolute path without
> the need to set up the path variable before.
>
> This is not true anymore for 4.2.1. I get a CreateProcess:
> No such file or directory error message instead.
> Has this been changed intentionally?

I can confirm this behavior.

MinGW's release of GCC 3.4.5 contains a large amount of local patching, some 
of which I believe addresses issues like this of finding tools relative to 
the driver executables. If you add "-v" to the command line, I expect you'll 
see that the error message immediately follows a call to "as" (the 
assembler). I imagine that as most of the local patches were ported to the 
mainline sources, this small part didn't quite survive intact.

Looking at the output of `path-to-mingw\gcc.exe -print-search-dirs`, it 
should be fairly obvious what's happening. For the programs search 
directories, there is no path corresponding to the root "bin" directory, 
which is where your binutils executables live. There is, however, a path 
corresponding to "path-to-mingw\mingw32\bin", which is an alternate location 
for the binutils tools. For a workaround, you can try copying the binutils 
executables there. (Depending on which binutils release you have, there may 
already be some empty files there -- I have seen this packaging bug with the 
2.18.50 release.)

Cheers,
John E. / TDM 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users