I am trying to install netcdf-3.6.2 version on AMD 64-bit opteron RHEL-3.0 linux with gfortran compiler. When I am trying to configure it I got error. I used the following commands which were said in previous posts.
export FCC=gfortran
export FFLAGS='-O3'
./configure --prefix=/shared/netcdf3/gfortran
I am getting the following error:
This is the log file generated while configuring:configure:5215: error: Fortran could not compile .f90 files
Can anybody help me why this was happening.This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by netCDF configure 3.6.2, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --prefix=/shared/netcdf3/gfortran/
## --------- ##
## Platform. ##
## --------- ##
hostname = darpan.npol.org
uname -m = x86_64
uname -r = 2.4.21-20.ELsmp
uname -s = Linux
uname -v = #1 SMP Sat Sep 18 18:28:16 PDT 2004
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/jdk1.5.0_04/bin
PATH: /shared/Matlab2006b/bin
PATH: /shared/nagesh/gfortran/gcc-4.2/bin
PATH: /usr/local/jdk1.5.0_04/bin
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /opt/c3-4/
PATH: /opt/ganglia/bin
PATH: /opt/maui/bin
PATH: /opt/torque/bin
PATH: /opt/torque/sbin
PATH: /opt/rocks/bin
PATH: /opt/rocks/sbin
PATH: /shared/netcdf/bin
PATH: /shared/FortranCompiler/intel_fc_80/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure netCDF 3.6.2
configure checking build system type
configure result: x86_64-unknown-linux-gnu
configure checking host system type
configure result: x86_64-unknown-linux-gnu
configure checking for a BSD-compatible install
configure result: /usr/bin/install -c
configure checking whether build environment is sane
configure result: yes
configure checking for gawk
configure found /bin/gawk
configure result: gawk
configure checking whether make sets $(MAKE)
configure result: yes
configure checking user options
configure checking whether CXX is set to ''
configure result: no
configure checking whether FC is set to ''
configure result: no
configure checking whether F90 is set to ''
configure result: no
configure checking whether documentation is to be installed
configure result: no
configure checking whether Fortran compiler(s) should be tested during configure
configure result: yes
configure checking whether configure should try to set compiler flags
configure result: yes
configure checking whether FFIO will be used
configure result: no
configure checking whether to skip C++, F77, or F90 APIs if compiler is broken
configure result: yes
configure checking whether only the C library is desired
configure result: no
configure checking whether examples should be built
configure result: yes
configure checking whether F77 API is desired
configure result: yes
configure checking whether F90 API is desired
configure result: yes
configure checking whether fortran type sizes should be checked
configure result: yes
configure checking whether C API is desired
configure result: yes
configure checking where to get netCDF C-only library for separate fortran libraries
configure result:
configure checking whether CXX API is desired
configure result: yes
configure checking whether v2 netCDF API should be built
configure result: yes
configure checking whether the ncgen/ncdump should be built
configure result: yes
configure checking whether large file (> 2GB) tests should be run
configure result: no
configure checking whether extreme numbers should be used in tests
configure result: yes
configure checking where to put large temp files if large file tests are run
configure result: .
configure checking whether a win32 DLL is desired
configure result: no
configure checking whether separate fortran libs are desired
configure result: no
configure finding C compiler
configure checking for xlc
configure result: no
configure checking for cc
configure found /usr/bin/cc
configure result: cc
configure checking for C compiler version
configure cc --version >&5
cc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure $? = 0
configure cc -v >&5
Reading specs from /usr/lib/gcc-lib/x86_64-unknown-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=x86_64-unknown-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
configure $? = 0
configure cc -V >&5
cc: argument to `-V' is missing
configure $? = 1
configure checking for C compiler default output file name
configure cc conftest.c >&5
configure $? = 0
configure result: a.out
configure checking whether the C compiler works
configure ./a.out
configure $? = 0
configure result: yes
configure checking whether we are cross compiling
configure result: no
configure checking for suffix of executables
configure cc -o conftest conftest.c >&5
configure $? = 0
configure result:
configure checking for suffix of object files
configure cc -c conftest.c >&5
configure $? = 0
configure result: o
configure checking whether we are using the GNU C compiler
configure cc -c conftest.c >&5
configure $? = 0
configure result: yes
configure checking whether cc accepts -g
configure cc -c -g conftest.c >&5
configure $? = 0
configure result: yes
configure checking for cc option to accept ISO C89
configure cc -c -g -O2 conftest.c >&5
configure $? = 0
configure result: none needed
configure checking for style of include used by make
configure result: GNU
configure checking dependency style of cc
configure:4042: result: gcc3
configure:4063: checking whether cc understands -c and -o together
configure:4095: cc -c conftest.c -o conftest2.o >&5
configure:4098: $? = 0
configure:4104: cc -c conftest.c -o conftest2.o >&5
configure:4107: $? = 0
configure:4159: result: yes
configure:4185: checking for an ANSI C-conforming const
configure:4260: cc -c -g -O2 conftest.c >&5
configure:4266: $? = 0
configure:4281: result: yes
configure:4312: finding Fortran compiler (will not be used if Fortran API is not desired)
configure:4702: checking for Fortran compiler version
configure:4709: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran --version >&5
GNU Fortran (GCC) 4.2.4 20080220 (prerelease)
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
configure:4712: $? = 0
configure:4719: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -v >&5
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /projects/tob/gcc-4_2-branch/configure --enable-languages=c,fortran --prefix=/projects/tob/gcc-4.2
Thread model: posix
gcc version 4.2.4 20080220 (prerelease)
configure:4722: $? = 0
configure:4729: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -V >&5
gfortran: '-V' option must have argument
configure:4732: $? = 1
configure:4740: checking whether we are using the GNU Fortran compiler
configure:4759: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -c conftest.F >&5
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:4765: $? = 1
configure: failed program was:
| program main
| #ifndef __GNUC__
| choke me
| #endif
|
| end
configure:4782: result: no
configure:4788: checking whether /shared/nagesh/gfortran/gcc-4.2/bin/gfortran accepts -g
configure:4805: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -c -g conftest.f >&5
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:4811: $? = 1
configure: failed program was:
| program main
|
| end
configure:4827: result: no
configure:4977: checking for Fortran 77 compiler version
configure:4984: gfortran --version >&5
GNU Fortran (GCC) 4.2.4 20080220 (prerelease)
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
configure:4987: $? = 0
configure:4994: gfortran -v >&5
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /projects/tob/gcc-4_2-branch/configure --enable-languages=c,fortran --prefix=/projects/tob/gcc-4.2
Thread model: posix
gcc version 4.2.4 20080220 (prerelease)
configure:4997: $? = 0
configure:5004: gfortran -V >&5
gfortran: '-V' option must have argument
configure:5007: $? = 1
configure:5015: checking whether we are using the GNU Fortran 77 compiler
configure:5034: gfortran -c -O3 conftest.F >&5
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:5040: $? = 1
configure: failed program was:
| program main
| #ifndef __GNUC__
| choke me
| #endif
|
| end
configure:5057: result: no
configure:5063: checking whether gfortran accepts -g
configure:5080: gfortran -c -g conftest.f >&5
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:5086: $? = 1
configure: failed program was:
| program main
|
| end
configure:5102: result: no
configure:5146: setting up Fortran 90
configure:5165: checking for Fortran flag to compile .f90 files
configure:5187: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -c conftest.f90 >&5
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:5193: $? = 1
configure: failed program was:
| program main
|
| end
configure:5187: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -c -qsuffix=f=f90 conftest.f90 >&5
gfortran: unrecognized option '-qsuffix=f=f90'
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:5193: $? = 1
configure: failed program was:
| program main
|
| end
configure:5187: /shared/nagesh/gfortran/gcc-4.2/bin/gfortran -c -Tf conftest.f90 >&5
/shared/nagesh/gfortran/gcc-4.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.4/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:5193: $? = 1
configure: failed program was:
| program main
|
| end
configure:5212: result: unknown
configure:5215: error: Fortran could not compile .f90 files
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=set
ac_cv_env_F77_value=gfortran
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=set
ac_cv_env_FC_value=/shared/nagesh/gfortran/gcc-4.2/bin/gfortran
ac_cv_env_FFLAGS_set=set
ac_cv_env_FFLAGS_value=-O3
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_f77_compiler_gnu=no
ac_cv_fc_compiler_gnu=no
ac_cv_fc_srcext_f90=unknown
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_cc_c_o=yes
ac_cv_prog_cc_g=yes
ac_cv_prog_f77_g=no
ac_cv_prog_fc_g=no
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /shared/nagesh/netcdf/netcdf-3.6.2/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /shared/nagesh/netcdf/netcdf-3.6.2/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /shared/nagesh/netcdf/netcdf-3.6.2/missing --run autoconf'
AUTOHEADER='${SHELL} /shared/nagesh/netcdf/netcdf-3.6.2/missing --run autoheader'
AUTOMAKE='${SHELL} /shared/nagesh/netcdf/netcdf-3.6.2/missing --run automake-1.9'
AWK='gawk'
BUILD_CXX_FALSE=''
BUILD_CXX_TRUE=''
BUILD_C_FALSE=''
BUILD_C_TRUE=''
BUILD_DLL_FALSE=''
BUILD_DLL_TRUE='#'
BUILD_EXAMPLES_FALSE='#'
BUILD_EXAMPLES_TRUE=''
BUILD_F77_FALSE=''
BUILD_F77_TRUE=''
BUILD_F90_FALSE=''
BUILD_F90_TRUE=''
BUILD_SEPARATE_FORTRAN_FALSE=''
BUILD_SEPARATE_FORTRAN_TRUE='#'
BUILD_SHARED_FALSE=''
BUILD_SHARED_TRUE='#'
BUILD_UTILITIES_FALSE='#'
BUILD_UTILITIES_TRUE=''
BUILD_V2_FALSE='#'
BUILD_V2_TRUE=''
CC='cc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77='gfortran'
FC='/shared/nagesh/gfortran/gcc-4.2/bin/gfortran'
FCFLAGS=''
FCFLAGS_f90=''
FFLAGS='-O3'
FGREP=''
FTPBINDIR=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_DOCS_FALSE=''
INSTALL_DOCS_TRUE='#'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LARGE_FILE_TESTS_FALSE=''
LARGE_FILE_TESTS_TRUE='#'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /shared/nagesh/netcdf/netcdf-3.6.2/missing --run makeinfo'
MAKEWHATIS_CMD=''
MOD_FLAG=''
NETCDF_C_LIB=''
NM=''
NMFLAGS=''
OBJDUMP=''
OBJEXT='o'
PACKAGE='netcdf'
PACKAGE_BUGREPORT='support@unidata.ucar.edu'
PACKAGE_NAME='netCDF'
PACKAGE_STRING='netCDF 3.6.2'
PACKAGE_TARNAME='netcdf'
PACKAGE_VERSION='3.6.2'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHAREEXT_DYLIB_FALSE=''
SHAREEXT_DYLIB_TRUE='#'
SHAREEXT_SL_FALSE=''
SHAREEXT_SL_TRUE='#'
SHELL='/bin/sh'
STRIP=''
TEST_F77_FALSE=''
TEST_F77_TRUE=''
TEST_PARALLEL_FALSE=''
TEST_PARALLEL_TRUE=''
UPPER_CASE_MOD_FALSE=''
UPPER_CASE_MOD_TRUE=''
USE_FFIO_FALSE=''
USE_FFIO_TRUE='#'
USE_HDF5_DIR_FALSE=''
USE_HDF5_DIR_TRUE='#'
USE_NETCDF4_FALSE=''
USE_NETCDF4_TRUE='#'
USE_NETCDF_C_LIB_DIR_FALSE=''
USE_NETCDF_C_LIB_DIR_TRUE='#'
VERSION='3.6.2'
WHATIS=''
ac_ct_CC='cc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
ac_ct_F77=''
ac_ct_FC=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/shared/nagesh/netcdf/netcdf-3.6.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/shared/netcdf3/gfortran/'
prog=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "netCDF"
#define PACKAGE_TARNAME "netcdf"
#define PACKAGE_VERSION "3.6.2"
#define PACKAGE_STRING "netCDF 3.6.2"
#define PACKAGE_BUGREPORT "support@unidata.ucar.edu"
#define PACKAGE "netcdf"
#define VERSION "3.6.2"
#define USE_EXTREME_NUMBERS 1
#define TEMP_LARGE $TEMP_LARGE
configure: exit 1
Thanks in advance.
With best regards,
G.NageswaraRao.