View previous topic :: View next topic |
Author |
Message |
chencho n00b
Joined: 20 Nov 2004 Posts: 24
|
Posted: Thu Nov 24, 2005 6:03 pm Post subject: [sandbox]error: C compiler cannot create executables(Sol.) |
|
|
Hola he hecho un emerge -e system y me escupe este error y no he encontrado solución
Code: |
>>> md5 files ;-) sandbox-1.2.9.ebuild
>>> md5 files ;-) sandbox-1.2.10.ebuild
>>> md5 files ;-) sandbox-1.2.11.ebuild
>>> md5 files ;-) sandbox-1.2.12.ebuild
>>> md5 files ;-) sandbox-1.2.13.ebuild
>>> md5 files ;-) files/digest-sandbox-1.2.10
>>> md5 files ;-) files/digest-sandbox-1.2.11
>>> md5 files ;-) files/digest-sandbox-1.2.12
>>> md5 files ;-) files/digest-sandbox-1.2.13
>>> md5 files ;-) files/digest-sandbox-1.2.9
>>> md5 files ;-) files/sandbox-1.2.10-uclibc-getcwd.patch
>>> md5 files ;-) files/sandbox-1.2.9-uclibc-getcwd.patch
>>> md5 src_uri ;-) sandbox-1.2.12.tar.bz2
>>> Unpacking source...
>>> Unpacking sandbox-1.2.12.tar.bz2 to /var/tmp/portage/sandbox-1.2.12/work
* Unpacking sandbox for ABI=x86...
>>> Unpacking sandbox-1.2.12.tar.bz2 to /var/tmp/portage/sandbox-1.2.12/work
* Unpacking sandbox for ABI=amd64...
>>> Source unpacked.
* If configure fails with a 'cannot run C compiled programs' error, try this:
* FEATURES=-sandbox emerge sandbox
* Configuring sandbox for ABI=x86...
* econf: updating sandbox-1.2.12-x86/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating sandbox-1.2.12-x86/config.sub
with /usr/share/gnuconfig/config.sub
* econf: updating sandbox-1.2.12-amd64/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating sandbox-1.2.12-amd64/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 --build=i686-pc-linux-gnu --libdir=/usr/lib32
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-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/sandbox-1.2.12/work/sandbox-1.2.12-x86/config.log
!!! ERROR: sys-apps/sandbox-1.2.12 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
|
/var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-x86/config.log:
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.12, 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 --build=i686-pc-linux-gnu --libdir=/usr/lib32
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = x86_64
uname -r = 2.6.13-gentoo-r5
uname -s = Linux
uname -v = #1 SMP Tue Nov 22 18:33:45 CET 2005
/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: /usr/i686-pc-linux-gnu/gcc-bin/3.4.4
PATH: /opt/blackdown-jdk-1.4.2.02/bin
PATH: /opt/blackdown-jdk-1.4.2.02/jre/bin
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin
PATH: /opt/vmware/workstation/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1531: checking for a BSD-compatible install
configure:1586: result: /bin/install -c
configure:1597: checking whether build environment is sane
configure:1640: result: yes
configure:1705: checking for gawk
configure:1721: found /bin/gawk
configure:1731: result: gawk
configure:1741: checking whether make sets $(MAKE)
configure:1761: result: yes
configure:1940: checking for i686-pc-linux-gnu-gcc
configure:1956: found /usr/i686-pc-linux-gnu/gcc-bin/3.4.4/i686-pc-linux-gnu-gcc
configure:1966: result: i686-pc-linux-gnu-gcc
configure:2248: checking for C compiler version
configure:2251: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.4.4 (Gentoo Hardened 3.4.4, 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:2254: $? = 0
configure:2256: i686-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --enable-java-awt=gtk --enable-languages=c,c++,java,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo Hardened 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)
configure:2259: $? = 0
configure:2261: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:2264: $? = 1
configure:2287: checking for C compiler default output file name
configure:2290: i686-pc-linux-gnu-gcc -O3 -pipe -march=athlon64 -DSB_HAVE_64BIT_ARCH conftest.c >&5
{standard input}: Assembler messages:
{standard input}:11: Error: suffix or operands invalid for `push'
{standard input}:13: Error: suffix or operands invalid for `push'
{standard input}:15: Internal error, aborting at /var/tmp/portage/binutils-2.15.92.0.2-r10/work/binutils-2.15.92.0.2/gas/config/tc-i386.c line 3500 in output_imm
Please report this bug.
configure:2293: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "sandbox"
| #define PACKAGE_TARNAME "sandbox"
| #define PACKAGE_VERSION "1.2.12"
| #define PACKAGE_STRING "sandbox 1.2.12"
| #define PACKAGE_BUGREPORT "dev-portage@gentoo.org"
| #define PACKAGE "sandbox"
| #define VERSION "1.2.12"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2332: 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='-O3 -pipe -march=athlon64 -DSB_HAVE_64BIT_ARCH'
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.12/work/sandbox-1.2.12-x86/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-x86/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-x86/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-x86/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-x86/missing --run automake-1.9'
AWK='gawk'
CC='i686-pc-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O3 -pipe -march=athlon64 -DSB_HAVE_64BIT_ARCH'
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=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-x86/missing --run makeinfo'
OBJEXT=''
PACKAGE='sandbox'
PACKAGE_BUGREPORT='dev-portage@gentoo.org'
PACKAGE_NAME='sandbox'
PACKAGE_STRING='sandbox 1.2.12'
PACKAGE_TARNAME='sandbox'
PACKAGE_VERSION='1.2.12'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.2.12'
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.12/work/sandbox-1.2.12-x86/install-sh'
libdir='/usr/lib32'
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 "dev-portage@gentoo.org"
#define PACKAGE_NAME "sandbox"
#define PACKAGE_STRING "sandbox 1.2.12"
#define PACKAGE_TARNAME "sandbox"
#define PACKAGE_VERSION "1.2.12"
#define VERSION "1.2.12"
configure: exit 77
|
Code: |
localhost chencho # emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python: 2.3.5, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon64"
DISTDIR="/distfiles"
FEATURES="autoconfig candy ccache digest distlocks fixpackages sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ http://mirror.pudas.net/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52dec alsa alsamixer amd amd64 amuled amuleweb audiofile avi berkdb bitmap-fonts bzip2 cdinstall cdr cdrw crypt cups curl dedicated divx divx4linux divx5 dvd dvd-rw dvdr dvdrw eds emboss encode esd ethereal exif expat fam ffmpeg firefox firefox-bin foomaticdb fortran fortrand gd geoip gif glut gnome gpm gstreamer gtk gtk2 hal idn imagemagick imlib java jpeg kde lcms lzw lzw-tiff mad mng mozilla mp3 mpeg mpg mplayer ncurses nforce nls nptl nptlonly nvidia ogg openal opengl opera pam pcre pdflib perl png python qt quicktime readline sandbox sdl spell ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis webcam wmv xine xml2 xmms xpm xv xvid zlib linguas_es userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LDFLAGS
|
Last edited by chencho on Fri Jan 20, 2006 7:12 pm; edited 1 time in total |
|
Back to top |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
|
Back to top |
|
|
pacho2 Developer
Joined: 04 Mar 2005 Posts: 2599 Location: Oviedo, Spain
|
Posted: Fri Nov 25, 2005 6:15 pm Post subject: |
|
|
Yo siempre tengo ese error cuando intento compilar algo con el CFLAG -m32
No se que puede ser...
Saludos |
|
Back to top |
|
|
ArsDangor Guru
Joined: 20 May 2003 Posts: 477
|
Posted: Fri Dec 02, 2005 1:08 am Post subject: |
|
|
Quote: | configure:2290: i686-pc-linux-gnu-gcc -O3 -pipe -march=athlon64 -DSB_HAVE_64BIT_ARCH conftest.c |
Esa mezcolanza entre el CHOST de x86 y las CFLAGS que te generan código de x86_64 a mí no me ha funcionado nunca. Es de las poquísimas cosas que Gentoo no me dejaba hacer. Al final, la única solución que pude encontrar fue reinstalarlo. Si esto no es aceptable, se me ocurre* que te compiles un núcleo para esa arquitectura (igual tienes que arrancar desde un livecd de amd64 para ello), arranques con él, y pruebes de nuevo.
Desde luego, un núcleo típico de x86 no soporta el formato ELF de x86_64.
* Esta idea se me acaba de ocurrir. No la he probado, y encima es muy tarde, así que tómatela con toda la precaución del mundo. _________________ Cómo usar Portage correctamente |
|
Back to top |
|
|
chencho n00b
Joined: 20 Nov 2004 Posts: 24
|
Posted: Fri Dec 02, 2005 2:48 pm Post subject: |
|
|
lo que no entiendo es porqué puedo compilar de todo menos el sandbox?¿ |
|
Back to top |
|
|
pacho2 Developer
Joined: 04 Mar 2005 Posts: 2599 Location: Oviedo, Spain
|
Posted: Fri Dec 02, 2005 6:12 pm Post subject: |
|
|
Supongo que ya lo habrás intentado, pero para que no se nos pase nada:
Code: |
FEATURES=-sandbox emerge sandbox
|
Prueba a correr eso tal cual.
Saludos y suerte |
|
Back to top |
|
|
chencho n00b
Joined: 20 Nov 2004 Posts: 24
|
Posted: Fri Dec 02, 2005 6:20 pm Post subject: |
|
|
si, ya lo probé, gracias |
|
Back to top |
|
|
pacho2 Developer
Joined: 04 Mar 2005 Posts: 2599 Location: Oviedo, Spain
|
Posted: Fri Dec 02, 2005 8:34 pm Post subject: |
|
|
Si quieres puedes intentar compilar la versión 1.2.16 de testing, aunque, como ya he dicho, es testing.
Saludos |
|
Back to top |
|
|
chencho n00b
Joined: 20 Nov 2004 Posts: 24
|
Posted: Fri Jan 20, 2006 7:12 pm Post subject: Solucion |
|
|
Solución:
Code: | rm -rf /usr/i686-pc-linux-gnu/ |
|
|
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
|
|