Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
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
Drew82
n00b
n00b


Joined: 08 Apr 2005
Posts: 30

PostPosted: Fri Apr 08, 2005 1:23 pm    Post subject: C compiler cannot create executables Reply with quote

При компляции выдает такую ошибку.
Машина P2-333.
Кто-нибудь сталкивался с этим?
Сорри за длинный лог.

make.conf
~~~~~~~

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
USE="-* apache2 apm crypt pam tcpd"


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 GNU nano configure 1.3.4, 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 --bindir=/bin --enable-color --enable-multibuffer --enable-nanorc --disable-spell --disable-justify --disable-debug --disable-nls --without-slang

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

hostname = server
uname -m = i686
uname -r = 2.6.11-gentoo-r5
uname -s = Linux
uname -v = #1 Tue Apr 5 19:43:04 MSD 2005

/usr/bin/uname -p = Celeron (Mendocino)
/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


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

configure:1390: checking for a BSD-compatible install
configure:1445: result: /bin/install -c
configure:1456: checking whether build environment is sane
configure:1499: result: yes
configure:1532: checking for gawk
configure:1548: found /bin/gawk
configure:1558: result: gawk
configure:1568: checking whether make sets $(MAKE)
configure:1588: result: yes
configure:1667: checking for i686-pc-linux-gnu-strip
configure:1683: found /usr/bin/i686-pc-linux-gnu-strip
configure:1693: result: i686-pc-linux-gnu-strip
configure:1771: checking for i686-pc-linux-gnu-gcc
configure:1787: found /usr/bin/i686-pc-linux-gnu-gcc
configure:1797: result: i686-pc-linux-gnu-gcc
configure:2079: checking for C compiler version
configure:2082: 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:2085: $? = 0
configure:2087: 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 --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix
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:2090: $? = 0
configure:2092: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:2095: $? = 1
configure:2118: checking for C compiler default output file name
configure:2121: i686-pc-linux-gnu-gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer conftest.c >&5
i686-pc-linux-gnu-gcc: installation problem, cannot exec `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/as': Exec format error
cc1: Broken pipe: error closing -
configure:2124: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU nano"
| #define PACKAGE_TARNAME "nano"
| #define PACKAGE_VERSION "1.3.4"
| #define PACKAGE_STRING "GNU nano 1.3.4"
| #define PACKAGE_BUGREPORT "nano-devel@gnu.org"
| #define PACKAGE "nano"
| #define VERSION "1.3.4"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2163: 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=pentium2 -O3 -pipe -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_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_STRIP=i686-pc-linux-gnu-strip
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/nano-1.3.4/work/nano-1.3.4/missing --run aclocal-1.7'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/nano-1.3.4/work/nano-1.3.4/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/nano-1.3.4/work/nano-1.3.4/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/nano-1.3.4/work/nano-1.3.4/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/nano-1.3.4/work/nano-1.3.4/missing --run automake-1.7'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-march=pentium2 -O3 -pipe -fomit-frame-pointer'
CPP=''
CPPFLAGS=''
CURSES_LIB=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GLIB_CFLAGS=''
GLIB_CONFIG=''
GLIB_GENMARSHAL=''
GLIB_LIBS=''
GLIB_MKENUMS=''
GMSGFMT=''
GOBJECT_QUERY=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTLLIBS=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/nano-1.3.4/work/nano-1.3.4/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE='nano'
PACKAGE_BUGREPORT='nano-devel@gnu.org'
PACKAGE_NAME='GNU nano'
PACKAGE_STRING='GNU nano 1.3.4'
PACKAGE_TARNAME='nano'
PACKAGE_VERSION='1.3.4'
PATH_SEPARATOR=':'
PKG_CONFIG=''
POSUB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='i686-pc-linux-gnu-strip'
USE_NLS=''
VERSION='1.3.4'
XGETTEXT=''
ac_ct_CC=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='/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/nano-1.3.4/work/nano-1.3.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
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 PACKAGE "nano"
#define PACKAGE_BUGREPORT "nano-devel@gnu.org"
#define PACKAGE_NAME "GNU nano"
#define PACKAGE_STRING "GNU nano 1.3.4"
#define PACKAGE_TARNAME "nano"
#define PACKAGE_VERSION "1.3.4"
#define VERSION "1.3.4"
#define _GNU_SOURCE 1

configure: exit 77
Back to top
View user's profile Send private message
YD
Guru
Guru


Joined: 30 Oct 2004
Posts: 466
Location: Riga, Latvia

PostPosted: Fri Apr 08, 2005 1:42 pm    Post subject: Reply with quote

1. Насчёт -pipe, очень-очень у меня были с ней проблемы, убрал, решились.
2. Возможно трабла из-за перехода с gcc-3.3.4 на gcc-3.3.5 ? (нашумевшая)
Back to top
View user's profile Send private message
stopa
n00b
n00b


Joined: 16 Feb 2005
Posts: 13
Location: Тюмень

PostPosted: Fri Apr 08, 2005 6:26 pm    Post subject: Reply with quote

У меня были проблемы с установкой KDevelop и LICQ. Как-то машинально ее решил и даже не знаю прав или нет:
Где-то есть дирректория i386-pc-linux-gnu и к ней я сделал ссылку (в тойже директории, что и i386-pc-linux-gnu) i686-pc-linux-gnu --> i386-pc-linux-gnu. Не знаю прав был или нет, но так решил пролему.
А логи были почти такими же:)

P.S. Возможно i386-pc-linux-gnu и i686-pc-linux-gnu следует поменять местами. Я сейчас на на Gentoo
Back to top
View user's profile Send private message
PopeOptimusPrime
n00b
n00b


Joined: 04 Apr 2005
Posts: 23
Location: Between keyboard and chair

PostPosted: Thu Apr 14, 2005 2:34 am    Post subject: Reply with quote

Какой результат
Code:
gcc-config -l

_________________
http://www.FreeMiniMacs.com/?r=17650438
Get the free trial for eFax, easily cancelled and free.
Back to top
View user's profile Send private message
Drew82
n00b
n00b


Joined: 08 Apr 2005
Posts: 30

PostPosted: Thu Apr 14, 2005 8:17 am    Post subject: Reply with quote

PopeOptimusPrime wrote:
Какой результат
Code:
gcc-config -l

вылечилось перестановкой gcc. всем спасибо за помощь.
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