Opened 11 years ago

Last modified 7 years ago

#573 closed defect (Not a bug)

Error: C compiler cannot create executables

Reported by: johndoe32102002 Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version: 0.2.0.9-alpha
Severity: Keywords:
Cc: johndoe32102002, nickm, arma Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Version: tor-0.2.0.12-alpha

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.61. Invocation command line was

$ ./configure

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

hostname = COMPUTER
uname -m = i686
uname -r = 2.6.22-14-generic
uname -s = Linux
uname -v = #1 SMP Sun Oct 14 23:05:12 GMT 2007

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/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/games

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

configure:1805: checking for a BSD-compatible install
configure:1861: result: /usr/bin/install -c
configure:1872: checking whether build environment is sane
configure:1915: result: yes
configure:1943: checking for a thread-safe mkdir -p
configure:1982: result: /bin/mkdir -p
configure:1995: checking for gawk
configure:2025: result: no
configure:1995: checking for mawk
configure:2011: found /usr/bin/mawk
configure:2022: result: mawk
configure:2033: checking whether make sets $(MAKE)
configure:2054: result: yes
configure:2251: checking build system type
configure:2269: result: i686-pc-linux-gnulibc1
configure:2291: checking host system type
configure:2306: result: i686-pc-linux-gnulibc1
configure:2465: checking for gcc
configure:2481: found /usr/bin/gcc
configure:2492: result: gcc
configure:2730: checking for C compiler version
configure:2737: gcc --version >&5
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
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:2740: $? = 0
configure:2747: gcc -v >&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 --with-gxx-include-dir=/usr/include/c++/4.1.3 --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.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2750: $? = 0
configure:2757: gcc -V >&5
gcc: '-V' option must have argument
configure:2760: $? = 1
configure:2783: checking for C compiler default output file name
configure:2810: gcc -I../common conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2813: $? = 1
configure:2851: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "tor"
| #define VERSION "0.2.0.12-alpha"
| #define ENABLE_CELL_POOL 1
| #define ENABLE_THREADS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2858: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/user/tor-0.2.0.12-alpha/missing --run aclocal-1.10'
AMDEPBACKSLASH=
AMDEP_FALSE=

AMDEP_TRUE=
AMTAR='${SHELL} /home/user/tor-0.2.0.12-alpha/missing --run tar'
AUTOCONF='${SHELL} /home/user/tor-0.2.0.12-alpha/missing --run autoconf'
AUTOHEADER='${SHELL} /home/user/tor-0.2.0.12-alpha/missing --run autoheader'
AUTOMAKE='${SHELL} /home/user/tor-0.2.0.12-alpha/missing --run automake-1.10'
AWK='mawk'
BINDIR=

BUILD_NT_SERVICES_FALSE=
BUILD_NT_SERVICES_TRUE=

CC='gcc'
CCDEPMODE=
CFLAGS=

CONFDIR=
CPP=

CPPFLAGS=' -I../common'
CYGPATH_W='echo'
DEFS=
DEPDIR=

ECHO_C=
ECHO_N='-n'
ECHO_T=

EGREP=
EXEEXT=

GREP=
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=

LIBOBJS=
LIBS=

LOCALSTATEDIR=
LOGFACILITY=

LTLIBOBJS=
MAKEINFO='${SHELL} /home/user/tor-0.2.0.12-alpha/missing --run makeinfo'
OBJEXT=

PACKAGE='tor'
PACKAGE_BUGREPORT=
PACKAGE_NAME=

PACKAGE_STRING=
PACKAGE_TARNAME=

PACKAGE_VERSION=
PATH_SEPARATOR=':'
RANLIB=

SET_MAKE=
SHELL='/bin/bash'
STRIP=

TORGROUP=
TORUSER=

TOR_CPPFLAGS_libevent=
TOR_CPPFLAGS_openssl=

TOR_CPPFLAGS_zlib=
TOR_LDFLAGS_libevent=

TOR_LDFLAGS_openssl=
TOR_LDFLAGS_zlib=

TOR_LIB_GDI=
TOR_LIB_WS32=

VERSION='0.2.0.12-alpha'
ac_ct_CC='gcc'
amfastdepCC_FALSE=
am
fastdepCC_TRUE=
aminclude=
am
isrc=
amleading_dot='.'
am
quote=
amtar='${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='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnulibc1'
host_alias=
host_cpu='i686'
host_os='linux-gnulibc1'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/user/tor-0.2.0.12-alpha/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "tor"
#define VERSION "0.2.0.12-alpha"
#define ENABLE_CELL_POOL 1
#define ENABLE_THREADS 1

configure: exit 77

[Automatically added by flyspray2trac: Operating System: Other Linux]

Child Tickets

Change History (7)

comment:1 Changed 11 years ago by nickm

Check out this part:

configure:2810: gcc -I../common conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

crt1.o is the C runtime. If GCC can't find it, that sometimes means that libc dev libraries aren't installed.
On Debian (and Ubuntu too, I'm guessing), this means that you need to install the libc6-dev package.

comment:2 Changed 11 years ago by arma

You'll probably need to install other -dev packages too, after that.
There's a "master" package that installs enough libs to build C programs;
ask your Ubuntu people for help there.

comment:3 Changed 11 years ago by nickm

I wonder if we can get autoconf to give a more useful message for this.

comment:4 Changed 11 years ago by johndoe32102002

Here is what fixed this error:

sudo apt-get install libc6-dev libevent-dev libssl-dev

Then the ./configure ran fine.

comment:5 Changed 11 years ago by nickm

Okay. Looking at autoconf, it doesn't seem that there's an easy way to give a better error
message for this. I'll close this as not-a-bug.

comment:6 Changed 11 years ago by nickm

flyspray2trac: bug closed.

comment:7 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.