mingw-users

I have been trying to get mingw installed on a computer which is not networked. I get errors if I just copy the normal installation scripts (mingw-get), as these apparently execute downloads.
This is a WinXP 32 bit machine.
Based on the notes on the installation web page, I've manually downloaded the items listed below which were placed in a freshly created C:\MinGW directory and expanded.
Alas, after expanding these in C:\MinGW, and adding C:\MinGW\bin to my path I'm getting the following error when attempting to compile a simple fortran program with C:\MinGW\bin\gfortran.exe:
'CreateProcess: No such file or directory'.
It seems like 'CreateProcess' is missing, presumably part of the gcc compiler. Is the list below incomplete or incorrect? Is there a simpler way to do this?
Thanks,
Wharton
Downloaded items:
binutils:
- binutils-2.22-1-mingw32-src.tar.lzma
Mingw runtime (dev and dll):
mingwrt-3.20-mingw32-dev.tar.gz
mingwrt-3.20-mingw32-dll.tar.gz
mpc (dev and dll):
mpc-0.8.1-1-mingw32-dev.tar.lzma
libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
mpfr (dev and dll):
mpfr-2.4.1-1-mingw32-dev.tar.lzma
libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
gmp (dev and dll)
gmp-5.0.1-1-mingw32-dev.tar.lzma
libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
pthreads (dev and dll):
pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
gomp:
libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
ssp:
libssp-4.6.1-2-mingw32-dll-0.tar.lzma
intl:
libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
iconv (dev and dll)
libiconv-1.14-2-mingw32-dev.tar.lzma
libiconv-1.14-2-mingw32-dll-2.tar.lzma
gcc-core: (bin and dll)
gcc-core-4.6.1-2-mingw32-bin.tar.lzma
libgcc-4.6.1-2-mingw32-dll-1.tar.lzma
I also downloaded gfortran with bin and dll files:
gcc-fortran-4.6.1-2-mingw32-bin.tar.lzma
libgfortran-4.6.1-2-mingw32-dll-3.tar.lzma

James,
I don't actually have any make.exe in my path at all.
Based on your suggestion, I also did 'echo $GCC_EXEC_PREFIX' and that variable is not set (at least the MSYS shell I am using doesn't have it).
The absence of any make.exe did cause a warning message when I installed MSYS (version 1.0.11). However the MSYS shell does work.
Is the error 'CreateProcess: No such file or directory' when I attempt to compile a program possibly related to not having a make.exe? If so, are there additional items which need to be installed, beyond those I listed in my original message (see bottom of current)?
Thanks,
Wharton
From: James Yoo [mailto:james.yoo+mingw@...]
Sent: Sunday, February 05, 2012 11:31 AM
To: MinGW Users List
Subject: Re: [Mingw-users] Problem installing MinGW on non-networked computer
I think that is a really generic error message... it could be that there's another make.exe in your path or that a GCC_EXEC_PREFIX environment variable may be incorrectly defined... something along those lines.
On Sun, Feb 5, 2012 at 11:02 AM, Sinkler, Wharton <Wharton.Sinkler@...> wrote:
I have been trying to get mingw installed on a computer which is not networked. I get errors if I just copy the normal installation scripts (mingw-get), as these apparently execute downloads.
This is a WinXP 32 bit machine.
Based on the notes on the installation web page, I've manually downloaded the items listed below which were placed in a freshly created C:\MinGW directory and expanded.
Alas, after expanding these in C:\MinGW, and adding C:\MinGW\bin to my path I'm getting the following error when attempting to compile a simple fortran program with C:\MinGW\bin\gfortran.exe:
'CreateProcess: No such file or directory'.
It seems like 'CreateProcess' is missing, presumably part of the gcc compiler. Is the list below incomplete or incorrect? Is there a simpler way to do this?
Thanks,
Wharton
Downloaded items:
binutils:
- binutils-2.22-1-mingw32-src.tar.lzma
Mingw runtime (dev and dll):
mingwrt-3.20-mingw32-dev.tar.gz
mingwrt-3.20-mingw32-dll.tar.gz
mpc (dev and dll):
mpc-0.8.1-1-mingw32-dev.tar.lzma
libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
mpfr (dev and dll):
mpfr-2.4.1-1-mingw32-dev.tar.lzma
libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
gmp (dev and dll)
gmp-5.0.1-1-mingw32-dev.tar.lzma
libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
pthreads (dev and dll):
pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
gomp:
libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
ssp:
libssp-4.6.1-2-mingw32-dll-0.tar.lzma
intl:
libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
iconv (dev and dll)
libiconv-1.14-2-mingw32-dev.tar.lzma
libiconv-1.14-2-mingw32-dll-2.tar.lzma
gcc-core: (bin and dll)
gcc-core-4.6.1-2-mingw32-bin.tar.lzma
libgcc-4.6.1-2-mingw32-dll-1.tar.lzma
I also downloaded gfortran with bin and dll files:
gcc-fortran-4.6.1-2-mingw32-bin.tar.lzma
libgfortran-4.6.1-2-mingw32-dll-3.tar.lzma

I don't believe the "create process" error is specifically related to not
having a make (I'm certainly not an expert, just trying to relate some of
the issues I had to recently deal with trying to compile some libs with
mingw.) That error could also be due to a missing subprogram that
gfortran/gcc needs. what does your mingw/libexec/gcc/mingw32/<version
number>/ directory contain? Are there any other gfortran compilers or
other build tools in your path? Is msys/bin also in your path?
Here's a page that lists some env vars that affect gcc that I found useful
(although for an older version)
http://sunsite.ualberta.ca/Documentation/Gnu/gcc-3.0.2/html_node/gcc_53.html
On Mon, Feb 6, 2012 at 8:13 AM, Sinkler, Wharton <Wharton.Sinkler@...>wrote:
> James,
>
> I don't actually have any make.exe in my path at all.
>
> Based on your suggestion, I also did 'echo $GCC_EXEC_PREFIX' and that
> variable is not set (at least the MSYS shell I am using doesn't have it).
>
> The absence of any make.exe did cause a warning message when I installed
> MSYS (version 1.0.11). However the MSYS shell does work.
>
> Is the error 'CreateProcess: No such file or directory' when I attempt to
> compile a program possibly related to not having a make.exe? If so, are
> there additional items which need to be installed, beyond those I listed in
> my original message (see bottom of current)?
>
> Thanks,
> Wharton
>
> From: James Yoo [mailto:james.yoo+mingw@...]
> Sent: Sunday, February 05, 2012 11:31 AM
> To: MinGW Users List
> Subject: Re: [Mingw-users] Problem installing MinGW on non-networked
> computer
>
> I think that is a really generic error message... it could be that there's
> another make.exe in your path or that a GCC_EXEC_PREFIX environment
> variable may be incorrectly defined... something along those lines.
> On Sun, Feb 5, 2012 at 11:02 AM, Sinkler, Wharton <Wharton.Sinkler@...>
> wrote:
> I have been trying to get mingw installed on a computer which is not
> networked. I get errors if I just copy the normal installation scripts
> (mingw-get), as these apparently execute downloads.
>
> This is a WinXP 32 bit machine.
>
> Based on the notes on the installation web page, I've manually downloaded
> the items listed below which were placed in a freshly created C:\MinGW
> directory and expanded.
>
> Alas, after expanding these in C:\MinGW, and adding C:\MinGW\bin to my
> path I'm getting the following error when attempting to compile a simple
> fortran program with C:\MinGW\bin\gfortran.exe:
> 'CreateProcess: No such file or directory'.
>
> It seems like 'CreateProcess' is missing, presumably part of the gcc
> compiler. Is the list below incomplete or incorrect? Is there a simpler
> way to do this?
>
> Thanks,
> Wharton
>
> Downloaded items:
> binutils:
> - binutils-2.22-1-mingw32-src.tar.lzma
> Mingw runtime (dev and dll):
> mingwrt-3.20-mingw32-dev.tar.gz
> mingwrt-3.20-mingw32-dll.tar.gz
> mpc (dev and dll):
> mpc-0.8.1-1-mingw32-dev.tar.lzma
> libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
> mpfr (dev and dll):
> mpfr-2.4.1-1-mingw32-dev.tar.lzma
> libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
> gmp (dev and dll)
> gmp-5.0.1-1-mingw32-dev.tar.lzma
> libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
> pthreads (dev and dll):
> pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
> libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
> gomp:
> libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
> ssp:
> libssp-4.6.1-2-mingw32-dll-0.tar.lzma
> intl:
> libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
> iconv (dev and dll)
> libiconv-1.14-2-mingw32-dev.tar.lzma
> libiconv-1.14-2-mingw32-dll-2.tar.lzma
> gcc-core: (bin and dll)
> gcc-core-4.6.1-2-mingw32-bin.tar.lzma
> libgcc-4.6.1-2-mingw32-dll-1.tar.lzma
>
> I also downloaded gfortran with bin and dll files:
> gcc-fortran-4.6.1-2-mingw32-bin.tar.lzma
> libgfortran-4.6.1-2-mingw32-dll-3.tar.lzma
>
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@...
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same. Disregard for the list
> etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-request@...?subject=unsubscribe
>

PLEASE, DO NO TOP POST
On Mon, Feb 6, 2012 at 9:13 AM, Sinkler, Wharton
<Wharton.Sinkler@...> wrote:
> James,
>
> I don't actually have any make.exe in my path at all.
>
> Based on your suggestion, I also did 'echo $GCC_EXEC_PREFIX' and that variable is not set (at least the MSYS shell I am using doesn't have it).
>
> The absence of any make.exe did cause a warning message when I installed MSYS (version 1.0.11). However the MSYS shell does work.
>
> Is the error 'CreateProcess: No such file or directory' when I attempt to compile a program possibly related to not having a make.exe? If so, are there additional items which need to be installed, beyond those I listed in my original message (see bottom of current)?
>
No, it is obviously something else.
Attach the output of msysinfo.
--
Earnie
-- https://sites.google.com/site/earnieboyd

-----Original Message-----
From: Earnie Boyd [mailto:earnie@...]
Sent: Monday, February 06, 2012 9:51 AM
To: MinGW Users List
Subject: Re: [Mingw-users] Problem installing MinGW on non-networked computer
PLEASE, DO NO TOP POST
On Mon, Feb 6, 2012 at 9:13 AM, Sinkler, Wharton
<Wharton.Sinkler@...> wrote:
>> James,
>>
>> I don't actually have any make.exe in my path at all.
>>
>> Based on your suggestion, I also did 'echo $GCC_EXEC_PREFIX' and that variable is not set (at least the MSYS shell I am using doesn't have it).
>>
>> The absence of any make.exe did cause a warning message when I installed MSYS (version 1.0.11). However the MSYS shell does work.
>>
>> Is the error 'CreateProcess: No such file or directory' when I attempt to compile a program possibly related to not having a make.exe? If so, are there additional items which need to be installed, beyond those I listed in my original message (see bottom of current)?
>>
>No, it is obviously something else.
>Attach the output of msysinfo.
Earnie,
I've attached the output from msysinfo >msysinfo-output.txt
In addition to the text file attached, there were two messages on the console:
1) /bin/msysinfo line 13: ld Command not found (sounds like probably the source of the problem);
2) ls .exe file not found.
Thanks,
Wharton

On Mon, Feb 6, 2012 at 2:23 PM, Sinkler, Wharton
<Wharton.Sinkler@...> wrote:
>
>
> -----Original Message-----
> From: Earnie Boyd [mailto:earnie@...]
> Sent: Monday, February 06, 2012 9:51 AM
> To: MinGW Users List
> Subject: Re: [Mingw-users] Problem installing MinGW on non-networked computer
>
> PLEASE, DO NO TOP POST
>
> On Mon, Feb 6, 2012 at 9:13 AM, Sinkler, Wharton
> <Wharton.Sinkler@...> wrote:
>>> James,
>>>
>>> I don't actually have any make.exe in my path at all.
>>>
>>> Based on your suggestion, I also did 'echo $GCC_EXEC_PREFIX' and that variable is not set (at least the MSYS shell I am using doesn't have it).
>>>
>>> The absence of any make.exe did cause a warning message when I installed MSYS (version 1.0.11). However the MSYS shell does work.
>>>
>>> Is the error 'CreateProcess: No such file or directory' when I attempt to compile a program possibly related to not having a make.exe? If so, are there additional items which need to be installed, beyond those I listed in my original message (see bottom of current)?
>>>
>
>>No, it is obviously something else.
>
>>Attach the output of msysinfo.
>
> Earnie,
>
> I've attached the output from msysinfo >msysinfo-output.txt
>
> In addition to the text file attached, there were two messages on the console:
> 1) /bin/msysinfo line 13: ld Command not found (sounds like probably the source of the problem);
Since, ld is the linker, I'll agree. Try installing binutils.
> 2) ls .exe file not found.
>
So you can't do ls.exe? That would mean you have an incomplete MSYS
base install.
--
Earnie
-- https://sites.google.com/site/earnieboyd

Am 06.02.2012 20:23, schrieb Sinkler, Wharton:
>
>
[...]
> In addition to the text file attached, there were two messages on the console:
> 1) /bin/msysinfo line 13: ld Command not found (sounds like probably the source of the problem);
> 2) ls .exe file not found.
Well, I hope your problem has been solved over the time...
Just to point to my "bug-reports" from the last year:
3413249 "mingw-get-inst-20110802.exe: as.exe and ld.exe are missing"
http://sourceforge.net/tracker/?func=detail&aid=3413249&group_id=2435&atid=102435
while doing some analyses to find out, what was going wrong, in that
time I got:
3432808 "mingw-get.exe: unexpected status: code = 304"
http://sourceforge.net/tracker/?func=detail&aid=3432808&group_id=2435&atid=102435
So my question to you is, are you behind one ore more PROXYs?
It could be, that some PROXY set a wrong "expire time" for downloaded
files. Have you clean IE-cache (and MinGW-Download-cache)?
@Keith: Up to now my IEcachePROXY is only a (textmode) Viewer, I hadn't
enough time left (family and job) to make my program turning into a
IEcache-Editor.
I hope, that I can figure out how to write into the cache, so that I
am able to simulate what can happen for mingw-get, if some PROXY setting
which values ... (I hadn't forget my promisse)

On 05/02/12 17:02, Sinkler, Wharton wrote:
[Reformatted. Please set your mailer to wrap text at ~72 columns;
an entire paragraph on only one line is difficult to read, difficult to
quote, and likely to get you ignored]
> I have been trying to get mingw installed on a computer which is not
> networked. I get errors if I just copy the normal installation scripts
> (mingw-get), as these apparently execute downloads.
They don't, if you pre-populate the package cache.
> This is a WinXP 32 bit machine.
>
> ...
>
> 'CreateProcess: No such file or directory'.
>
> It seems like 'CreateProcess' is missing, ...
If it is, then the windows kernel itself is missing, because ...
> presumably part of the gcc compiler.
... nope; CreateProcess is one of the kernel services.
Okay. That's pedantic, and not especially helpful. You may wish to
file a bug report with the gcc/gfortran maintainers, because the error
message itself is unhelpful; it *should* tell you which process image
file the CreateProcess service was unable to find, but it omits this
important item of information, (which *must* be known at the point of
origin of the message).
> Downloaded items:
> binutils:
> - binutils-2.22-1-mingw32-src.tar.lzma
This is likely the cause of your problem. I'm guessing that the missing
file is one of the binutils -- ld.exe perhaps. That's provide by the
binutils pre-built binary package, but you've not downloaded that;
you've downloaded only the source code, instead.
> Is there a simpler way to do this?
Yes. Use mingw-get. You *must* have an internet connected host, to
perform your initial downloads anyway. Install mingw-get on that, (or
on a removable USB drive, initially mounted on it), and run:
mingw-get install --download-only gfortran
which will download everything you need, without actually installing it.
Then you copy the mingw-get installation, (or relocate the USB drive),
complete with the content of the var/lib/mingw-get and the
var/cache/mingw-get directory trees, to the offline host. This allows
you to run:
mingw-get install gfortran
offline, to complete the installation.
--
Regards,
Keith.

-----Original Message-----
From: Keith Marshall [mailto:keithmarshall@...]
Sent: Monday, February 06, 2012 2:17 PM
To: mingw-users@...
Subject: Re: [Mingw-users] Problem installing MinGW on non-networked computer
On 05/02/12 17:02, Sinkler, Wharton wrote:
[Reformatted. Please set your mailer to wrap text at ~72 columns;
an entire paragraph on only one line is difficult to read, difficult to
quote, and likely to get you ignored]
> I have been trying to get mingw installed on a computer which is not
> networked. I get errors if I just copy the normal installation scripts
> (mingw-get), as these apparently execute downloads.
They don't, if you pre-populate the package cache.
> This is a WinXP 32 bit machine.
>
> ...
>
> 'CreateProcess: No such file or directory'.
>
> It seems like 'CreateProcess' is missing, ...
If it is, then the windows kernel itself is missing, because ...
> presumably part of the gcc compiler.
... nope; CreateProcess is one of the kernel services.
Okay. That's pedantic, and not especially helpful. You may wish to
file a bug report with the gcc/gfortran maintainers, because the error
message itself is unhelpful; it *should* tell you which process image
file the CreateProcess service was unable to find, but it omits this
important item of information, (which *must* be known at the point of
origin of the message).
> Downloaded items:
> binutils:
> - binutils-2.22-1-mingw32-src.tar.lzma
This is likely the cause of your problem. I'm guessing that the missing
file is one of the binutils -- ld.exe perhaps. That's provide by the
binutils pre-built binary package, but you've not downloaded that;
you've downloaded only the source code, instead.
> Is there a simpler way to do this?
Yes. Use mingw-get. You *must* have an internet connected host, to
perform your initial downloads anyway. Install mingw-get on that, (or
on a removable USB drive, initially mounted on it), and run:
mingw-get install --download-only gfortran
which will download everything you need, without actually installing it.
Then you copy the mingw-get installation, (or relocate the USB drive),
complete with the content of the var/lib/mingw-get and the
var/cache/mingw-get directory trees, to the offline host. This allows
you to run:
mingw-get install gfortran
offline, to complete the installation.
--
Regards,
Keith.
Keith:
Thanks.
I installed the correct binutils-2.22-1-mingw32-bin.tar.lzma (this was my
bad - should have known anything with 'src' was not what I needed).
Now I am no longer getting the CreateProcess error, and msysinfo doesn't
indicate a problem finding the linker (ld).
Instead, when I invoke gfortran to compile a program the following
errors are generated:
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -ladvapi32
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lshell32
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -luser32
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lkernel32
collect2: ld returned 1 exit status
I also tried (on networked computer) your suggestion mingw-get install --download-only,
but got an error that this is an unrecognized option for mingw-get (I also did mingw-get
update and repeated so this doesn't appear to be due to my having an old
version of mingw-get).
Wharton

> > 'CreateProcess: No such file or directory'.
> >
> You may wish to
> file a bug report with the gcc/gfortran maintainers, because the error
> message itself is unhelpful; it *should* tell you which process image
> file the CreateProcess service was unable to find, but it omits this
> important item of information, (which *must* be known at the point of
> origin of the message).
I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53286 .
I have to say I'm a bit surprised that the MinGW maintainers, who must
have answered several hundred emails from people confused by this error
message over the past few years, have not taken it upon themselves over
the course of these years to file this bug, which would have taken all
of 3 minutes.
Regards,
Nate

On Tue, May 8, 2012 at 6:37 PM, Nathan Ridge <zeratul976@...> wrote:
>
>> > 'CreateProcess: No such file or directory'.
>> >
>> You may wish to
>> file a bug report with the gcc/gfortran maintainers, because the error
>> message itself is unhelpful; it *should* tell you which process image
>> file the CreateProcess service was unable to find, but it omits this
>> important item of information, (which *must* be known at the point of
>> origin of the message).
>
> I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53286 .
>
> I have to say I'm a bit surprised that the MinGW maintainers, who must
> have answered several hundred emails from people confused by this error
> message over the past few years, have not taken it upon themselves over
> the course of these years to file this bug, which would have taken all
> of 3 minutes.
You do a SWAG at the number of complaints. It is always best for the
user having the issue to file the complaint since we not be able to
produce the issue and the user with the problem has the best knowledge
of it. Maintaining MinGW is a community affair so a maintainer
(*you*) just filed a bug report.
--
Earnie
-- https://sites.google.com/site/earnieboyd