6.1 will not ./configure any program

Asked by Glenn

I keep getting this error message

glenn@glenn-desktop:~/games/gweled-0.7$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
glenn@glenn-desktop:~/games/gweled-0.7$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

what is the contents of config.log?

Revision history for this message
Ralph Janke (txwikinger) said :
#2

It indicates, that it finds a cc compiler (gcc), but because of some reason, the gcc is not able to compile a small test program.

Maybe some necessary binutils are missing?

Revision history for this message
Glenn (fishguy91257) said :
#3

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 = glenn-desktop
uname -m = i686
uname -r = 2.6.17-11-generic
uname -s = Linux
uname -v = #2 SMP Thu Feb 1 19:52:28 UTC 2007

/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:1309: checking for a BSD-compatible install
configure:1364: result: /usr/bin/install -c
configure:1375: checking whether build environment is sane
configure:1418: result: yes
configure:1483: checking for gawk
configure:1512: result: no
configure:1483: checking for mawk
configure:1499: found /usr/bin/mawk
configure:1509: result: mawk
configure:1519: checking whether make sets $(MAKE)
configure:1539: result: yes
configure:1707: checking whether to enable maintainer-specific portions of Makefiles
configure:1716: result: no
configure:1746: checking for style of include used by make
configure:1774: result: GNU
configure:1845: checking for gcc
configure:1861: found /usr/bin/gcc
configure:1871: result: gcc
configure:2115: checking for C compiler version
configure:2118: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
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:2121: $? = 0
configure:2123: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
configure:2126: $? = 0
configure:2128: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2131: $? = 1
configure:2154: checking for C compiler default output file name
configure:2157: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2160: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gweled"
| #define VERSION "0.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2199: 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_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

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

ACLOCAL='${SHELL} /home/glenn/games/gweled-0.7/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/glenn/games/gweled-0.7/missing --run tar'
AUTOCONF='${SHELL} /home/glenn/games/gweled-0.7/missing --run autoconf'
AUTOHEADER='${SHELL} /home/glenn/games/gweled-0.7/missing --run autoheader'
AUTOMAKE='${SHELL} /home/glenn/games/gweled-0.7/missing --run automake-1.9'
AWK='mawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/glenn/games/gweled-0.7/missing --run makeinfo'
OBJEXT=''
PACKAGE='gweled'
PACKAGE_BUGREPORT=''
PACKAGE_CFLAGS=''
PACKAGE_LIBS=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.7'
ac_ct_CC='gcc'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/glenn/games/gweled-0.7/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
scoredir=''
scores_group=''
scores_user=''
setgid=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE "gweled"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.7"

configure: exit 77

Revision history for this message
Ralph Janke (txwikinger) said :
#4

ok.. the config.log gives you the clue:

the linker (ld) cannot find a library it needs:

> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status

This library and a lot of other important ones for compiling are included in the package libc6-dev. You can either install it with the package manager of your choice of with

    sudo apt-get install libc6-dev

After installation of this you should get passed this step.

Revision history for this message
Glenn (fishguy91257) said :
#5

This worked for the complier, but now my make command says several lib files not there three I remember are librsvg, libgnomeui-2.0, lib???-2.0 I look in package list and ven searched and these files are not found. I hav eto go to work will attemp to find problem latter

----- Original Message ----
From: Glenn <email address hidden>
To: <email address hidden>
Sent: Sunday, February 11, 2007 1:11:12 PM
Subject: [Support #3632]: Re: 6.1 will not ./configure any program

Your support request #3632 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+ticket/3632

    Status: Answered => Open

You are still having a problem:
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 = glenn-desktop
uname -m = i686
uname -r = 2.6.17-11-generic
uname -s = Linux
uname -v = #2 SMP Thu Feb 1 19:52:28 UTC 2007

/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:1309: checking for a BSD-compatible install
configure:1364: result: /usr/bin/install -c
configure:1375: checking whether build environment is sane
configure:1418: result: yes
configure:1483: checking for gawk
configure:1512: result: no
configure:1483: checking for mawk
configure:1499: found /usr/bin/mawk
configure:1509: result: mawk
configure:1519: checking whether make sets $(MAKE)
configure:1539: result: yes
configure:1707: checking whether to enable maintainer-specific portions of Makefiles
configure:1716: result: no
configure:1746: checking for style of include used by make
configure:1774: result: GNU
configure:1845: checking for gcc
configure:1861: found /usr/bin/gcc
configure:1871: result: gcc
configure:2115: checking for C compiler version
configure:2118: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
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:2121: $? = 0
configure:2123: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
configure:2126: $? = 0
configure:2128: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2131: $? = 1
configure:2154: checking for C compiler default output file name
configure:2157: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2160: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gweled"
| #define VERSION "0.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2199: 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_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

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

ACLOCAL='${SHELL} /home/glenn/games/gweled-0.7/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/glenn/games/gweled-0.7/missing --run tar'
AUTOCONF='${SHELL} /home/glenn/games/gweled-0.7/missing --run autoconf'
AUTOHEADER='${SHELL} /home/glenn/games/gweled-0.7/missing --run autoheader'
AUTOMAKE='${SHELL} /home/glenn/games/gweled-0.7/missing --run automake-1.9'
AWK='mawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/glenn/games/gweled-0.7/missing --run makeinfo'
OBJEXT=''
PACKAGE='gweled'
PACKAGE_BUGREPORT=''
PACKAGE_CFLAGS=''
PACKAGE_LIBS=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.7'
ac_ct_CC='gcc'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/glenn/games/gweled-0.7/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
scoredir=''
scores_group=''
scores_user=''
setgid=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE "gweled"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.7"

configure: exit 77

____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

Revision history for this message
Ralph Janke (txwikinger) said :
#6

librsvg - this is probably the package librsvg2-dev
libgnomeui-2.0 - this seems to be the package libgnomeui-dev
lib???-2.0 - whatever the ??? lib???-dev.

Maybe it is easier to check in the description explaining the dependencies for all the necessary packages that need to be installed.

You should install always the *-dev packages since they include the necessary library and header files.

Revision history for this message
Ramya Rajakumar (ramya-sundaravalli) said :
#7

Hi,

I have a problem while installing Squid in my system, can anyone help me get a solution on this.

root@rproxy-desktop:~/ramya/squid-2.7.STABLE6# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
root@rproxy-desktop:~/ramya/squid-2.7.STABLE6#

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

@ Ramya Rajakumar the original question was asked 2007-02-11 by Glenn

So please....

Don't append a new question on a already answered or marked as solved question.
Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion
you will get better chance to get right answer on a fresh tagged "open" question.
Solved or answered questions are usually not read from answering people.

Thank you

Can you help with this problem?

Provide an answer of your own, or ask Glenn for more information if necessary.

To post a message you must log in.