[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BGF-782150]: Need help



Hello,

From the `config.log` file you provided, I see the following:

````
CC='icc'
````

and later,
 
````
icc: command not found
````

You will need to change your compiler (via setting the 'CC` variable in your 
environment), or adding the path containing `icc` to your system PATH variable.

I hope this helps!

-Ward


> Hi,
> 
> I am getting this error when I run ./configure
> error: C compiler cannot create executables
> See `config.log' for more details.
> 
> The netcdf version is 4.4.4. My machine is OS 10.13.2.
> Below is the config.log. I will appriciate if you help me to overcome
> with this issue.
> 
> ---------
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> It was created by netCDF-Fortran configure 4.4.4, which was
> generated by GNU Autoconf 2.69.  Invocation command line was
> 
> $ ./configure --prefix=/usr/local CPPFLAGS=-I/usr/local/include
> LDFLAGS=-L/usr/local/lib
> 
> ## --------- ##
> ## Platform. ##
> ## --------- ##
> 
> hostname = grene02.yes.jamstec.go.jp
> uname -m = x86_64
> uname -r = 17.3.0
> uname -s = Darwin
> uname -v = Darwin Kernel Version 17.3.0: Thu Nov  9 18:09:22 PST 2017;
> root:xnu-4570.31.3~1/RELEASE_X86_64
> 
> /usr/bin/uname -p = i386
> /bin/uname -X     = unknown
> 
> /bin/arch              = unknown
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = Mach kernel version:
> Darwin Kernel Version 17.3.0: Thu Nov  9 18:09:22 PST 2017;
> root:xnu-4570.31.3~1/RELEASE_X86_64
> Kernel configured for up to 4 processors.
> 4 processors are physically available.
> 4 processors are logically available.
> Processor type: x86_64h (Intel x86-64h Haswell)
> Processors active: 0 1 2 3
> Primary memory available: 16.00 gigabytes
> Default processor set: 363 tasks, 1582 threads, 4 processors
> Load average: 1.80, Mach factor: 2.26
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
> 
> PATH: /opt/intel/compilers_and_libraries_2018.0.104/mac/bin/intel64
> PATH: /opt/intel//debugger_2018/gdb/intel64/bin
> PATH: /opt/intel//documentation_2018/en/debugger//gdb-ia/man/
> PATH: /Library/Frameworks/Python.framework/Versions/3.6/bin
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/sbin
> PATH: /sbin
> PATH: /opt/X11/bin
> 
> 
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
> 
> configure:2736: netCDF-Fortran 4.4.4
> configure:2776: checking build system type
> configure:2790: result: i386-apple-darwin17.3.0
> configure:2810: checking host system type
> configure:2823: result: i386-apple-darwin17.3.0
> configure:2845: checking target system type
> configure:2858: result: i386-apple-darwin17.3.0
> configure:2902: checking for a BSD-compatible install
> configure:2970: result: /usr/bin/install -c
> configure:2981: checking whether build environment is sane
> configure:3036: result: yes
> configure:3187: checking for a thread-safe mkdir -p
> configure:3226: result: ./install-sh -c -d
> configure:3233: checking for gawk
> configure:3263: result: no
> configure:3233: checking for mawk
> configure:3263: result: no
> configure:3233: checking for nawk
> configure:3263: result: no
> configure:3233: checking for awk
> configure:3249: found /usr/bin/awk
> configure:3260: result: awk
> configure:3271: checking whether make sets $(MAKE)
> configure:3293: result: yes
> configure:3322: checking whether make supports nested variables
> configure:3339: result: yes
> configure:3465: checking whether to enable maintainer-specific
> portions of Makefiles
> configure:3474: result: no
> configure:3491: checking user options
> configure:3495: checking whether extra valgrind tests should be run
> configure:3503: result: no
> configure:3507: checking whether parallel IO tests should be run
> configure:3515: result: no
> configure:3519: checking whether netCDF extra tests should be run
> (developers only)
> configure:3527: result: no
> configure:3584: checking for doxygen
> configure:3614: result: no
> configure:3623: WARNING: Doxygen not found - documentation will not be built
> configure:3633: checking for dot
> configure:3663: result: no
> configure:3672: WARNING: dot not found - will use simple charts in 
> documentation
> configure:3699: finding C compiler
> configure:3750: checking for gcc
> configure:3777: result: icc
> configure:4006: checking for C compiler version
> configure:4015: icc --version >&5
> ./configure: line 4017: icc: command not found
> configure:4026: $? = 127
> configure:4015: icc -v >&5
> ./configure: line 4017: icc: command not found
> configure:4026: $? = 127
> configure:4015: icc -V >&5
> ./configure: line 4017: icc: command not found
> configure:4026: $? = 127
> configure:4015: icc -qversion >&5
> ./configure: line 4017: icc: command not found
> configure:4026: $? = 127
> configure:4046: checking whether the C compiler works
> configure:4068: icc -O3 -xHost -ip -no-prec-div -I/usr/local/include
> -L/usr/local/lib conftest.c  >&5
> ./configure: line 4070: icc: command not found
> configure:4072: $? = 127
> configure:4110: result: no
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "netCDF-Fortran"
> | #define PACKAGE_TARNAME "netcdf-fortran"
> | #define PACKAGE_VERSION "4.4.4"
> | #define PACKAGE_STRING "netCDF-Fortran 4.4.4"
> | #define PACKAGE_BUGREPORT "address@hidden"
> | #define PACKAGE_URL ""
> | #define PACKAGE "netcdf-fortran"
> | #define VERSION "4.4.4"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:4115: error: in `/Users/naveen/Softwere/netcdf-fortran-4.4.4':
> configure:4117: error: C compiler cannot create executables
> See `config.log' for more details
> 
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
> 
> ac_cv_build=i386-apple-darwin17.3.0
> ac_cv_env_CC_set=set
> ac_cv_env_CC_value=icc
> ac_cv_env_CFLAGS_set=set
> ac_cv_env_CFLAGS_value='-O3 -xHost -ip -no-prec-div'
> ac_cv_env_CPPFLAGS_set=set
> ac_cv_env_CPPFLAGS_value=-I/usr/local/include
> ac_cv_env_CPP_set=
> ac_cv_env_CPP_value=
> ac_cv_env_F77_set=set
> ac_cv_env_F77_value=ifort
> ac_cv_env_FCFLAGS_set=
> ac_cv_env_FCFLAGS_value=
> ac_cv_env_FC_set=
> ac_cv_env_FC_value=
> ac_cv_env_FFLAGS_set=set
> ac_cv_env_FFLAGS_value='-O3 -xHost -ip -no-prec-div -mdynamic-no-pic'
> ac_cv_env_LDFLAGS_set=set
> ac_cv_env_LDFLAGS_value=-L/usr/local/lib
> 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_host=i386-apple-darwin17.3.0
> ac_cv_path_install='/usr/bin/install -c'
> ac_cv_prog_AWK=awk
> ac_cv_prog_ac_ct_CC=icc
> ac_cv_prog_make_make_set=yes
> ac_cv_target=i386-apple-darwin17.3.0
> am_cv_make_support_nested_variables=yes
> 
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
> 
> ACLOCAL='${SHELL} /Users/naveen/Softwere/netcdf-fortran-4.4.4/missing
> aclocal-1.14'
> ALLOCA=''
> AMDEPBACKSLASH=''
> AMDEP_FALSE=''
> AMDEP_TRUE=''
> AMTAR='$${TAR-tar}'
> AM_BACKSLASH='\'
> AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
> AM_DEFAULT_VERBOSITY='1'
> AM_V='$(V)'
> AR=''
> AUTOCONF='${SHELL} /Users/naveen/Softwere/netcdf-fortran-4.4.4/missing 
> autoconf'
> AUTOHEADER='${SHELL}
> /Users/naveen/Softwere/netcdf-fortran-4.4.4/missing autoheader'
> AUTOMAKE='${SHELL} /Users/naveen/Softwere/netcdf-fortran-4.4.4/missing
> automake-1.14'
> AWK='awk'
> BUILD_BENCHMARKS_FALSE=''
> BUILD_BENCHMARKS_TRUE=''
> BUILD_DAP_FALSE=''
> BUILD_DAP_TRUE=''
> BUILD_DLL_FALSE=''
> BUILD_DLL_TRUE=''
> BUILD_DOCS_FALSE=''
> BUILD_DOCS_TRUE='#'
> BUILD_F03_FALSE=''
> BUILD_F03_TRUE=''
> BUILD_INTERNAL_DOCS='no'
> BUILD_PARALLEL_FALSE=''
> BUILD_PARALLEL_TRUE=''
> BUILD_V2_FALSE=''
> BUILD_V2_TRUE=''
> CC='icc'
> CCDEPMODE=''
> CFLAGS='-O3 -xHost -ip -no-prec-div'
> CPP=''
> CPPFLAGS='-I/usr/local/include'
> CYGPATH_W='echo'
> DEFS=''
> DEPDIR=''
> DLLTOOL=''
> DOT=''
> DOXYGEN=''
> DSYMUTIL=''
> DUMPBIN=''
> ECHO_C='\c'
> ECHO_N=''
> ECHO_T=''
> EGREP=''
> EXEEXT=''
> EXTRA_EXAMPLE_TESTS_FALSE=''
> EXTRA_EXAMPLE_TESTS_TRUE=''
> EXTRA_TESTS_FALSE=''
> EXTRA_TESTS_TRUE='#'
> F77='ifort'
> FC=''
> FCFLAGS=''
> FCFLAGS_f90=''
> FFLAGS='-O3 -xHost -ip -no-prec-div -mdynamic-no-pic'
> FGREP=''
> GREP=''
> HAS_DAP=''
> HAS_F03=''
> HAS_F90=''
> HAS_NC2=''
> HAS_NC4=''
> HAVE_DOT='NO'
> INSTALL_DATA='${INSTALL} -m 644'
> INSTALL_PROGRAM='${INSTALL}'
> INSTALL_SCRIPT='${INSTALL}'
> INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
> LARGE_FILE_TESTS_FALSE=''
> LARGE_FILE_TESTS_TRUE=''
> LD=''
> LDFLAGS='-L/usr/local/lib'
> LIBOBJS=''
> LIBS=''
> LIBTOOL=''
> LIPO=''
> LN_S=''
> LTLIBOBJS=''
> MAINT='#'
> MAINTAINER_MODE_FALSE=''
> MAINTAINER_MODE_TRUE='#'
> MAKEINFO='${SHELL} /Users/naveen/Softwere/netcdf-fortran-4.4.4/missing 
> makeinfo'
> MANIFEST_TOOL=''
> MKDIR_P='./install-sh -c -d'
> MOD_FLAG=''
> NC_FLIBS=''
> NC_LIBS=''
> NM=''
> NMEDIT=''
> NMFLAGS=''
> OBJDUMP=''
> OBJEXT=''
> OTOOL64=''
> OTOOL=''
> PACKAGE='netcdf-fortran'
> PACKAGE_BUGREPORT='address@hidden'
> PACKAGE_NAME='netCDF-Fortran'
> PACKAGE_STRING='netCDF-Fortran 4.4.4'
> PACKAGE_TARNAME='netcdf-fortran'
> PACKAGE_URL=''
> PACKAGE_VERSION='4.4.4'
> PATH_SEPARATOR=':'
> RANLIB=''
> SED=''
> SET_MAKE=''
> SHELL='/bin/sh'
> STRIP=''
> TEST_PARALLEL_FALSE=''
> TEST_PARALLEL_TRUE=''
> UPPER_CASE_MOD_FALSE=''
> UPPER_CASE_MOD_TRUE=''
> USE_LOGGING_FALSE=''
> USE_LOGGING_TRUE=''
> USE_NETCDF4_FALSE=''
> USE_NETCDF4_TRUE=''
> USE_VALGRIND_TESTS_FALSE=''
> USE_VALGRIND_TESTS_TRUE=''
> VERSION='4.4.4'
> ac_ct_AR=''
> ac_ct_CC='icc'
> ac_ct_DUMPBIN=''
> ac_ct_F77=''
> ac_ct_FC=''
> am__EXEEXT_FALSE=''
> am__EXEEXT_TRUE=''
> am__fastdepCC_FALSE=''
> am__fastdepCC_TRUE=''
> am__include=''
> am__isrc=''
> am__leading_dot='.'
> am__nodep=''
> am__quote=''
> am__tar='$${TAR-tar} chof - "$$tardir"'
> am__untar='$${TAR-tar} xf -'
> bindir='${exec_prefix}/bin'
> build='i386-apple-darwin17.3.0'
> build_alias=''
> build_cpu='i386'
> build_os='darwin17.3.0'
> build_vendor='apple'
> datadir='${datarootdir}'
> datarootdir='${prefix}/share'
> docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
> dvidir='${docdir}'
> exec_prefix='NONE'
> host='i386-apple-darwin17.3.0'
> host_alias=''
> host_cpu='i386'
> host_os='darwin17.3.0'
> host_vendor='apple'
> htmldir='${docdir}'
> includedir='${prefix}/include'
> infodir='${datarootdir}/info'
> install_sh='${SHELL} /Users/naveen/Softwere/netcdf-fortran-4.4.4/install-sh'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> mkdir_p='$(MKDIR_P)'
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> prefix='/usr/local'
> program_transform_name='s,x,x,'
> psdir='${docdir}'
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sysconfdir='${prefix}/etc'
> target='i386-apple-darwin17.3.0'
> target_alias=''
> target_cpu='i386'
> target_os='darwin17.3.0'
> target_vendor='apple'
> 
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
> 
> /* confdefs.h */
> #define PACKAGE_NAME "netCDF-Fortran"
> #define PACKAGE_TARNAME "netcdf-fortran"
> #define PACKAGE_VERSION "4.4.4"
> #define PACKAGE_STRING "netCDF-Fortran 4.4.4"
> #define PACKAGE_BUGREPORT "address@hidden"
> #define PACKAGE_URL ""
> #define PACKAGE "netcdf-fortran"
> #define VERSION "4.4.4"
> 
> configure: exit 77
> -------------
> 
> Thank you
> 
> Best regards
> 
> Naveen
> 
> 


Ticket Details
===================
Ticket ID: BGF-782150
Department: Support netCDF
Priority: Critical
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.