Gfortran : fortran 90 not supported
Jesús Garicano Mena
jesus.garicano.mena@vki.ac.be
Thu Apr 3 14:34:00 GMT 2014
Hello,
I want to compile a f90 code with gfortran. I know this code can be
compiled normally with ifort.
Compiling a simple, single file fortran, will work, i.e.,
>> gfortran hiWorld.f90 -o hi
However, when I try to compile the serious code, and while the
compilation of my real prepares to start I get the following:
...
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- no
...
The compilation stops then, with error messages like this one:
/home/fry/code_gfortran/FBx/trunk/TYPES/element.f90:99.4:
SELECT CASE(e%EltType)
1
Error: Unclassifiable statement at (1)
Is there a way to force gfortran to support f90? Am I missing some flag?
Thanks in advance, and
Best regards,
J. Garicano
P.S.1 The flags used are:
-fdefault-real-8 -g -ffixed-line-length-none -ffree-line-length-none
-ffree-form -fimplicit-none -fbacktrace -I/usr/include
-I/usr/local/include -Wall -std=f95 -pedantic
P.S. 3 This is the output of
>> gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-targets=all --with-arch-32=i586
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
--
Jesús Garicano Mena
Ph.D. candidate
Aeronautics and Aerospace Department
von Karman Institute for Fluid Dynamics
Chaussée de Waterloo, 72, Rhode-St-Genèse 1640, Belgium
E-mail: jesus.garicano.mena@vki.ac.be
Phone: +3223599611
Fax: +3223599600
More information about the Gcc-help
mailing list