Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge error - C compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
chrisR
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 127
Location: UK

PostPosted: Mon Apr 04, 2005 11:07 pm    Post subject: emerge error - C compiler cannot create executables Reply with quote

Hi

It doesn't matter what I try emerging I'm always getting 'C compiler cannot create executables'

I'd welcome some help. I've seen a number of posts here on my numerous searches but non of the solutions have worked.

>>> emerge (1 of 121) sys-devel/bison-2.0 to /
>>> md5 src_uri ;-) bison-2.0.tar.gz
>>> Unpacking source...
>>> Unpacking bison-2.0.tar.gz to /var/tmp/portage/bison-2.0/work
* Applying bison-1.32-extfix.patch ... [ ok ]
>>> Source unpacked.
* econf: updating bison-2.0/config/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating bison-2.0/config/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-nls
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... :
checking for style of include used by make... GNU
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.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/bison-2.0/work/bison-2.0/config.log

!!! ERROR: sys-devel/bison-2.0 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

bash-2.05b#
Back to top
View user's profile Send private message
ArsDangor
Guru
Guru


Joined: 20 May 2003
Posts: 477

PostPosted: Mon Apr 04, 2005 11:14 pm    Post subject: Reply with quote

Check your make.conf. There must be some wrong CFLAG or CXXFLAG.

If you read carefully the config.log file, you'll find the exact command that produced the error, and its output.
_________________
Cómo usar Portage correctamente
Back to top
View user's profile Send private message
chrisR
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 127
Location: UK

PostPosted: Mon Apr 04, 2005 11:47 pm    Post subject: Reply with quote

ArsDangor, Thanks for the quick response.

I've tried different CFLAG's but the same problems. Although the one I was using prior to the config file below had errors. So i changed it and ran the emerge again. The log file is below. I've gone through it but I'm a noob so I ain't sure what I'm supposed to be looking for.

uname -m = i686
uname -r = 2.6.11-gentoo-r3
uname -s = Linux
uname -v = #5 Fri Mar 25 19:21:23 GMT 2005

/usr/bin/uname -p = AMD Athlon(tm) XP 2800+
/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: /usr/local/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.3.5
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.3/sbin
PATH: /usr/kde/3.3/bin
PATH: /usr/kde/3.2/sbin
PATH: /usr/kde/3.2/bin
PATH: /usr/kde/3.1/sbin
PATH: /usr/kde/3.1/bin
PATH: /usr/share/karamba/bin



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

configure:1402: checking for a BSD-compatible install
configure:1457: result: /bin/install -c
configure:1468: checking whether build environment is sane
configure:1511: result: yes
configure:1576: checking for gawk
configure:1592: found /bin/gawk
configure:1602: result: gawk
configure:1612: checking whether make sets $(MAKE)
configure:1632: result: yes
configure:1708: checking for i686-pc-linux-gnu-strip
configure:1737: result: no
configure:1746: checking for strip
configure:1773: result: :
configure:1821: checking for style of include used by make
configure:1849: result: GNU
configure:1882: checking for i686-pc-linux-gnu-gcc
configure:1898: found /usr/bin/i686-pc-linux-gnu-gcc
configure:1908: result: i686-pc-linux-gnu-gcc
configure:2190: checking for C compiler version
configure:2193: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
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:2196: $? = 0
configure:2198: i686-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --pre$
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
configure:2201: $? = 0
configure:2203: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:2206: $? = 1
configure:2229: checking for C compiler default output file name
configure:2232: i686-pc-linux-gnu-gcc -march=athlon-xp -fomit-frame-pointer conftest.c >&5
i686-pc-linux-gnu-gcc: installation problem, cannot exec `as': No such file or directory
configure:2235: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU Bison"
| #define PACKAGE_TARNAME "bison"
| #define PACKAGE_VERSION "2.0"
| #define PACKAGE_STRING "GNU Bison 2.0"
| #define PACKAGE_BUGREPORT "bug-bison@gnu.org"
| #define PACKAGE "bison"
| #define VERSION "2.0"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2274: 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='-march=athlon-xp -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_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=athlon-xp -fomit-frame-pointer -include cassert'
ac_cv_env_CXX_set=
ac_cv_env_CXX_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=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_ac_ct_STRIP=:
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/bison-2.0/work/bison-2.0/config/missing --run aclocal-1.9'
ALLOCA=''
ALLOCA_H=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/bison-2.0/work/bison-2.0/config/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/bison-2.0/work/bison-2.0/config/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/bison-2.0/work/bison-2.0/config/missing --run autoheader'
AUTOM4TE=''
AUTOMAKE='${SHELL} /var/tmp/portage/bison-2.0/work/bison-2.0/config/missing --run automake-1.9'
AWK='gawk'
BISON_CXX_WORKS=''
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-march=athlon-xp -fomit-frame-pointer'
CPP=''
CPPFLAGS=''
CXX=''
CXXDEPMODE=''
CXXDEPMODE=''
CXXFLAGS='-march=athlon-xp -fomit-frame-pointer -include cassert'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GCC=''
GETOPT_H=''
GMSGFMT=''
HAVE__BOOL=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTLLIBS=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
M4=''
MAKEINFO='${SHELL} /var/tmp/portage/bison-2.0/work/bison-2.0/config/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
O0CFLAGS=''
O0CXXFLAGS=''
OBJEXT=''
PACKAGE='bison'
PACKAGE_BUGREPORT='bug-bison@gnu.org'
PACKAGE_NAME='GNU Bison'
PACKAGE_STRING='GNU Bison 2.0'
PACKAGE_TARNAME='bison'
PACKAGE_VERSION='2.0'
PATH_SEPARATOR=':'
POSUB=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STDBOOL_H=''
STRIP=':'
USE_NLS=''
VALGRIND=''
VERSION='2.0'
WARNING_CFLAGS=''
WARNING_CXXFLAGS=''
WERROR_CFLAGS=''
XGETTEXT=''
YACC=''
YACC_LIBRARY=''
YACC_SCRIPT=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_RANLIB=''
ac_ct_STRIP=':'
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=''
build_alias=''
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/bison-2.0/work/bison-2.0/config/install-sh'
libdir='${exec_prefix}/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 "bison"
#define PACKAGE_BUGREPORT "bug-bison@gnu.org"
#define PACKAGE_NAME "GNU Bison"
#define PACKAGE_STRING "GNU Bison 2.0"
#define PACKAGE_TARNAME "bison"
#define PACKAGE_VERSION "2.0"
#define _GNU_SOURCE 1

configure: exit 77
Back to top
View user's profile Send private message
chrisR
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 127
Location: UK

PostPosted: Tue Apr 05, 2005 5:20 pm    Post subject: Reply with quote

I've had no luck fixing this error.

I'd welcome some more suggestions.

Thancks
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Tue Apr 05, 2005 5:36 pm    Post subject: Reply with quote

Output of `emerge info'?
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
chrisR
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 127
Location: UK

PostPosted: Tue Apr 05, 2005 9:51 pm    Post subject: Reply with quote

Halcy0n, thanks but I've just seen a post that's solved the problem.

https://forums.gentoo.org/viewtopic-t-319555.html?sid=d21a6391d1e165ac6a08e6a6fad14112

:D
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Apr 05, 2005 10:13 pm    Post subject: Reply with quote

chrisR wrote:
Halcy0n, thanks but I've just seen a post that's solved the problem.

https://forums.gentoo.org/viewtopic-t-319555.html?sid=d21a6391d1e165ac6a08e6a6fad14112

In that case, moved from Portage & Programming. :wink:
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum