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. ##
## ----------- ##
configurenetCDF 3.6.2
configurechecking build system type
configureresult: x86_64-unknown-linux-gnu
configurechecking host system type
configureresult: x86_64-unknown-linux-gnu
configurechecking for a BSD-compatible install
configureresult: /usr/bin/install -c
configurechecking whether build environment is sane
configureresult: yes
configurechecking for gawk
configurefound /bin/gawk
configureresult: gawk
configurechecking whether make sets $(MAKE)
configureresult: yes
configurechecking user options
configurechecking whether CXX is set to ''
configureresult: no
configurechecking whether FC is set to ''
configureresult: no
configurechecking whether F90 is set to ''
configureresult: no
configurechecking whether documentation is to be installed
configureresult: no
configurechecking whether Fortran compiler(s) should be tested during configure
configureresult: yes
configurechecking whether configure should try to set compiler flags
configureresult: yes
configurechecking whether FFIO will be used
configureresult: no
configurechecking whether to skip C++, F77, or F90 APIs if compiler is broken
configureresult: yes
configurechecking whether only the C library is desired
configureresult: no
configurechecking whether examples should be built
configureresult: yes
configurechecking whether F77 API is desired
configureresult: yes
configurechecking whether F90 API is desired
configureresult: yes
configurechecking whether fortran type sizes should be checked
configureresult: yes
configurechecking whether C API is desired
configureresult: yes
configurechecking where to get netCDF C-only library for separate fortran libraries
configureresult:
configurechecking whether CXX API is desired
configureresult: yes
configurechecking whether v2 netCDF API should be built
configureresult: yes
configurechecking whether the ncgen/ncdump should be built
configureresult: yes
configurechecking whether large file (> 2GB) tests should be run
configureresult: no
configurechecking whether extreme numbers should be used in tests
configureresult: yes
configurechecking where to put large temp files if large file tests are run
configureresult: .
configurechecking whether a win32 DLL is desired
configureresult: no
configurechecking whether separate fortran libs are desired
configureresult: no
configurefinding C compiler
configurechecking for xlc
configureresult: no
configurechecking for cc
configurefound /usr/bin/cc
configureresult: cc
configurechecking for C compiler version
configurecc --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
configurecc -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
configurecc -V >&5
cc: argument to `-V' is missing
configure$? = 1
configurechecking for C compiler default output file name
configurecc conftest.c >&5
configure$? = 0
configureresult: a.out
configurechecking whether the C compiler works
configure./a.out
configure$? = 0
configureresult: yes
configurechecking whether we are cross compiling
configureresult: no
configurechecking for suffix of executables
configurecc -o conftest conftest.c >&5
configure$? = 0
configureresult:
configurechecking for suffix of object files
configurecc -c conftest.c >&5
configure$? = 0
configureresult: o
configurechecking whether we are using the GNU C compiler
configurecc -c conftest.c >&5
configure$? = 0
configureresult: yes
configurechecking whether cc accepts -g
configurecc -c -g conftest.c >&5
configure$? = 0
configureresult: yes
configurechecking for cc option to accept ISO C89
configurecc -c -g -O2 conftest.c >&5
configure$? = 0
configureresult: none needed
configurechecking for style of include used by make
configureresult: GNU
configurechecking 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.