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 Russian
View previous topic :: View next topic  
Author Message
Digor
n00b
n00b


Joined: 17 Apr 2004
Posts: 9

PostPosted: Fri Nov 03, 2006 11:22 am    Post subject: configure: error: C compiler cannot create executables Reply with quote

Такая вот проблемка после перехода на новый gcc и пробую что нибуть скомпилить...
Выдает
Code:

./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
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 a BSD-compatible install... /bin/install -c
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 following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/metalog-0.8_rc1-r2/work/metalog-0.8-rc1/config.log

!!! ERROR: app-admin/metalog-0.8_rc1-r2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 605:   Called econf
  ebuild.sh, line 540:   Called die
Back to top
View user's profile Send private message
f0rk
Apprentice
Apprentice


Joined: 15 Nov 2004
Posts: 273
Location: Moscow

PostPosted: Fri Nov 03, 2006 2:12 pm    Post subject: Reply with quote

С какими флагами был собран gcc и с какими пытаешься что-то собирать ?
Back to top
View user's profile Send private message
Digor
n00b
n00b


Joined: 17 Apr 2004
Posts: 9

PostPosted: Fri Nov 03, 2006 2:17 pm    Post subject: Reply with quote

С этими флагами всегда работало, и их не менял
Code:

CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -mmmx -mfpmath=sse -msse2 -funroll-loops -ffast-math -pipe"
Back to top
View user's profile Send private message
Ivanich_
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2006
Posts: 104
Location: Ukraine, Odessa

PostPosted: Fri Nov 03, 2006 3:58 pm    Post subject: Reply with quote

Попробуй fix_libtool_files.sh
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Fri Nov 03, 2006 4:12 pm    Post subject: Reply with quote

Quote:
See `config.log' for more details.

о чём человек спрашивает?
непонятно....
Back to top
View user's profile Send private message
f0rk
Apprentice
Apprentice


Joined: 15 Nov 2004
Posts: 273
Location: Moscow

PostPosted: Fri Nov 03, 2006 7:01 pm    Post subject: Reply with quote

Да, флаги у тебя явно не из стабильных... :)
Особенно этот -ffast-math
Скорее всего из-за флагов и удивительно, что все всегда работало...
И вообще, действительно, config.log в студию! ;)
Back to top
View user's profile Send private message
Digor
n00b
n00b


Joined: 17 Apr 2004
Posts: 9

PostPosted: Mon Nov 06, 2006 8:12 am    Post subject: Reply with quote

emerge sandbox
Code:

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.18.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

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

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

hostname = srv1
uname -m = i686
uname -r = 2.6.16-gentoo-r7
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue May 16 15:38:37 EEST 2006

/usr/bin/uname -p = Intel(R) Xeon(TM) CPU 2.40GHz
/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: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbinPATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.1
PATH: /opt/sun-jdk-1.4.2.08/bin
PATH: /opt/sun-jdk-1.4.2.08/jre/bin
PATH: /opt/sun-jdk-1.4.2.08/jre/javaws
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin
PATH: /opt/firebird/bin


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

configure:1533: checking for a BSD-compatible install
configure:1588: result: /bin/install -c
configure:1599: checking whether build environment is sane
configure:1642: result: yes
configure:1707: checking for gawk
configure:1723: found /bin/gawk
configure:1733: result: gawk
configure:1743: checking whether make sets $(MAKE)
configure:1763: result: yes
configure:1942: checking for i686-pc-linux-gnu-gcc
configure:1958: found /usr/bin/i686-pc-linux-gnu-gcc
configure:1968: result: i686-pc-linux-gnu-gcc
configure:2250: checking for C compiler version
configure:2253: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 4.1.1 (Gentoo 4.1.1)
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:2256: $? = 0
configure:2258: i686-pc-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)
configure:2261: $? = 0
configure:2263: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: '-V' option must have argument
configure:2266: $? = 1
configure:2289: checking for C compiler default output file name
configure:2292: i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe   conftest.c  >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
configure:2295: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "sandbox"
| #define PACKAGE_TARNAME "sandbox"
| #define PACKAGE_VERSION "1.2.18.1"
| #define PACKAGE_STRING "sandbox 1.2.18.1"
| #define PACKAGE_BUGREPORT "sandbox@gentoo.org"
| #define PACKAGE "sandbox"
| #define VERSION "1.2.18.1"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2334: 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=pentium4 -O2 -pipe'
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.18.1/work/sandbox-1.2.18.1/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/sandbox-1.2.18.1/work/sandbox-1.2.18.1/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/sandbox-1.2.18.1/work/sandbox-1.2.18.1/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/sandbox-1.2.18.1/work/sandbox-1.2.18.1/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/sandbox-1.2.18.1/work/sandbox-1.2.18.1/missing --run automake-1.9'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-march=pentium4 -O2 -pipe'
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=''
LIBDL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/sandbox-1.2.18.1/work/sandbox-1.2.18.1/missing --run makeinfo'
OBJEXT=''
PACKAGE='sandbox'
PACKAGE_BUGREPORT='sandbox@gentoo.org'
PACKAGE_NAME='sandbox'
PACKAGE_STRING='sandbox 1.2.18.1'
PACKAGE_TARNAME='sandbox'
PACKAGE_VERSION='1.2.18.1'
PATH_SEPARATOR=':'
RANLIB=''
READELF=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.2.18.1'
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.18.1/work/sandbox-1.2.18.1/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 "sandbox@gentoo.org"
#define PACKAGE_NAME "sandbox"
#define PACKAGE_STRING "sandbox 1.2.18.1"
#define PACKAGE_TARNAME "sandbox"
#define PACKAGE_VERSION "1.2.18.1"
#define VERSION "1.2.18.1"

configure: exit 77
 
Back to top
View user's profile Send private message
Digor
n00b
n00b


Joined: 17 Apr 2004
Posts: 9

PostPosted: Mon Nov 06, 2006 8:51 am    Post subject: Reply with quote

И еще пробовал перекомпилить ядро и вот что выдало
Code:

  CHK     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
make[2]: *** [scripts/basic/fixdep] Помилка 1
make[1]: *** [scripts_basic] Помилка 2
make: *** [include/linux/autoconf.h] Помилка 2
Back to top
View user's profile Send private message
f0rk
Apprentice
Apprentice


Joined: 15 Nov 2004
Posts: 273
Location: Moscow

PostPosted: Mon Nov 06, 2006 11:17 am    Post subject: Reply with quote

Скорее всего придется пересобрать gcc только с флагами:
-O3 -march=pentium4 -pipe
Получишь гарантированно рабочий компилятор! ;)
Только вот чем теперь собирать...
У тебя gcc из ветки 3.x не осталось?
Если есть, то gcc-config и вперед...
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Mon Nov 06, 2006 2:58 pm    Post subject: Reply with quote

f0rk wrote:
Скорее всего придется пересобрать gcc только с флагами:
-O3 -march=pentium4 -pipe
Получишь гарантированно рабочий компилятор! ;)


А точнее: -O3 -march=pentium4 -pipe
Back to top
View user's profile Send private message
f0rk
Apprentice
Apprentice


Joined: 15 Nov 2004
Posts: 273
Location: Moscow

PostPosted: Mon Nov 06, 2006 3:40 pm    Post subject: Reply with quote

А в чем отличие? :?
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Mon Nov 06, 2006 4:00 pm    Post subject: Reply with quote

f0rk wrote:
А в чем отличие? :?

C -O3 у тебя любой баг-репорт закончится предложением пересобрать систему с -O2.
И это не просто так! Могут быть серьезные глюки, порою абсолютно ничем не объяснимые.
Back to top
View user's profile Send private message
f0rk
Apprentice
Apprentice


Joined: 15 Nov 2004
Posts: 273
Location: Moscow

PostPosted: Mon Nov 06, 2006 4:59 pm    Post subject: Reply with quote

Ну тогда ты видимо опечатался, нужно:
-O2 -march=pentium4 -pipe
;)
Просто я и смотрю, что твоя строчка ничем от моей не отличается...
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Mon Nov 06, 2006 7:29 pm    Post subject: Reply with quote

f0rk wrote:
Ну тогда ты видимо опечатался, нужно:
-O2 -march=pentium4 -pipe

Точно.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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