Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configure: 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
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Sun Jan 08, 2006 11:00 am    Post subject: configure: error: C compiler cannot create executables Reply with quote

Hi!

I'm on a amd64 gcc 3.4 system and recently fail to emerge apps like vlc or feh:

checking for C compiler default output... configure: error: C compiler cannot create executables
!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/libdvdread-0.9.4-r1/work/libdvdread-0.9.4/config.log

Well...what's this?


Here's the mentioned log file:

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.53. 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 --disable-static --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

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

hostname = server
uname -m = x86_64
uname -r = 2.6.14-reiser4-r4-tcn
uname -s = Linux
uname -v = #9 PREEMPT Sat Jan 7 14:27:44 CET 2006

/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3000+
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib/ccache/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4
PATH: /opt/sun-jdk-1.5.0.06/bin
PATH: /opt/sun-jdk-1.5.0.06/jre/bin
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin


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

configure:1406: checking for a BSD-compatible install
configure:1460: result: /bin/install -c
configure:1471: checking whether build environment is sane
configure:1514: result: yes
configure:1547: checking for gawk
configure:1563: found /bin/gawk
configure:1573: result: gawk
configure:1583: checking whether make sets ${MAKE}
configure:1603: result: yes
configure:1754: checking whether to enable maintainer-specific portions of Makefiles
configure:1763: result: no
configure:1784: checking build system type
configure:1802: result: x86_64-pc-linux-gnu
configure:1810: checking host system type
configure:1824: result: x86_64-pc-linux-gnu
configure:1841: checking for x86_64-pc-linux-gnu-gcc
configure:1857: found /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
configure:1867: result: x86_64-pc-linux-gnu-gcc
configure:2149: checking for C compiler version
configure:2152: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
Copyright (C) 2004 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:2155: $? = 0
configure:2157: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
configure:2160: $? = 0
configure:2162: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: `-V' option must have argument
configure:2165: $? = 1
configure:2191: checking for C compiler default output
configure:2194: x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -mtracer -mmmx -msse -msse2 -m3dnow -mfpmath=sse conftest.c >&5
cc1: error: invalid option `tracer'
configure:2197: $? = 1
configure: failed program was:
#line 2168 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
configure:2224: error: C compiler cannot create executables

## ---------------- ##
## 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='-march=athlon64 -O2 -pipe -mtracer -mmmx -msse -msse2 -m3dnow -mfpmath=sse'
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=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_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes
lt_cv_sys_path_separator=:

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "libdvdread"
#define VERSION "0.9.4"

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


Joined: 10 Oct 2003
Posts: 137

PostPosted: Sun Jan 08, 2006 11:47 am    Post subject: Reply with quote

In your CFLAGS, I think it should be
Code:
-ftracer

instead of
Code:
-mtracer

Try it out!
Back to top
View user's profile Send private message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Sun Jan 08, 2006 2:29 pm    Post subject: Reply with quote

Oops. Yeah, you were right.

Stupid :(
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Sun Jan 08, 2006 4:17 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, please see this FAQ.
_________________
Search | Read | Answer | Report | Strip
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