Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96046 - configure: error: C compiler cannot create executables
Summary: configure: error: C compiler cannot create executables
Status: RESOLVED DUPLICATE of bug 95928
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-14 01:53 UTC by Mustafa Mesanovic
Modified: 2005-06-14 08:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mustafa Mesanovic 2005-06-14 01:53:09 UTC
This happens in my case with sandbox-1.2.9. I tried it with rsync, and the same
error. I assume that a link for the assembler (as) is missing...

Reproducible: Always
Steps to Reproduce:
1. emerge -u -D world
2.
3.
Actual Results:  
...
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.
...


...as I said I think it is a bug within the gcc package...not quite sure. But
maybe some of you know it...hopefully.
Comment 1 Mustafa Mesanovic 2005-06-14 01:59:12 UTC
the config.log:

cat /var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/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 sandbox configure 1.2.9, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --libdir=/usr/lib

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

hostname = mume1
uname -m = i686
uname -r = 2.6.10
uname -s = Linux
uname -v = #19 Thu Apr 7 10:40:31 CEST 2005

/usr/bin/uname -p = Intel(R) Pentium(R) M processor 1700MHz
/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: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.3
PATH: /opt/ati/bin
PATH: /opt/blackdown-jdk-1.4.2.01/bin
PATH: /opt/blackdown-jdk-1.4.2.01/jre/bin
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin
PATH: /usr/kde/3.3/sbin
PATH: /usr/kde/3.3/bin


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

configure:1531: checking for a BSD-compatible install
configure:1586: result: /bin/install -c
configure:1597: checking whether build environment is sane
configure:1640: result: yes
configure:1705: checking for gawk
configure:1721: found /bin/gawk
configure:1731: result: gawk
configure:1741: checking whether make sets $(MAKE)
configure:1761: result: yes
configure:1940: checking for i686-pc-linux-gnu-gcc
configure:1956: found /usr/bin/i686-pc-linux-gnu-gcc
configure:1966: result: i686-pc-linux-gnu-gcc
configure:2248: checking for C compiler version
configure:2251: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2,
pie-8.7.6)
Copyright (C) 2003 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:2254: $? = 0
configure:2256: i686-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++ --enable-threads=posix --enable-long-long
--disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --disable-multilib --enable-__cxa_atexit
--enable-clocale=generic
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
configure:2259: $? = 0
configure:2261: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:2264: $? = 1
configure:2287: checking for C compiler default output file name
configure:2290: i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer  
conftest.c  >&5
i686-pc-linux-gnu-gcc: installation problem, cannot exec `as': No such file or
directory
configure:2293: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "sandbox"
| #define PACKAGE_TARNAME "sandbox"
| #define PACKAGE_VERSION "1.2.9"
| #define PACKAGE_STRING "sandbox 1.2.9"
| #define PACKAGE_BUGREPORT "dev-portage@gentoo.org"
| #define PACKAGE "sandbox"
| #define VERSION "1.2.9"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2332: 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=set
ac_cv_env_CFLAGS_value='-O2 -march=i686 -fomit-frame-pointer'
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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL}
/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL}
/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/missing --run tar'
AR=''
AUTOCONF='${SHELL}
/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/missing --run autoconf'
AUTOHEADER='${SHELL}
/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/missing --run autoheader'
AUTOMAKE='${SHELL}
/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/missing --run
automake-1.9'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O2 -march=i686 -fomit-frame-pointer'
CPP=''
CPPFLAGS=''
CXXCPP=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
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=''
LIBC_PATH=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL}
/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/missing --run makeinfo'
OBJEXT=''
PACKAGE='sandbox'
PACKAGE_BUGREPORT='dev-portage@gentoo.org'
PACKAGE_NAME='sandbox'
PACKAGE_STRING='sandbox 1.2.9'
PACKAGE_TARNAME='sandbox'
PACKAGE_VERSION='1.2.9'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.2.9'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/sandbox-1.2.9/work/sandbox-1.2.9-default/install-sh'
libdir='/usr/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE "sandbox"
#define PACKAGE_BUGREPORT "dev-portage@gentoo.org"
#define PACKAGE_NAME "sandbox"
#define PACKAGE_STRING "sandbox 1.2.9"
#define PACKAGE_TARNAME "sandbox"
#define PACKAGE_VERSION "1.2.9"
#define VERSION "1.2.9"

configure: exit 77
Comment 2 Mustafa Mesanovic 2005-06-14 02:50:23 UTC
here something interesting:

test.c (simple Hello World)

gcc test.c
gcc: installation problem, cannot exec `as': No such file or directory
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-14 03:23:19 UTC
binutils-config 1 
 
and the problem should be fixed. 
 
Comment 4 Mustafa Mesanovic 2005-06-14 07:59:26 UTC
ok, it worked, seems to be that this step was missing after updatin binutils...
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-06-14 08:06:26 UTC
...
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-06-14 08:06:56 UTC
This is a dupe...

*** This bug has been marked as a duplicate of 95928 ***