Announcement

Collapse
No announcement yet.

c compiler errors

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    c compiler errors

    Hi all,

    I'm new to the linux world, I only installed kubuntu 2 weeks ago after years of windows driving me up the wall. I'm having problems with ./configure to compile downloaded programs to install. The error message i get is,

    configure:2848: error: C compiler cannot create executables

    I've pasted a copy of the config.log

    Please help

    shaun

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by configure, which was
    generated by GNU Autoconf 2.59. Invocation command line was

    $ ./configure

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

    hostname = shaun-desktop
    uname -m = i686
    uname -r = 2.6.15-26-386
    uname -s = Linux
    uname -v = #1 PREEMPT Thu Aug 3 02:52:00 UTC 2006

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = i686
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/bin/X11
    PATH: /usr/games


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

    configure:1562: checking build system type
    configure:1580: result: i686-pc-linux-gnulibc1
    configure:1588: checking host system type
    configure:1602: result: i686-pc-linux-gnulibc1
    configure:1610: checking target system type
    configure:1624: result: i686-pc-linux-gnulibc1
    configure:1671: checking for a BSD-compatible install
    configure:1726: result: /usr/bin/install -c
    configure:1741: checking for -p flag to install
    configure:1754: result: yes
    configure:1765: checking whether build environment is sane
    configure:1808: result: yes
    configure:1860: checking for gawk
    configure:1889: result: no
    configure:1860: checking for mawk
    configure:1876: found /usr/bin/mawk
    configure:1886: result: mawk
    configure:1896: checking whether make sets $(MAKE)
    configure:1916: result: yes
    configure:2102: checking for kde-config
    configure:2164: result: /usr/bin/kde-config
    configure:2259: checking where to install
    configure:2263: result: /usr (as returned by kde-config)
    configure:2318: checking for style of include used by make
    configure:2346: result: GNU
    configure:2494: checking for gcc
    configure:2510: found /usr/bin/gcc
    configure:2520: result: gcc
    configure:2764: checking for C compiler version
    configure:2767: gcc --version </dev/null >&5
    gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
    Copyright (C) 2006 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:2770: $? = 0
    configure:2772: gcc -v </dev/null >&5
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=release i486-linux-gnu
    Thread model: posix
    gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
    configure:2775: $? = 0
    configure:2777: gcc -V </dev/null >&5
    gcc: '-V' option must have argument
    configure:2780: $? = 1
    configure:2803: checking for C compiler default output file name
    configure:2806: gcc conftest.c >&5
    /usr/bin/ld: crt1.o: No such file: No such file or directory
    collect2: ld returned 1 exit status
    configure:2809: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE "kooldock"
    | #define VERSION "0.1"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:2848: error: C compiler cannot create executables
    See `config.log' for more details.

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

    ac_cv_build=i686-pc-linux-gnulibc1
    ac_cv_build_alias=i686-pc-linux-gnulibc1
    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_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_F77_set=
    ac_cv_env_F77_value=
    ac_cv_env_FFLAGS_set=
    ac_cv_env_FFLAGS_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_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=i686-pc-linux-gnulibc1
    ac_cv_host_alias=i686-pc-linux-gnulibc1
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_prog_AWK=mawk
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=yes
    ac_cv_target=i686-pc-linux-gnulibc1
    ac_cv_target_alias=i686-pc-linux-gnulibc1
    kde_cv_path=/usr/bin/kde-config
    kde_cv_path_kde_config=/usr/bin/kde-config

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

    ACLOCAL='${SHELL} /home/shaun/kooldock/admin/missing --run aclocal-1.9'
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='${SHELL} /home/shaun/kooldock/admin/missing --run tar'
    AR=''
    ARTSCCONFIG=''
    AUTOCONF='${SHELL} /home/shaun/kooldock/admin/missing --run autoconf'
    AUTODIRS=''
    AUTOHEADER='${SHELL} /home/shaun/kooldock/admin/missing --run autoheader'
    AUTOMAKE='${SHELL} /home/shaun/kooldock/admin/missing --run automake-1.9'
    AWK='mawk'
    CC='gcc'
    CCDEPMODE=''
    CFLAGS=' '
    CONF_FILES=' $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in'
    CPP=''
    CPPFLAGS=''
    CXX=''
    CXXCPP=''
    CXXDEPMODE=''
    CXXFLAGS=''
    CYGPATH_W='echo'
    DCOPIDL2CPP=''
    DCOPIDL=''
    DCOPIDLNG=''
    DCOP_DEPENDENCIES=''
    DEFS=''
    DEPDIR='.deps'
    ECHO='echo'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_PERMISSIVE_FLAG=''
    EXEEXT=''
    F77=''
    FFLAGS=''
    FRAMEWORK_COREAUDIO=''
    GMSGFMT=''
    HAVE_GCC_VISIBILITY=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
    KCFG_DEPENDENCIES=''
    KCONFIG_COMPILER=''
    KDECONFIG='/usr/bin/kde-config'
    KDE_EXTRA_RPATH=''
    KDE_INCLUDES=''
    KDE_LDFLAGS=''
    KDE_MT_LDFLAGS=''
    KDE_MT_LIBS=''
    KDE_NO_UNDEFINED=''
    KDE_PLUGIN=''
    KDE_RPATH=''
    KDE_USE_CLOSURE_FALSE=''
    KDE_USE_CLOSURE_TRUE=''
    KDE_USE_FINAL_FALSE=''
    KDE_USE_FINAL_TRUE=''
    KDE_USE_NMCHECK_FALSE=''
    KDE_USE_NMCHECK_TRUE=''
    KDE_XSL_STYLESHEET=''
    LDFLAGS=''
    LDFLAGS_AS_NEEDED=''
    LIBCOMPAT=''
    LIBCRYPT=''
    LIBDL=''
    LIBJPEG=''
    LIBOBJS=''
    LIBPNG=''
    LIBPTHREAD=''
    LIBRESOLV=''
    LIBS=''
    LIBSM=''
    LIBSOCKET=''
    LIBTOOL=''
    LIBUCB=''
    LIBUTIL=''
    LIBZ=''
    LIB_KAB=''
    LIB_KABC=''
    LIB_KDECORE=''
    LIB_KDEPIM=''
    LIB_KDEPRINT=''
    LIB_KDEUI=''
    LIB_KFILE=''
    LIB_KFM=''
    LIB_KHTML=''
    LIB_KIMPROXY=''
    LIB_KIO=''
    LIB_KNEWSTUFF=''
    LIB_KPARTS=''
    LIB_KSPELL=''
    LIB_KSYCOCA=''
    LIB_KUTILS=''
    LIB_POLL=''
    LIB_QPE=''
    LIB_QT=''
    LIB_SMB=''
    LIB_X11=''
    LIB_XEXT=''
    LIB_XRENDER=''
    LN_S=''
    LTLIBOBJS=''
    MAKEINFO='${SHELL} /home/shaun/kooldock/admin/missing --run makeinfo'
    MAKEKDEWIDGETS=''
    MCOPIDL=''
    MEINPROC=''
    MOC=''
    MSGFMT=''
    NOOPT_CFLAGS=''
    NOOPT_CXXFLAGS=''
    OBJEXT=''
    PACKAGE='kooldock'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    PERL=''
    QTE_NORTTI=''
    QT_INCLUDES=''
    QT_LDFLAGS=''
    RANLIB=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRIP=''
    TOPSUBDIRS=''
    UIC=''
    UIC_TR=''
    USER_INCLUDES=''
    USER_LDFLAGS=''
    USE_EXCEPTIONS=''
    USE_RTTI=''
    USE_THREADS=''
    VERSION='0.1'
    WOVERLOADED_VIRTUAL=''
    XGETTEXT=''
    XMLLINT=''
    X_EXTRA_LIBS=''
    X_INCLUDES=''
    X_LDFLAGS=''
    X_PRE_LIBS=''
    X_RPATH=''
    ac_ct_AR=''
    ac_ct_CC='gcc'
    ac_ct_CXX=''
    ac_ct_F77=''
    ac_ct_RANLIB=''
    ac_ct_STRIP=''
    all_includes=''
    all_libraries=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE=''
    am__fastdepCXX_TRUE=''
    am__include='include'
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build='i686-pc-linux-gnulibc1'
    build_alias=''
    build_cpu='i686'
    build_os='linux-gnulibc1'
    build_vendor='pc'
    datadir='${prefix}/share'
    exec_prefix='NONE'
    host='i686-pc-linux-gnulibc1'
    host_alias=''
    host_cpu='i686'
    host_os='linux-gnulibc1'
    host_vendor='pc'
    include_ARTS_FALSE=''
    include_ARTS_TRUE=''
    includedir='${prefix}/include'
    infodir='${prefix}/info'
    install_sh='/home/shaun/kooldock/admin/install-sh'
    kde_appsdir=''
    kde_bindir=''
    kde_confdir=''
    kde_datadir=''
    kde_htmldir=''
    kde_icondir=''
    kde_includes=''
    kde_kcfgdir=''
    kde_libraries=''
    kde_libs_htmldir='/usr/share/doc/kde/HTML'
    kde_libs_prefix='/usr'
    kde_locale=''
    kde_mimedir=''
    kde_moduledir=''
    kde_qtver=''
    kde_servicesdir=''
    kde_servicetypesdir=''
    kde_sounddir=''
    kde_styledir=''
    kde_templatesdir=''
    kde_wallpaperdir=''
    kde_widgetdir=''
    kdeinitdir=''
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localstatedir='${prefix}/var'
    mandir='${prefix}/man'
    mkdir_p='mkdir -p --'

    #2
    Re: c compiler errors

    I am seeing a very simliar issue with GCC as well when trying to compile kxdocker 1.1.4. I'm not sure what the issue is. This is a fresh install of kubuntu - from yesterday and a similarly new install of gcc. ??



    "hostname = antiflash-puter
    uname -m = i686
    uname -r = 2.6.15-26-386
    uname -s = Linux
    uname -v = #1 PREEMPT Thu Aug 3 02:52:00 UTC 2006

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = i686
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/bin/X11
    PATH: /usr/games


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

    configure:1563: checking build system type
    configure:1581: result: i686-pc-linux-gnulibc1
    configure:1589: checking host system type
    configure:1603: result: i686-pc-linux-gnulibc1
    configure:1611: checking target system type
    configure:1625: result: i686-pc-linux-gnulibc1
    configure:1672: checking for a BSD-compatible install
    configure:1727: result: /usr/bin/install -c
    configure:1742: checking for -p flag to install
    configure:1755: result: yes
    configure:1766: checking whether build environment is sane
    configure:1809: result: yes
    configure:1829: checking for gawk
    configure:1845: found /usr/bin/gawk
    configure:1855: result: gawk
    configure:1865: checking whether make sets $(MAKE)
    configure:1885: result: yes
    configure:2067: checking for kde-config
    configure:2129: result: /usr/bin/kde-config
    configure:2225: checking where to install
    configure:2229: result: /usr (as returned by kde-config)
    configure:2284: checking for style of include used by make
    configure:2312: result: GNU
    configure:2460: checking for gcc
    configure:2476: found /usr/bin/gcc
    configure:2486: result: gcc
    configure:2730: checking for C compiler version
    configure:2733: gcc --version </dev/null >&5
    gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
    Copyright (C) 2006 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:2736: $? = 0
    configure:2738: gcc -v </dev/null >&5
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=release i486-linux-gnu
    Thread model: posix
    gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
    configure:2741: $? = 0
    configure:2743: gcc -V </dev/null >&5
    gcc: '-V' option must have argument
    configure:2746: $? = 1
    configure:2769: checking for C compiler default output file name
    configure:2772: gcc conftest.c >&5
    /usr/bin/ld: crt1.o: No such file: No such file or directory
    collect2: ld returned 1 exit status
    configure:2775: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE "kxdocker"
    | #define VERSION "0.40"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:2814: error: C compiler cannot create executables
    See `config.log' for more details."


    Comment


      #3
      Re: c compiler errors

      Hi all,

      I've solved this problem first, I went to this site

      http://people.fruitsalad.org/adridg/...o-Kueglix.html

      and in konsole entered

      "sudo apt-get build-dep kdelibs"

      to get the build-essential package.

      I then had a problem with the headers so went to this site

      http://packages.ubuntulinux.org/dapp...kdelibs4-devin

      I installed "kdelibs4-dev" in Adept problem solved works fine now

      shaun

      Comment

      Working...
      X