mingw collect2: CreateProcess
Scott Calabrese Barton
scb@msu.edu
Thu Oct 5 01:49:00 GMT 2006
At 11:36 PM +0200 10/4/06, FX Coudert wrote:
>>>When compiling hello.f (listed below) I received the following error:
>>>
>>> > gfortran -o hello hello.f
>>> collect2: CreateProcess: no such file or directory
>
>How are you using the binaries? From mingw, or windows cmd.exe? Do
>you have mingw installed, other that the files contained in the
>package you downloaded from quatramaran.ens.fr (the link from the
>wiki). And, what is the output of "gfortran -v -o hello hello.f"?
>
I only installed the files from the gfortran package, and am running
from cmd.exe. The verbose output longish (sorry) but here it is:
C:\work>gfortran -v hello.F
Driving: gfortran -v hello.F -lgfortranbegin -lgfortran
Using built-in specs.
Target: i386-pc-mingw32
Configured with: ../trunk/configure --prefix=/mingw
--enable-languages=c,fortran --with-gmp=/home/coudert/local
--disable-nls --with-ld=/mingw/bin/ld --with-as=/mingw/bin/as
--disable-werror --enable-bootstrap --enable-threads
--host=i386-pc-mingw32 --disable-shared --enable-libgomp
Thread model: win32gcc version 4.2.0 20060928 (experimental)
c:/progra~1/gnu/gfortran/bin/../libexec/gcc/i386-pc-mingw32/4.2.0/cc1.exe
-E -lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v
-iprefix
c:\progra~1\gnu\gfortran\bin\../lib/gcc/i386-pc-mingw32/4.2.0/
hello.F -mtune=i386 -o C:\DOCUME~1\scott\LOCALS~1\Temp/cc4HIsor.f
ignoring nonexistent directory "c:/MinGW/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "c:/MinGW/lib/gcc/i386-pc-mingw32/4.2.0/include"
ignoring nonexistent directory "c:/MinGW/i386-pc-mingw32/include"
ignoring nonexistent directory "/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
c:/progra~1/gnu/gfortran/bin/../lib/gcc/i386-pc-mingw32/4.2.0/include
End of search list.
hello.F:5: warning: no newline at end of file
c:/progra~1/gnu/gfortran/bin/../libexec/gcc/i386-pc-mingw32/4.2.0/f951.exe
C:\DOCUME~1\scott\LOCALS~1\Temp/cc4HIsor.f -ffixed-form -quiet
-dumpbase hello.F -mtune=i386 -auxbase hello -version -fpreprocessed
-I
c:/progra~1/gnu/gfortran/bin/../lib/gcc/i386-pc-mingw32/4.2.0/finclude
-o C:\DOCUME~1\scott\LOCALS~1\Temp/ccaAE5oO.s
GNU F95 version 4.2.0 20060928 (experimental) (i386-pc-mingw32)
compiled by GNU C version 4.2.0 20060928 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
as -o C:\DOCUME~1\scott\LOCALS~1\Temp/ccel3iqg.o
C:\DOCUME~1\scott\LOCALS~1\Temp/ccaAE5oO.s
c:/progra~1/gnu/gfortran/bin/../libexec/gcc/i386-pc-mingw32/4.2.0/collect2.exe-Bdynamic
c:/progra~1/gnu/gfortran/bin/../lib/gcc/i386-pc-mingw32/4.2.0/../../../crt2.o
-Lc:/progra~1/gnu/gfortran/bin/../lib/gcc/i386-pc-mingw32/4.2.0
-Lc:/progra~1/gnu/gfortran/bin/../lib/gcc
-Lc:/progra~1/gnu/gfortran/bin/../lib/gcc/i386-pc-mingw32/4.2.0/../../..
C:\DOCUME~1\scott\LOCALS~1\Temp/ccel3iqg.o -lgfortranbegin -lgfortran
-lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32
-ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
collect2: CreateProcess: No such file or directory
--
-------------------------------------------------------------
Scott Calabrese Barton, Assistant Professor
Chemical Engineering and Materials Science
Michigan State University
517-355-0222
More information about the Fortran
mailing list