New Cygwin binary posted. was: help in creating gfortran windows binaries
Angelo Graziosi
Angelo.Graziosi@roma1.infn.it
Sun Jan 28 10:51:00 GMT 2007
Jerry DeLisle wrote:
> I just figured out that I had a mixture of the default Cygwin libraries
> and my own home brew versions of gmp and mpfr libraries. I was having
> trouble with the configure because I had not installed the gmp-devel and
> mpfr-devel which provide the correct headers.
We hope thet the above solve the problems, in any case...
FX Coudert wrote:
> There's something easier to do: run "gfortran -v test.f90" from
> Jerry's binaries: it will echo the exact command lines for the
> subprocesses it spawns. The first one involves a binary named f951.
> Run this (long) command line under gdb, by using:
> " gdb -args /path/to/f951 ..." It wil start gdb, run the program.
> Wait a bit, and then interrupt it with ^C (control-C). gdb will take
> control, and you can ask it where the binary is hanging: type the
> command "where" and report back the output here!
>
> I hope the process is clear :) and I'm sorry if it's too detailed for
> you, but don't know if you have any experience with gdb.
Very limited experience! But for the sake of completeness I have tried
(without good results).
----------------------------
$ irun/bin/gfortran.exe -v hello.F95
Driving: irun/bin/gfortran -v hello.F95 -lgfortranbegin -lgfortran
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc43/configure --prefix=/home/jerry/usr
--enable-languages=c,fortran --enable-bootstrap --enable-threads=posix
--enable-sjlj-exceptions --enable-version-specific-runtime-libs
--enable-nls --disable-libmudflap --disable-shared
--disable-win32-registry --with-system-zlib --without-included-gettext
--without-x --disable-checking --enable-werror
Thread model: posix
gcc version 4.3.0 20070127 (experimental)
/tmp/irun/bin/../libexec/gcc/i686-pc-cygwin/4.3.0/cc1.exe -E
-lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v -iprefix
/tmp/irun/bin/../lib/gcc/i686-pc-cygwin/4.3.0/ -D__CYGWIN32__ -D__CYGWIN__
-Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api
-idirafter ../../include/w32api hello.F95 -mtune=generic -o
/c/DOCUME~1/Angelo/IMPOST~1/Temp/ccQUv9FO.f95
ignoring nonexistent directory
"/tmp/irun/bin/../lib/gcc/i686-pc-cygwin/4.3.0/../../../../i686-pc-cygwin/include"
ignoring nonexistent directory "/tmp/irun/bin/../lib/gcc//include"
ignoring nonexistent directory
"/tmp/irun/bin/../lib/gcc//lib/gcc/i686-pc-cygwin/4.3.0/include"
ignoring nonexistent directory
"/tmp/irun/bin/../lib/gcc//lib/gcc/i686-pc-cygwin/4.3.0/../../../../i686-pc-cygwin/include"
ignoring nonexistent directory "../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
/tmp/irun/bin/../lib/gcc/i686-pc-cygwin/4.3.0/include
/usr/local/include
/usr/include
/usr/lib/../include/w32api
End of search list.
/tmp/irun/bin/../libexec/gcc/i686-pc-cygwin/4.3.0/f951.exe
/c/DOCUME~1/Angelo/IMPOST~1/Temp/ccQUv9FO.f95 -ffree-form -quiet -dumpbase
hello.F95 -mtune=generic -auxbase hello -version -fpreprocessed
-fintrinsic-modules-path finclude -o
/c/DOCUME~1/Angelo/IMPOST~1/Temp/ccR7eY0P.s
GNU F95 version 4.3.0 20070127 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.3.0 20070127 (experimental).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
--------------------------
Interupted with ^C
--------------------------------------------
$ gdb --args /tmp/irun/bin/../libexec/gcc/i686-pc-cygwin/4.3.0/f951.exe
/c/DOCUME~1/Angelo/IMPOST~1/Temp/ccQUv9FO.f95 -ffree-form -quiet -dumpbase
hello.F95 -mtune=generic -auxbase hello -version -fpreprocessed
-fintrinsic-modules-path finclude -o
/c/DOCUME~1/Angelo/IMPOST~1/Temp/ccR7eY0P.s
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) r
Starting program: /tmp/irun/libexec/gcc/i686-pc-cygwin/4.3.0/f951.exe
/c/DOCUME\~1/Angelo/IMPOST\~1/Temp/ccQUv9FO.f95 -ffree-form -quiet
-dumpbase hello.F95 -mtune=generic -auxbase hello -version -fpreprocessed
-fintrinsic-modules-path finclude -o
/c/DOCUME\~1/Angelo/IMPOST\~1/Temp/ccR7eY0P.s
Loaded symbols for /c/WINDOWS/system32/ntdll.dll
Loaded symbols for /c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /c/WINDOWS/system32/advapi32.dll
Loaded symbols for /c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /usr/bin/cygintl-8.dll
Loaded symbols for /usr/bin/cygiconv-2.dll
GNU F95 version 4.3.0 20070127 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.3.0 20070127 (experimental).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
----------------------------------------------
Here ^C does not work, f951.exe takes 100% CPU.
I must kill with "kill -9...".
Cheers,
Angelo.
More information about the Fortran
mailing list