Problems with the -J option (Cygwin) (fwd)

Angelo Graziosi Angelo.Graziosi@roma1.infn.it
Fri Nov 24 16:55:00 GMT 2006


I have verifyed that the problems described below are absent on GNU/Linux
(using
http://quatramaran.ens.fr/~coudert/gfortran/gfortran-i686-linux-20061121.tar.gz).

So, it seems to regard only Cygwin.

Is this a bug or there is a new option to use ?


   Angelo.


---------- Forwarded message ----------
Date: Wed, 22 Nov 2006 14:30:36 +0100 (MET)
From: Angelo Graziosi <graziosi@ax0rm1.roma1.infn.it>
To: fortran@gcc.gnu.org
Subject: Problems with the -J option (Cygwin)


I have observed the following on Cygwin (but, perhaps, it is a general
problem), with GFortran built myself:

$ gfortran -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /home/Angelo/Downloads/GFortran/gcc/configure
--prefix=/usr/loc
al/gfortran --enable-threads=posix --enable-sjlj-exceptions
--with-system-zlib -
-disable-nls --disable-libmudflap --enable-version-specific-runtime-libs
--witho
ut-included-gettext --disable-shared --enable-languages=c,fortran
Thread model: posix
gcc version 4.3.0 20061121 (experimental)

using http://quatramaran.ens.fr/~coudert/gfortran/gcc-svn-light.tar.bz2,
timestaps Nov 21 04:14.



I have an application that I build with

gfc -Wall -fno-automatic -J../module -I../module
-I/home/Angelo/Applications/meg/include  -O2 -c rchps95.F95 -o
rchps95-gfc.o

I use the -J../module and -I../module options so that all *.mod file are
in ../module and are found there.

With the above built of GFortran, the *.o file is not created! (so it is
impossible to complete the build of that application).


I have reproduced the thing with this very simple test case:

cat hello.F95
program hello
  implicit none
  write(*,*) 'Hello!'
end program hello

gfc -J../module  -c hello.F95 -o hello.o

The hello.o is not creted. Obviously removing the -J opt. all works fine
and all works fine also with a previous build I did: Nov 06 2006!

So it seems a problem with recent source.


   Angelo




More information about the Fortran mailing list