| View previous topic :: View next topic |
| Author |
Message |
DarkDEUS n00b

Joined: 14 Nov 2007 Posts: 13
|
Posted: Thu Nov 15, 2007 10:58 pm Post subject: [SOLVED] C compiler cannot create executables |
|
|
I've been receiving an error when trying to install Gentoo from the beginning. I've went through the
steps just fine, but when it comes to updating portage (emerge portage), I'm receiving an error that is shown as
"checking for C compiler default output file name... configure: error: C compiler cannot create executables", when
emerging bash, or even any other package.
Log of Emerging of Bash | Code: | >>> Unpacking source...
>>> Unpacking bash-3.2.tar.gz to /var/tmp/portage/app-shells/bash-3.2_p17-r1/work
#[32;01m*#[0m Applying bash32-001 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-002 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-003 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-004 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-005 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-006 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-007 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-008 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-009 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-010 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-011 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-012 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-013 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-014 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-015 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-016 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash32-017 ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.1-gentoo.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.2-loadables.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.2-parallel-build.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.2-process-subst.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.2-ulimit.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.0-trap-fg-signals.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.2-dev-fd-test-as-user.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
#[32;01m*#[0m Applying bash-3.0-configs.patch ...
#[A#[120C #[34;01m[ #[32;01mok#[34;01m ]#[0m
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-shells/bash-3.2_p17-r1/work/bash-3.2 ...
* econf: updating bash-3.2/support/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating bash-3.2/support/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-afs --disable-profiling --without-gnu-malloc --without-installed-readline --with-curses --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for emacs... no
checking for xemacs... no
Beginning configuration for bash-3.2-release for x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... x86_64-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 following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/app-shells/bash-3.2_p17-r1/work/bash-3.2/config.log
!!! ERROR: app-shells/bash-3.2_p17-r1 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3393: Called src_compile
bash-3.2_p17-r1.ebuild, line 111: Called econf '--without-afs' '--disable-profiling' '--without-gnu-malloc' '--without-installed-readline' '--with-curses'
ebuild.sh, line 577: Called die
!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/app-shells:bash-3.2_p17-r1:20071115-225015.log'.
|
Config.log - Referred to by the above.
| Code: | This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bash configure 3.2-release, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-afs --disable-profiling --without-gnu-malloc --without-installed-readline --with-curses --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
## --------- ##
## Platform. ##
## --------- ##
hostname = livecd
uname -m = x86_64
uname -r = 2.6.19-gentoo-r5
uname -s = Linux
uname -v = #1 SMP Fri Mar 23 22:03:13 UTC 2007
/usr/bin/uname -p = Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
/bin/uname -X = unknown
/bin/arch = unknown
/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: /sbin
PATH: /usr/sbin
PATH: /usr/lib64/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1438: checking build system type
configure:1456: result: x86_64-pc-linux-gnu
configure:1464: checking host system type
configure:1478: result: x86_64-pc-linux-gnu
configure:1546: checking for emacs
configure:1575: result: no
configure:1546: checking for xemacs
configure:1575: result: no
configure:2104: checking for x86_64-pc-linux-gnu-gcc
configure:2120: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:2130: result: x86_64-pc-linux-gnu-gcc
configure:2412: checking for C compiler version
configure:2415: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
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:2418: $? = 0
configure:2420: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)
configure:2423: $? = 0
configure:2425: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: '-V' option must have argument
configure:2428: $? = 1
configure:2451: checking for C compiler default output file name
configure:2454: x86_64-pc-linux-gnu-gcc -v -march=nocona -mtune=nocona -auxbase -O3 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3 conftest.c >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.1.1/cc1 -quiet -v conftest.c -quiet -dumpbase conftest.c -march=nocona -mtune=nocona -msse3 -auxbase -auxbase conftest -O3 -version -fomit-frame-pointer -fno-ident -fweb -o - |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/as -V -Qy -o /var/tmp/portage/app-shells/bash-3.2_p17-r1/temp/cctWJQuI.o -
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include
/usr/include
End of search list.
GNU C version 4.1.1 (Gentoo 4.1.1-r3) (x86_64-pc-linux-gnu)
compiled by GNU C version 4.1.1 (Gentoo 4.1.1-r3).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: c5a28b30102daeeb29c594cd328a61af
GNU assembler version 2.16.1 (x86_64-pc-linux-gnu) using BFD version 2.16.1
conftest.c:35:1: error: conftest: No such file or directory
configure:2457: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "bash"
| #define PACKAGE_TARNAME "bash"
| #define PACKAGE_VERSION "3.2-release"
| #define PACKAGE_STRING "bash 3.2-release"
| #define PACKAGE_BUGREPORT "bug-bash@gnu.org"
| #define ALIAS 1
| #define PUSHD_AND_POPD 1
| #define RESTRICTED_SHELL 1
| #define PROCESS_SUBSTITUTION 1
| #define PROMPT_STRING_DECODE 1
| #define SELECT_COMMAND 1
| #define HELP_BUILTIN 1
| #define ARRAY_VARS 1
| #define DPAREN_ARITHMETIC 1
| #define BRACE_EXPANSION 1
| #define COMMAND_TIMING 1
| #define EXTENDED_GLOB 1
| #define COND_COMMAND 1
| #define COND_REGEXP 1
| #define ARITH_FOR_COMMAND 1
| #define NETWORK_REDIRECTIONS 1
| #define PROGRAMMABLE_COMPLETION 1
| #define DEBUGGER 1
| #define MEMSCRAMBLE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2496: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_build_alias=x86_64-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-v -march=nocona -mtune=nocona -auxbase -O3 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DEBUGGER_START_FILE_set=
ac_cv_env_DEBUGGER_START_FILE_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_host_alias=x86_64-pc-linux-gnu
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOCA=''
AR=''
ARFLAGS=''
BASHVERS='3.2'
BUILD_DIR=''
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC='x86_64-pc-linux-gnu-gcc'
CC_FOR_BUILD=''
CFLAGS='-v -march=nocona -mtune=nocona -auxbase -O3 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3'
CFLAGS_FOR_BUILD=''
CPP=''
CPPFLAGS=''
CPPFLAGS_FOR_BUILD=''
CROSS_COMPILE=''
DATADIRNAME=''
DEBUG=''
DEBUGGER_START_FILE='/usr/local/share/bashdb/bashdb-main.inc'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EMACS='no'
EXEEXT=''
GENCAT=''
GLIBC21=''
GMSGFMT=''
HELPDIR=''
HELPDIRDEFINE=''
HELPINSTALL=''
HELPSTRINGS=''
HISTORY_DEP=''
HISTORY_LIB=''
HIST_LIBDIR=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_DEP=''
INTL_INC=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
JOBS_O=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LIBICONV=''
LIBINTL=''
LIBINTL_H=''
LIBOBJS=''
LIBS=''
LOCAL_CFLAGS=''
LOCAL_DEFS=''
LOCAL_LDFLAGS=''
LOCAL_LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKE_SHELL=''
MALLOC_DEBUG=''
MALLOC_DEP=''
MALLOC_LDFLAGS=''
MALLOC_LIB=''
MALLOC_LIBRARY=''
MALLOC_SRC=''
MALLOC_TARGET=''
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE_BUGREPORT='bug-bash@gnu.org'
PACKAGE_NAME='bash'
PACKAGE_STRING='bash 3.2-release'
PACKAGE_TARNAME='bash'
PACKAGE_VERSION='3.2-release'
PATH_SEPARATOR=':'
POSUB=''
PROFILE_FLAGS=''
PURIFY=''
RANLIB=''
READLINE_DEP=''
READLINE_LIB=''
RELSTATUS='release'
RL_INCLUDE=''
RL_INCLUDEDIR=''
RL_LIBDIR=''
RL_MAJOR=''
RL_MINOR=''
RL_VERSION=''
SET_MAKE=''
SHELL='/bin/sh'
SHOBJ_CC=''
SHOBJ_CFLAGS=''
SHOBJ_LD=''
SHOBJ_LDFLAGS=''
SHOBJ_LIBS=''
SHOBJ_STATUS=''
SHOBJ_XLDFLAGS=''
SIGLIST_O=''
SIGNAMES_H=''
SIGNAMES_O=''
SIZE=''
STATIC_LD=''
TERMCAP_DEP=''
TERMCAP_LIB=''
TESTSCRIPT='run-all'
TILDE_LIB=''
USE_INCLUDED_LIBINTL=''
USE_NLS=''
XGETTEXT=''
YACC=''
ac_ct_CC=''
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir=''
incdir=''
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
lispdir=''
localstatedir='/var/lib'
mandir='/usr/share/man'
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 ALIAS 1
#define ARITH_FOR_COMMAND 1
#define ARRAY_VARS 1
#define BRACE_EXPANSION 1
#define COMMAND_TIMING 1
#define COND_COMMAND 1
#define COND_REGEXP 1
#define DEBUGGER 1
#define DPAREN_ARITHMETIC 1
#define EXTENDED_GLOB 1
#define HELP_BUILTIN 1
#define MEMSCRAMBLE 1
#define NETWORK_REDIRECTIONS 1
#define PACKAGE_BUGREPORT "bug-bash@gnu.org"
#define PACKAGE_NAME "bash"
#define PACKAGE_STRING "bash 3.2-release"
#define PACKAGE_TARNAME "bash"
#define PACKAGE_VERSION "3.2-release"
#define PROCESS_SUBSTITUTION 1
#define PROGRAMMABLE_COMPLETION 1
#define PROMPT_STRING_DECODE 1
#define PUSHD_AND_POPD 1
#define RESTRICTED_SHELL 1
#define SELECT_COMMAND 1
configure: exit 77 |
CFLAGS Variable (make.conf) | Code: | | CFLAGS="-v -march=nocona -mtune=generic -auxbase -O3 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3" |
Does anyone have any idea as to what the issue is?
Last edited by DarkDEUS on Fri Nov 16, 2007 6:07 pm; edited 1 time in total |
|
| Back to top |
|
 |
likewhoa Guru

Joined: 04 Oct 2006 Posts: 461 Location: Brooklyn, New York
|
Posted: Fri Nov 16, 2007 3:08 am Post subject: |
|
|
please don't be a ricer unless you have chest hair.
change cflags from:
CFLAGS="-v -march=nocona -mtune=generic -auxbase -O3 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3"
to
CFLAGS="-march=nocona -O2 -pipe"
first if you're using -mtune=generic and you are not compiling for another host then it's not worth it. second -O3 is not that great plus -O3 implies -fweb, third -msse3 is imply by -march=nocona. forth -fomit-frame-pointer makes debugging difficult. ok i'm tired just change your cflags to those above
P.S that's usually cause by using -fweb and or -O3 in cflags. |
|
| Back to top |
|
 |
|
|
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
|
|