Found the problem. the make was finding the other netcdf which came with the Linux distribution. How to specify the correct netcdf directory during configure of RegCM?


On Wed, Aug 13, 2014 at 10:15 PM, Syed Ahsan Ali <ahsanshah01@gmail.com> wrote:
Now both gcc and gfortran are 4.8.2 and netcdf has also been built using that version. A new error has come
 
[RCM@rcm RegCM-4.4-rc31]$ make
make  all-recursive
make[1]: Entering directory `/home/RCM/RegCM-4.4-rc31'
Making all in external
make[2]: Entering directory `/home/RCM/RegCM-4.4-rc31/external'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/RCM/RegCM-4.4-rc31/external'
Making all in Share
make[2]: Entering directory `/home/RCM/RegCM-4.4-rc31/Share'
gfortran -I/home/RCM/RegCM-4.4-rc31/external -I/opt/netcdf-4.3.2/include -I/opt/netcdf-4.3.2/include  -I/home/RCM/RegCM-4.4-rc31/Share -D'SVN_REV="exported"' -O3 -mtune=native -fconvert=big-endian -fno-range-check -finline-functions -c mod_memutil.F90
mod_memutil.F90:22.6:
  use mod_intkinds
      1
Fatal Error: Cannot read module file 'mod_intkinds.mod' opened at (1), because it was created by a different version of GNU Fortran
make[2]: *** [mod_memutil.o] Error 1
make[2]: Leaving directory `/home/RCM/RegCM-4.4-rc31/Share'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/RCM/RegCM-4.4-rc31'
make: *** [all] Error 2
[RCM@rcm RegCM-4.4-rc31]$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/opt/rh/devtoolset-2/root/usr --mandir=/opt/rh/devtoolset-2/root/usr/share/man --infodir=/opt/rh/devtoolset-2/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install --with-mpc=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)



On Wed, Aug 13, 2014 at 12:32 PM, Syed Ahsan Ali <ahsanshah01@gmail.com> wrote:
Thanks Graziano I missed that. gfortran is previous version still. I upgraded gcc using devtoolset but it didn't change anything to gfortran. Let me first sort that out.


On Wed, Aug 13, 2014 at 11:43 AM, Graziano Giuliani <ggiulian@ictp.it> wrote:
On 08/13/2014 07:34 AM, Syed Ahsan Ali wrote:
> After upgrading gfortran to 4.8.0 I have tried reinstalling but the same
> error is displayed again.
>
> [RCM@rcm RegCM-4.4-rc31]$ gcc --version
> gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
[...]

What about

gortran --version

and

mpif90 --version?

G.


--
Graziano Giuliani - Earth System Physics Section
The Abdus Salam International Centre for Theoretical Physics
Strada Costiera 11 - I - 34151 Trieste Italy



--
Syed Ahsan Ali Bokhari
Electronic Engineer (EE)

Research & Development Division
Pakistan Meteorological Department H-8/4, Islamabad.
Phone # off  +92518358714



--
Syed Ahsan Ali Bokhari
Electronic Engineer (EE)

Research & Development Division
Pakistan Meteorological Department H-8/4, Islamabad.
Phone # off  +92518358714



--
Syed Ahsan Ali Bokhari
Electronic Engineer (EE)

Research & Development Division
Pakistan Meteorological Department H-8/4, Islamabad.
Phone # off  +92518358714
Cell # +923155145014