I am installing sphinxbase via the instructions. When I run ./autogen.sh from the sphinxbase directory, I get the output below. I have highlighted the error here. I've also added the log file, as there seem to be some issues that I do not completely understand.
checking whether the C compiler works... no
configure: error: in `/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase-5prealpha':
configure: error: C compiler cannot create executables
Full output:
adamg:sphinxbase-5prealphaadamg$./autogen.sh**Warning**:Iamgoingtorun`configure' with no arguments.If you wish to pass any to it, please specify them on the`./autogen.sh'commandline.processing.Runningglibtoolize...glibtoolize:puttingauxiliaryfilesin'.'.glibtoolize:copyingfile'./ltmain.sh'glibtoolize:puttingmacrosinAC_CONFIG_MACRO_DIRS,'m4'.glibtoolize:copyingfile'm4/libtool.m4'glibtoolize:copyingfile'm4/ltoptions.m4'glibtoolize:copyingfile'm4/ltsugar.m4'glibtoolize:copyingfile'm4/ltversion.m4'glibtoolize:copyingfile'm4/lt~obsolete.m4'Runningaclocal...Runningautoheader...Runningautomake--foreign--copy...configure.ac:12:installing'./compile'configure.ac:6:installing'./missing'src/libsphinxad/Makefile.am: installing './depcomp'Running autoconf ...Running ./configure ...checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... ./install-sh -c -dchecking for gawk... nochecking for mawk... nochecking for nawk... nochecking for awk... awkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking build system type... x86_64-apple-darwin15.6.0checking host system type... x86_64-apple-darwin15.6.0checking for style of include used by make... GNUchecking for gcc... gccchecking whether the C compiler works... noconfigure: error: in `/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase-5prealpha':configure:error:CcompilercannotcreateexecutablesSee`config.log'formoredetails
config.log:
Thisfilecontainsanymessagesproducedbycompilerswhilerunningconfigure,toaiddebuggingifconfiguremakesamistake.Itwascreatedbysphinxbaseconfigure5prealpha,whichwasgeneratedbyGNUAutoconf2.69.Invocationcommandlinewas$./configure##---------####Platform.####---------##hostname=adamg.localuname-m=x86_64uname-r=15.6.0uname-s=Darwinuname-v=DarwinKernelVersion15.6.0:WedJun111:10:40PDT2016;root:xnu-3248.60.4~4/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=Machkernelversion:DarwinKernelVersion15.6.0:WedJun111:10:40PDT2016;root:xnu-3248.60.4~4/RELEASE_X86_64Kernelconfiguredforupto8processors.4processorsarephysicallyavailable.8processorsarelogicallyavailable.Processortype:x86_64h(Intelx86-64hHaswell)Processorsactive:01234567Primarymemoryavailable:16.00gigabytesDefaultprocessorset:316tasks,1844threads,8processorsLoadaverage:2.12,Machfactor:5.87/bin/machine=unknown/usr/bin/oslevel=unknown/bin/universe=unknownPATH:/Users/adamg/.rvm/gems/ruby-2.2.1/binPATH:/Users/adamg/.rvm/gems/ruby-2.2.1@global/binPATH:/Users/adamg/.rvm/rubies/ruby-2.2.1/binPATH:/Users/adamg/anaconda/binPATH:/usr/local/heroku/binPATH:/Users/adamg/code/graehl/carmel/bin/macosxPATH:/opt/local/binPATH:/opt/local/sbinPATH:/Users/adamg/anaconda/binPATH:/usr/local/binPATH:/usr/local/mysql/binPATH:/usr/local/binPATH:/usr/local/sbinPATH:/usr/binPATH:/binPATH:/usr/sbinPATH:/sbinPATH:/opt/X11/binPATH:/usr/local/git/binPATH:/Library/TeX/texbinPATH:/Users/adamg/.rvm/bin##-----------####Coretests.####-----------##configure:2544:checkingforaBSD-compatibleinstallconfigure:2612:result:/usr/bin/install-cconfigure:2623:checkingwhetherbuildenvironmentissaneconfigure:2678:result:yesconfigure:2829:checkingforathread-safemkdir-pconfigure:2868:result:./install-sh-c-dconfigure:2875:checkingforgawkconfigure:2905:result:noconfigure:2875:checkingformawkconfigure:2905:result:noconfigure:2875:checkingfornawkconfigure:2905:result:noconfigure:2875:checkingforawkconfigure:2891:found/usr/bin/awkconfigure:2902:result:awkconfigure:2913:checkingwhethermakesets$(MAKE)configure:2935:result:yesconfigure:2964:checkingwhethermakesupportsnestedvariablesconfigure:2981:result:yesconfigure:3106:checkingbuildsystemtypeconfigure:3120:result:x86_64-apple-darwin15.6.0configure:3140:checkinghostsystemtypeconfigure:3153:result:x86_64-apple-darwin15.6.0configure:3185:checkingforstyleofincludeusedbymakeconfigure:3213:result:GNUconfigure:3284:checkingforgccconfigure:3300:found/usr/local/bin/gccconfigure:3311:result:gccconfigure:3540:checkingforCcompilerversionconfigure:3549:gcc--version>&5gcc(GCC)5.0.020141005(experimental)Copyright(C)2014FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNOwarranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.configure:3560:$?=0configure:3549:gcc-v>&5Usingbuilt-inspecs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/5.0.0/lto-wrapperTarget:x86_64-apple-darwin14.0.0Configuredwith:../gcc-5-20141005/configure--enable-languages=c++,fortranThreadmodel:posixgccversion5.0.020141005(experimental)(GCC)configure:3560:$?=0configure:3549:gcc-V>&5gcc:error:unrecognizedcommandlineoption'-V'gcc:fatalerror:noinputfilescompilationterminated.configure:3560:$?=1configure:3549:gcc-qversion>&5gcc:error:unrecognizedcommandlineoption'-qversion'gcc:fatalerror:noinputfilescompilationterminated.configure:3560:$?=1configure:3580:checkingwhethertheCcompilerworksconfigure:3602:gcc-g-O2-Wallconftest.c>&5ld:librarynotfoundfor-lgcccollect2:error:ldreturned1exitstatusconfigure:3606:$?=1configure:3644:result:noconfigure:failedprogramwas:|/* confdefs.h */|#definePACKAGE_NAME"sphinxbase"|#definePACKAGE_TARNAME"sphinxbase"|#definePACKAGE_VERSION"5prealpha"|#definePACKAGE_STRING"sphinxbase 5prealpha"|#definePACKAGE_BUGREPORT""|#definePACKAGE_URL""|/* end confdefs.h. */||int|main()|{||;|return0;|}configure:3649:error:in`/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase':configure:3651:error:CcompilercannotcreateexecutablesSee`config.log'formoredetails##----------------####Cachevariables.####----------------##ac_cv_build=x86_64-apple-darwin15.6.0ac_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_LDFLAGS_set=ac_cv_env_LDFLAGS_value=ac_cv_env_LIBS_set=ac_cv_env_LIBS_value=ac_cv_env_LT_SYS_LIBRARY_PATH_set=ac_cv_env_LT_SYS_LIBRARY_PATH_value=ac_cv_env_PYTHON_VERSION_set=ac_cv_env_PYTHON_VERSION_value=ac_cv_env_PYTHON_set=ac_cv_env_PYTHON_value=ac_cv_env_YACC_set=ac_cv_env_YACC_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=x86_64-apple-darwin15.6.0ac_cv_path_install='/usr/bin/install-c'ac_cv_prog_AWK=awkac_cv_prog_ac_ct_CC=gccac_cv_prog_make_make_set=yesam_cv_make_support_nested_variables=yes##-----------------####Outputvariables.####-----------------##ACLOCAL='${SHELL}/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missingaclocal-1.15'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/adamg/te/Polli/ASR/Sphinx/sphinxbase/missingautoconf'AUTOHEADER='${SHELL}/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missingautoheader'AUTOMAKE='${SHELL}/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missingautomake-1.15'AWK='awk'BUILD_DOXYGEN_FALSE=''BUILD_DOXYGEN_TRUE=''BUILD_SWIG_FALSE=''BUILD_SWIG_TRUE=''CC='gcc'CCDEPMODE=''CFLAGS='-g-O2-Wall'CPP=''CPPFLAGS=''CYGPATH_W='echo'DEFS=''DEPDIR='.deps'DLLTOOL=''DSYMUTIL=''DUMPBIN=''ECHO_C='\c'ECHO_N=''ECHO_T=''EGREP=''EXEEXT=''FGREP=''FIXED_POINT_FALSE=''FIXED_POINT_TRUE=''GREP=''HAVE_DOXYGEN=''INSTALL_DATA='${INSTALL}-m644'INSTALL_PROGRAM='${INSTALL}'INSTALL_SCRIPT='${INSTALL}'INSTALL_STRIP_PROGRAM='$(install_sh)-c-s'LAPACK_LITE_FALSE=''LAPACK_LITE_TRUE=''LD=''LDFLAGS=''LIBOBJS=''LIBS=''LIBTOOL=''LIPO=''LN_S=''LTLIBOBJS=''LT_SYS_LIBRARY_PATH=''MAKEINFO='${SHELL}/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missingmakeinfo'MANIFEST_TOOL=''MKDIR_P='./install-sh-c-d'NM=''NMEDIT=''OBJDUMP=''OBJEXT=''OTOOL64=''OTOOL=''PACKAGE='sphinxbase'PACKAGE_BUGREPORT=''PACKAGE_NAME='sphinxbase'PACKAGE_STRING='sphinxbase5prealpha'PACKAGE_TARNAME='sphinxbase'PACKAGE_URL=''PACKAGE_VERSION='5prealpha'PATH_SEPARATOR=':'PYTHON=''PYTHON_CPPFLAGS=''PYTHON_EXEC_PREFIX=''PYTHON_EXTRA_LDFLAGS=''PYTHON_EXTRA_LIBS=''PYTHON_LDFLAGS=''PYTHON_PLATFORM=''PYTHON_PREFIX=''PYTHON_SITE_PKG=''PYTHON_VERSION=''RANLIB=''SED=''SET_MAKE=''SHELL='/bin/sh'STRIP=''SWIG=''SWIG_LIB=''USE_LAPACK_FALSE=''USE_LAPACK_TRUE=''USE_THREADS_FALSE=''USE_THREADS_TRUE=''VERSION='5prealpha'YACC=''ac_ct_AR=''ac_ct_CC='gcc'ac_ct_DUMPBIN=''ad_cppflags=''ad_files=''ad_libs=''am__EXEEXT_FALSE=''am__EXEEXT_TRUE=''am__fastdepCC_FALSE=''am__fastdepCC_TRUE=''am__include='include'am__isrc=''am__leading_dot='.'am__nodep='_no'am__quote=''am__tar='$${TAR-tar}chof-"$$tardir"'am__untar='$${TAR-tar}xf-'bindir='${exec_prefix}/bin'build='x86_64-apple-darwin15.6.0'build_alias=''build_cpu='x86_64'build_os='darwin15.6.0'build_vendor='apple'datadir='${datarootdir}'datarootdir='${prefix}/share'docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'dvidir='${docdir}'exec_prefix='NONE'host='x86_64-apple-darwin15.6.0'host_alias=''host_cpu='x86_64'host_os='darwin15.6.0'host_vendor='apple'htmldir='${docdir}'includedir='${prefix}/include'infodir='${datarootdir}/info'install_sh='${SHELL}/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/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}'pkgpyexecdir=''pkgpythondir=''prefix='NONE'program_transform_name='s,x,x,'psdir='${docdir}'pyexecdir=''pythondir=''sbindir='${exec_prefix}/sbin'sharedstatedir='${prefix}/com'sysconfdir='${prefix}/etc'target_alias=''##-----------####confdefs.h.####-----------##/* confdefs.h */#definePACKAGE_NAME"sphinxbase"#definePACKAGE_TARNAME"sphinxbase"#definePACKAGE_VERSION"5prealpha"#definePACKAGE_STRING"sphinxbase 5prealpha"#definePACKAGE_BUGREPORT""#definePACKAGE_URL""configure:exit77
How can this be fixed?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am installing sphinxbase via the instructions. When I run ./autogen.sh from the sphinxbase directory, I get the output below. I have highlighted the error here. I've also added the log file, as there seem to be some issues that I do not completely understand.
Full output:
config.log:
How can this be fixed?
You need to install C compiler (XCode command line tools).
This is what message says.
Google search might be also helpful for you
http://stackoverflow.com/questions/10357804/configure-error-c-compiler-cannot-create-executables