Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

FAILURE: MCT configure when configure

Dear Sir/Madam,       I got a problem when I try to configure a standalone CAM5.2 model. it is "FAILURE: MCT configure". I can't figure out why and here is the config.log. Your help is really appreciated. Thanks.----------This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MCT configure 2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ /homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure FC=pgf95 --srcdir=/homedir/msun/cam5/cesm1_1_2/models/utils/mct --enable-mpiserial

## --------- ##
## Platform. ##
## --------- ##

hostname = be312
uname -m = x86_64
uname -r = 2.6.32.59-0.7-default
uname -s = Linux
uname -v = #1 SMP 2012-07-13 15:50:56 +0200

/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: /homedir/msun/bin
PATH: /homedir/msun/tools/bin
PATH: /bin
PATH: /usr/local/mpich2-1.2.1p1/bin/
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /opt/ibmcmp/xlf/11.1/bin/
PATH: /opt/ibmcmp/xlf/11.1/exe
PATH: /Applications/nedit-5.5-Darwin-i386
PATH: /etc
PATH: /usr/local/a2ps-4.14/bin
PATH: /usr/X11R6/bin
PATH: /usr/etc
PATH: /usr/sbin
PATH: /usr/bsd
PATH: /usr/local/rsi/idl/bin
PATH: /usr/java/bin
PATH: .
PATH: /usr
PATH: /homedir/msun/home/usr/ncl_ncarg/bin
PATH: /SCF2/CERES/tools/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2278: checking for cc
configure:2294: found /usr/bin/cc
configure:2305: result: cc
configure:2336: checking for C compiler version
configure:2345: cc --version >&5
cc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
Copyright (C) 2008 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:2356: $? = 0
configure:2345: cc -v >&5
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
configure:2356: $? = 0
configure:2345: cc -V >&5
cc: '-V' option must have argument
configure:2356: $? = 1
configure:2345: cc -qversion >&5
cc: unrecognized option '-qversion'
cc: no input files
configure:2356: $? = 1
configure:2376: checking whether the C compiler works
configure:2398: cc    conftest.c  >&5
configure:2402: $? = 0
configure:2450: result: yes
configure:2453: checking for C compiler default output file name
configure:2455: result: a.out
configure:2461: checking for suffix of executables
configure:2468: cc -o conftest    conftest.c  >&5
configure:2472: $? = 0
configure:2494: result:
configure:2516: checking whether we are cross compiling
configure:2524: cc -o conftest    conftest.c  >&5
configure:2528: $? = 0
configure:2535: ./conftest
configure:2539: $? = 0
configure:2554: result: no
configure:2559: checking for suffix of object files
configure:2581: cc -c   conftest.c >&5
configure:2585: $? = 0
configure:2606: result: o
configure:2610: checking whether we are using the GNU C compiler
configure:2629: cc -c   conftest.c >&5
configure:2629: $? = 0
configure:2638: result: yes
configure:2647: checking whether cc accepts -g
configure:2667: cc -c -g  conftest.c >&5
configure:2667: $? = 0
configure:2708: result: yes
configure:2725: checking for cc option to accept ISO C89
configure:2789: cc  -c -g -O2  conftest.c >&5
configure:2789: $? = 0
configure:2802: result: none needed
configure:2830: checking how to run the C preprocessor
configure:2861: cc -E  conftest.c
configure:2861: $? = 0
configure:2875: cc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2875: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include
configure:2900: result: cc -E
configure:2920: cc -E  conftest.c
configure:2920: $? = 0
configure:2934: cc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2934: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include
configure:2963: checking for grep that handles long lines and -e
configure:3021: result: /bin/grep
configure:3026: checking for egrep
configure:3088: result: /bin/grep -E
configure:3093: checking for ANSI C header files
configure:3113: cc -c -g -O2  conftest.c >&5
configure:3113: $? = 0
configure:3186: cc -o conftest -g -O2   conftest.c  >&5
configure:3186: $? = 0
configure:3186: ./conftest
configure:3186: $? = 0
configure:3197: result: yes
configure:3210: checking for sys/types.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for sys/stat.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for stdlib.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for string.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for memory.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for strings.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for inttypes.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for stdint.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3210: checking for unistd.h
configure:3210: cc -c -g -O2  conftest.c >&5
configure:3210: $? = 0
configure:3210: result: yes
configure:3222: checking whether byte ordering is bigendian
configure:3237: cc -c -g -O2  conftest.c >&5
conftest.c:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
configure:3237: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #ifndef __APPLE_CC__
|            not a universal capable compiler
|          #endif
|          typedef int dummy;
|
configure:3282: cc -c -g -O2  conftest.c >&5
configure:3282: $? = 0
configure:3300: cc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:26: error: 'not' undeclared (first use in this function)
conftest.c:26: error: (Each undeclared identifier is reported only once
conftest.c:26: error: for each function it appears in.)
conftest.c:26: error: expected ';' before 'big'
configure:3300: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include
|         #include
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
|          not big endian
|         #endif
|
|   ;
|   return 0;
| }
configure:3428: result: no
configure:3555: checking for Fortran compiler version
configure:3564: pgf95 --version >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 3566: pgf95: command not found
configure:3575: $? = 127
configure:3564: pgf95 -v >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 3566: pgf95: command not found
configure:3575: $? = 127
configure:3564: pgf95 -V >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 3566: pgf95: command not found
configure:3575: $? = 127
configure:3564: pgf95 -qversion >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 3566: pgf95: command not found
configure:3575: $? = 127
configure:3584: checking whether we are using the GNU Fortran compiler
configure:3597: pgf95 -c   conftest.F >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 1615: pgf95: command not found
configure:3597: $? = 127
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
|
|       end
configure:3606: result: no
configure:3612: checking whether pgf95 accepts -g
configure:3623: pgf95 -c -g  conftest.f >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 1615: pgf95: command not found
configure:3623: $? = 127
configure: failed program was:
|       program main
|
|       end
configure:3631: result: no
configure:3668: checking for Fortran flag to compile .F90 files
configure:3684: pgf95 -c   conftest.F90 >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 1615: pgf95: command not found
configure:3684: $? = 127
configure: failed program was:
|       program main
|
|       end
configure:3684: pgf95 -c  -qsuffix=f=F90 conftest.F90 >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 1615: pgf95: command not found
configure:3684: $? = 127
configure: failed program was:
|       program main
|
|       end
configure:3684: pgf95 -c  -Tf conftest.F90 >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 1615: pgf95: command not found
configure:3684: $? = 127
configure: failed program was:
|       program main
|
|       end
configure:3693: result: unknown
configure:3696: error: Fortran could not compile .F90 files

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_BABELROOT_set=
ac_cv_env_BABELROOT_value=
ac_cv_env_BIT64_set=
ac_cv_env_BIT64_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_COMPILER_ROOT_set=
ac_cv_env_COMPILER_ROOT_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DEBUG_set=
ac_cv_env_DEBUG_value=
ac_cv_env_ENDIAN_set=
ac_cv_env_ENDIAN_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=set
ac_cv_env_FC_value=pgf95
ac_cv_env_FORT_SIZE_set=
ac_cv_env_FORT_SIZE_value=
ac_cv_env_FPPFLAGS_set=
ac_cv_env_FPPFLAGS_value=
ac_cv_env_FPP_set=
ac_cv_env_FPP_value=
ac_cv_env_INCLUDEFLAG_set=
ac_cv_env_INCLUDEFLAG_value=
ac_cv_env_INCLUDEPATH_set=
ac_cv_env_INCLUDEPATH_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MPIFC_set=
ac_cv_env_MPIFC_value=
ac_cv_env_MPIHEADER_set=
ac_cv_env_MPIHEADER_value=
ac_cv_env_MPILIBS_set=
ac_cv_env_MPILIBS_value=
ac_cv_env_OPT_set=
ac_cv_env_OPT_value=
ac_cv_env_PROGFCFLAGS_set=
ac_cv_env_PROGFCFLAGS_value=
ac_cv_env_REAL8_set=
ac_cv_env_REAL8_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_fc_compiler_gnu=no
ac_cv_fc_srcext_F90=unknown
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_prog_CPP='cc -E'
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_fc_g=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
BABELROOT=''
BIT64=''
CC='cc'
CFLAGS='-g -O2'
COMPILER_ROOT=''
CPP='cc -E'
CPPDEFS=''
CPPFLAGS=''
CRULE=''
DEBUG=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ENDIAN=''
EXEEXT=''
FC='pgf95'
FCFLAGS=''
FCFLAGS_F90=''
FCFLAGS_F=''
FCLIBS=''
FC_DEFINE=''
FORT_SIZE=''
FPP=''
FPPFLAGS=''
GREP='/bin/grep'
INCLUDEFLAG=''
INCLUDEPATH=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MPIFC=''
MPIHEADER=''
MPILIBS=''
MPISERPATH=''
OBJEXT='o'
OPT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='MCT'
PACKAGE_STRING='MCT 2.8'
PACKAGE_TARNAME='mct'
PACKAGE_URL=''
PACKAGE_VERSION='2.8'
PATH_SEPARATOR=':'
PROGFCFLAGS=''
PYTHON=''
PYTHONOPTS=''
REAL8=''
SHELL='/bin/sh'
ac_ct_CC='cc'
ac_ct_FC=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "MCT"
#define PACKAGE_TARNAME "mct"
#define PACKAGE_VERSION "2.8"
#define PACKAGE_STRING "MCT 2.8"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1

configure: exit 1
----------------- Moguo   
 

jedwards

CSEG and Liaisons
Staff member
Seems clear that your fortran compiler could not be found:configure:3564: pgf95 --version >&5
/homedir/msun/cam5/cesm1_1_2/models/utils/mct/configure: line 3566: pgf95:
command not found
 
Thanks for pointing it out. I will fix it. However, I am in fact confused by following error, if it is considered error. this part is before f90 issue. Appreciate if you can help. thanks.--------- configure:2875: cc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2875: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include
configure:2900: result: cc -E
configure:2920: cc -E  conftest.c
configure:2920: $? = 0
configure:2934: cc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2934: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include --------------- Moguo 
 
Top