Menu

Installing sphinxbase: C compiler issue

Help
2016-06-20
2016-06-21
  • Adam Goodkind

    Adam Goodkind - 2016-06-20

    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-5prealpha adamg$ ./autogen.sh
    **Warning**: I am going to run `configure' with no arguments.
    If you wish to pass any to it, please specify them on the
    `./autogen.sh' command line.
    
    processing .
    Running glibtoolize...
    glibtoolize: putting auxiliary files in '.'.
    glibtoolize: copying file './ltmain.sh'
    glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    glibtoolize: copying file 'm4/libtool.m4'
    glibtoolize: copying file 'm4/ltoptions.m4'
    glibtoolize: copying file 'm4/ltsugar.m4'
    glibtoolize: copying file 'm4/ltversion.m4'
    glibtoolize: copying file 'm4/lt~obsolete.m4'
    Running aclocal  ...
    Running autoheader...
    Running automake --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 -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... ./install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking build system type... x86_64-apple-darwin15.6.0
    checking host system type... x86_64-apple-darwin15.6.0
    checking for style of include used by make... GNU
    checking for gcc... gcc
    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
    See `config.log' for more details
    

    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 sphinxbase configure 5prealpha, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      $ ./configure 
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = adamg.local
    uname -m = x86_64
    uname -r = 15.6.0
    uname -s = Darwin
    uname -v = Darwin Kernel Version 15.6.0: Wed Jun  1 11:10:40 PDT 2016; 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      = Mach kernel version:
         Darwin Kernel Version 15.6.0: Wed Jun  1 11:10:40 PDT 2016; root:xnu-3248.60.4~4/RELEASE_X86_64
    Kernel configured for up to 8 processors.
    4 processors are physically available.
    8 processors are logically available.
    Processor type: x86_64h (Intel x86-64h Haswell)
    Processors active: 0 1 2 3 4 5 6 7
    Primary memory available: 16.00 gigabytes
    Default processor set: 316 tasks, 1844 threads, 8 processors
    Load average: 2.12, Mach factor: 5.87
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    
    PATH: /Users/adamg/.rvm/gems/ruby-2.2.1/bin
    PATH: /Users/adamg/.rvm/gems/ruby-2.2.1@global/bin
    PATH: /Users/adamg/.rvm/rubies/ruby-2.2.1/bin
    PATH: /Users/adamg/anaconda/bin
    PATH: /usr/local/heroku/bin
    PATH: /Users/adamg/code/graehl/carmel/bin/macosx
    PATH: /opt/local/bin
    PATH: /opt/local/sbin
    PATH: /Users/adamg/anaconda/bin
    PATH: /usr/local/bin
    PATH: /usr/local/mysql/bin
    PATH: /usr/local/bin
    PATH: /usr/local/sbin
    PATH: /usr/bin
    PATH: /bin
    PATH: /usr/sbin
    PATH: /sbin
    PATH: /opt/X11/bin
    PATH: /usr/local/git/bin
    PATH: /Library/TeX/texbin
    PATH: /Users/adamg/.rvm/bin
    
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2544: checking for a BSD-compatible install
    configure:2612: result: /usr/bin/install -c
    configure:2623: checking whether build environment is sane
    configure:2678: result: yes
    configure:2829: checking for a thread-safe mkdir -p
    configure:2868: result: ./install-sh -c -d
    configure:2875: checking for gawk
    configure:2905: result: no
    configure:2875: checking for mawk
    configure:2905: result: no
    configure:2875: checking for nawk
    configure:2905: result: no
    configure:2875: checking for awk
    configure:2891: found /usr/bin/awk
    configure:2902: result: awk
    configure:2913: checking whether make sets $(MAKE)
    configure:2935: result: yes
    configure:2964: checking whether make supports nested variables
    configure:2981: result: yes
    configure:3106: checking build system type
    configure:3120: result: x86_64-apple-darwin15.6.0
    configure:3140: checking host system type
    configure:3153: result: x86_64-apple-darwin15.6.0
    configure:3185: checking for style of include used by make
    configure:3213: result: GNU
    configure:3284: checking for gcc
    configure:3300: found /usr/local/bin/gcc
    configure:3311: result: gcc
    configure:3540: checking for C compiler version
    configure:3549: gcc --version >&5
    gcc (GCC) 5.0.0 20141005 (experimental)
    Copyright (C) 2014 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:3560: $? = 0
    configure:3549: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/5.0.0/lto-wrapper
    Target: x86_64-apple-darwin14.0.0
    Configured with: ../gcc-5-20141005/configure --enable-languages=c++,fortran
    Thread model: posix
    gcc version 5.0.0 20141005 (experimental) (GCC) 
    
    configure:3560: $? = 0
    configure:3549: gcc -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3560: $? = 1
    configure:3549: gcc -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3560: $? = 1
    configure:3580: checking whether the C compiler works
    configure:3602: gcc -g -O2 -Wall   conftest.c  >&5
    ld: library not found for -lgcc
    collect2: error: ld returned 1 exit status
    configure:3606: $? = 1
    configure:3644: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "sphinxbase"
    | #define PACKAGE_TARNAME "sphinxbase"
    | #define PACKAGE_VERSION "5prealpha"
    | #define PACKAGE_STRING "sphinxbase 5prealpha"
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE_URL ""
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:3649: error: in `/Users/adamg/te/Polli/ASR/Sphinx/sphinxbase':
    configure:3651: error: C compiler cannot create executables
    See `config.log' for more details
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_build=x86_64-apple-darwin15.6.0
    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_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.0
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_prog_AWK=awk
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=yes
    am_cv_make_support_nested_variables=yes
    
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
    
    ACLOCAL='${SHELL} /Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missing aclocal-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/missing autoconf'
    AUTOHEADER='${SHELL} /Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missing autoheader'
    AUTOMAKE='${SHELL} /Users/adamg/te/Polli/ASR/Sphinx/sphinxbase/missing automake-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} -m 644'
    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/missing makeinfo'
    MANIFEST_TOOL=''
    MKDIR_P='./install-sh -c -d'
    NM=''
    NMEDIT=''
    OBJDUMP=''
    OBJEXT=''
    OTOOL64=''
    OTOOL=''
    PACKAGE='sphinxbase'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME='sphinxbase'
    PACKAGE_STRING='sphinxbase 5prealpha'
    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 */
    #define PACKAGE_NAME "sphinxbase"
    #define PACKAGE_TARNAME "sphinxbase"
    #define PACKAGE_VERSION "5prealpha"
    #define PACKAGE_STRING "sphinxbase 5prealpha"
    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_URL ""
    
    configure: exit 77
    

    How can this be fixed?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.