Ad Widget

Collapse

C compiler cannot create executables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NetDC
    Junior Member
    • Oct 2004
    • 2

    #1

    C compiler cannot create executables

    Hi ,when I do the configure, it show me :

    zabbix-1.0# ./configure
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output... configure: error: C compiler cannot create executables
    See `config.log' for more details.

    the config.log is as below:

    # more 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 configure, which was
    generated by GNU Autoconf 2.57. Invocation command line was

    $ ./configure

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

    hostname = pybis
    uname -m = i686
    uname -r = 2.4.18-bf2.4
    uname -s = Linux
    uname -v = #1 Son Apr 14 09:53:28 CEST 2002

    /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


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

    configure:1283: checking whether make sets $(MAKE)
    configure:1303: result: yes
    configure:1360: checking for gcc
    configure:1376: found /usr/bin/gcc
    configure:1386: result: gcc
    configure:1630: checking for C compiler version
    configure:1633: gcc --version </dev/null >&5
    3.0.4
    configure:1636: $? = 0
    configure:1638: gcc -v </dev/null >&5
    Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs
    Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,obj
    c --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with
    -gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --witho
    ut-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=b
    oehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
    Thread model: posix
    gcc version 3.0.4
    configure:1641: $? = 0
    configure:1643: gcc -V </dev/null >&5
    gcc: argument to `-V' is missing
    configure:1646: $? = 1
    configure:1670: checking for C compiler default output
    configure:1673: gcc conftest.c >&5
    /usr/bin/ld: cannot open crt1.o: No such file or directory
    collect2: ld returned 1 exit status
    configure:1676: $? = 1
    configure: failed program was:
    | #line 1649 "configure"
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:1715: error: C compiler cannot create executables
    See `config.log' for more details.

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

    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_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_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=yes

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

    CC='gcc'
    CFLAGS=''
    CPP=''
    CPPFLAGS=''
    DEFS=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    LDFLAGS=''
    LIBOBJS=''
    LIBS=''
    LTLIBOBJS=''
    MYSQL_INCLUDE=''
    MYSQL_LFLAGS=''
    OBJEXT=''
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    PGSQL_INCLUDE=''
    PGSQL_LFLAGS=''
    SET_MAKE=''
    SHELL='/bin/sh'
    SNMP_INCLUDE=''
    SNMP_LFLAGS=''
    SUBDIRS=''
    ac_ct_CC='gcc'
    bindir='${exec_prefix}/bin'
    build_alias=''
    datadir='${prefix}/share'
    exec_prefix='NONE'
    host_alias=''
    includedir='${prefix}/include'
    infodir='${prefix}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localstatedir='${prefix}/var'
    mandir='${prefix}/man'
    oldincludedir='/usr/include'
    prefix='NONE'
    program_transform_name='s,x,x,'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''

    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##

    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_NAME ""
    #define PACKAGE_STRING ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""

    configure: exit 77


    My OS is Debian/stable.
    Thanks.
  • NetDC
    Junior Member
    • Oct 2004
    • 2

    #2
    soluted

    I found the problem.
    it can not find the crt1.o library. I just install the libc6-dev, and completed the configure.

    Thanks.

    Comment

    Working...