Main menu

Navigation

build error: cannot run C compiled programs

1 post / 0 new
1751807240@...
build error: cannot run C compiled programs

hello! there are some error  when I am building the case. If anyone has any ideas for me to try, that would be greatly appreciated. 

[root@localhost test]# ./test.build

-------------------------------------------------------------------------

 CESM BUILDNML SCRIPT STARTING

 - To prestage restarts, untar a restart.tar file into /scratch/bianqy/CESM1_2_2/case/test/run

Use of qw(...) as parentheses is deprecated at /opt/code/models/drv/bld/build-namelist line 784.

 infile is /opt/code/scripts/test/Buildconf/cplconf/cesm_namelist 

 CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY

-------------------------------------------------------------------------

-------------------------------------------------------------------------

 CESM PRESTAGE SCRIPT STARTING

 - Case input data directory, DIN_LOC_ROOT, is /scratch/bianqy/inputdata/CESM1_2_2/inputdata

 - Checking the existence of input datasets in DIN_LOC_ROOT

 CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY

-------------------------------------------------------------------------

-------------------------------------------------------------------------

 CESM BUILDEXE SCRIPT STARTING

rm: No match.

 COMPILER is intel

 - Build Libraries: mct gptl pio csm_share 

Sat Apr 15 10:11:16 CST 2017 /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct.bldlog.170415-101115

ERROR: buildlib.mct failed, see /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct.bldlog.170415-101115

ERROR: cat /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct.bldlog.170415-101115

 

[root@localhost test]# cat /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct.bldlog.170415-101115

Sat Apr 15 10:11:16 CST 2017 /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct.bldlog.170415-101115

setenv MCT_DIR /opt/code/models/utils/mct

setenv LIBDIR /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads

setenv MCT_LIBDIR /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct

echo MCT_LIBDIR /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct

MCT_LIBDIR /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct

cd /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct

echo Copying source to CCSM EXEROOT...

Copying source to CCSM EXEROOT...

cp /opt/code/models/utils/mct/Makefile .

mkdir mct

mkdir: cannot create directory ‘mct’: File exists

cp /opt/code/models/utils/mct/mct/Makefile mct

mkdir mpeu

mkdir: cannot create directory ‘mpeu’: File exists

cp /opt/code/models/utils/mct/mpeu/Makefile mpeu

mkdir mpi-serial

mkdir: cannot create directory ‘mpi-serial’: File exists

cp /opt/code/models/utils/mct/mpi-serial/Makefile mpi-serial

set runconf = 0

set runclean = 0

echo Running configure...

Running configure...

echo for OS=LINUX MACH=saber

for OS=LINUX MACH=saber

gmake -f /opt/code/scripts/test/Tools/Makefile /scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct/Makefile.conf

SHAREDLIBROOT |/scratch/bianqy/CESM1_2_2/case/test/bld| SHAREDPATH |/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads|

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables... 

checking whether we are cross compiling... configure: error: in `/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct':

configure: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details

gmake: *** [/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct/Makefile.conf] Error 1

if ( 0 == 1 ) then

cp -p Makefile.conf Makefile.conf.old

cp: cannot stat ‘Makefile.conf’: No such file or directory

gmake

Makefile:4: Makefile.conf: No such file or directory

gmake: *** No rule to make target `Makefile.conf'.  Stop.

exit 1

 

[root@localhost mct]# cat config.log 

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.69.  Invocation command line was

 

  $ /opt/code/models/utils/mct/configure CC=icc  FC=ifort  MPICC=mpicc   MPIFC=mpif90  FCFLAGS=-fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -free  -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr CPPDEFS= -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC CFLAGS=-O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr NETCDF_PATH=/opt/software/netcdf4 LDFLAGS=-L/opt/software/netcdf4/lib LIBS=-L/opt/software/netcdf4/lib -lnetcdf -lnetcdff --srcdir /opt/code/models/utils/mct

 

## --------- ##

## Platform. ##

## --------- ##

 

hostname = localhost.localdomain

uname -m = x86_64

uname -r = 3.10.0-514.10.2.el7.x86_64

uname -s = Linux

uname -v = #1 SMP Fri Mar 3 00:04:05 UTC 2017

 

/usr/bin/uname -p = x86_64

/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: /opt/intel/bin

PATH: /opt/software/netcdf4/bin

PATH: {/opt/software/hdf5}/bin

PATH: /usr/local/sbin

PATH: /usr/local/bin

PATH: /usr/sbin

PATH: /usr/bin

PATH: /root/bin

 

 

## ----------- ##

## Core tests. ##

## ----------- ##

 

configure:2358: checking for C compiler version

configure:2367: icc  --version >&5

icc (ICC) 17.0.1 20161005

Copyright (C) 1985-2016 Intel Corporation.  All rights reserved.

 

configure:2378: $? = 0

configure:2367: icc  -v >&5

icc version 17.0.1 (gcc version 4.8.5 compatibility)

configure:2378: $? = 0

configure:2367: icc  -V >&5

Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.1.132 Build 20161005

Copyright (C) 1985-2016 Intel Corporation.  All rights reserved.

 

configure:2378: $? = 0

configure:2367: icc  -qversion >&5

icc: command line warning #10006: ignoring unknown option '-qversion'

icc: command line error: no files specified; for help type "icc -help"

configure:2378: $? = 1

configure:2398: checking whether the C compiler works

configure:2420: icc  -O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr -I/opt/software/netcdf4/include -L/opt/software/netcdf4/lib conftest.c -L/opt/software/netcdf4/lib -lnetcdf -lnetcdff >&5

configure:2424: $? = 0

configure:2472: result: yes

configure:2475: checking for C compiler default output file name

configure:2477: result: a.out

configure:2483: checking for suffix of executables

configure:2490: icc  -o conftest -O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr -I/opt/software/netcdf4/include -L/opt/software/netcdf4/lib conftest.c -L/opt/software/netcdf4/lib -lnetcdf -lnetcdff >&5

configure:2494: $? = 0

configure:2516: result: 

configure:2538: checking whether we are cross compiling

configure:2546: icc  -o conftest -O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr -I/opt/software/netcdf4/include -L/opt/software/netcdf4/lib conftest.c -L/opt/software/netcdf4/lib -lnetcdf -lnetcdff >&5

configure:2550: $? = 0

configure:2557: ./conftest

./conftest: error while loading shared libraries: libnetcdf.so.11: cannot open shared object file: No such file or directory

configure:2561: $? = 127

configure:2568: error: in `/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/mct':

configure:2570: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details

 

## ---------------- ##

## Cache variables. ##

## ---------------- ##

 

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=set

ac_cv_env_CC_value='icc '

ac_cv_env_CFLAGS_set=set

ac_cv_env_CFLAGS_value='-O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr'

ac_cv_env_COMPILER_ROOT_set=

ac_cv_env_COMPILER_ROOT_value=

ac_cv_env_CPPFLAGS_set=set

ac_cv_env_CPPFLAGS_value=-I/opt/software/netcdf4/include

ac_cv_env_CPP_set=

ac_cv_env_CPP_value=

ac_cv_env_DEBUG_set=set

ac_cv_env_DEBUG_value=FALSE

ac_cv_env_ENDIAN_set=

ac_cv_env_ENDIAN_value=

ac_cv_env_FCFLAGS_set=set

ac_cv_env_FCFLAGS_value='-fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -free  -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr'

ac_cv_env_FC_set=set

ac_cv_env_FC_value='ifort '

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=set

ac_cv_env_LDFLAGS_value=-L/opt/software/netcdf4/lib

ac_cv_env_LIBS_set=set

ac_cv_env_LIBS_value='-L/opt/software/netcdf4/lib -lnetcdf -lnetcdff'

ac_cv_env_MPIFC_set=set

ac_cv_env_MPIFC_value='mpif90 '

ac_cv_env_MPIHEADER_set=

ac_cv_env_MPIHEADER_value=

ac_cv_env_MPILIBS_set=set

ac_cv_env_MPILIBS_value=mpich

ac_cv_env_OPT_set=

ac_cv_env_OPT_value=

ac_cv_env_PROGFCFLAGS_set=

ac_cv_env_PROGFCFLAGS_value=

ac_cv_env_RANLIB_set=

ac_cv_env_RANLIB_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=

 

## ----------------- ##

## Output variables. ##

## ----------------- ##

 

AR=''

BABELROOT=''

BIT64=''

CC='icc '

CFLAGS='-O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr'

COMPILER_ROOT=''

CPP=''

CPPDEFS=' -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC'

CPPFLAGS='-I/opt/software/netcdf4/include'

CRULE=''

DEBUG='FALSE'

DEFS=''

ECHO_C=''

ECHO_N='-n'

ECHO_T=''

EGREP=''

ENDIAN=''

EXEEXT=''

FC='ifort '

FCFLAGS='-fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -free  -I.  -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/software/nectdf4/include -I/scratch/bianqy/CESM1_2_2/case/test/bld/intel/mpich/nodebug/nothreads/include -I/opt/code/models/csm_share/shr'

FCFLAGS_F90=''

FCFLAGS_F=''

FCLIBS=''

FC_DEFINE=''

FORT_SIZE=''

FPP=''

FPPFLAGS=''

GREP=''

INCLUDEFLAG=''

INCLUDEPATH=''

LDFLAGS='-L/opt/software/netcdf4/lib'

LIBOBJS=''

LIBS='-L/opt/software/netcdf4/lib -lnetcdf -lnetcdff'

LTLIBOBJS=''

MPIFC='mpif90 '

MPIHEADER=''

MPILIBS='mpich'

MPISERPATH=''

OBJEXT=''

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=''

RANLIB=''

REAL8=''

SHELL='/bin/sh'

ac_ct_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 ""

 

configure: exit 1

Who's new

  • max@...
  • bidyut@...
  • rui.yang@...
  • rory
  • dangcheng111@...