Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge sandbox fails: C compiler cannot create exec [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kingnosis
n00b
n00b


Joined: 19 Apr 2005
Posts: 47
Location: Chicago

PostPosted: Sun Aug 19, 2007 6:14 pm    Post subject: emerge sandbox fails: C compiler cannot create exec [SOLVED] Reply with quote

After updating glibc and gcc recently, I decided to do a 'emerge -e system'. It got stuck configuring the build for sys-apps/sandbox-1.2.18.1.

It fails early, so here's all the output:

Code:
>>> Emerging (1 of 1) sys-apps/sandbox-1.2.18.1 to /
 * sandbox-1.2.18.1.tar.bz2 RMD160 ;-) ...                                                                        [ ok ]
 * sandbox-1.2.18.1.tar.bz2 SHA1 ;-) ...                                                                          [ ok ]
 * sandbox-1.2.18.1.tar.bz2 SHA256 ;-) ...                                                                        [ ok ]
 * sandbox-1.2.18.1.tar.bz2 size ;-) ...                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking sandbox-1.2.18.1.tar.bz2 to /var/tmp/portage/sys-apps/sandbox-1.2.18.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.18.1/work/sandbox-1.2.18.1 ...
 * 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.18.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating sandbox-1.2.18.1/config.sub with /usr/share/gnuconfig/config.sub
../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/lib32 --enable-multilib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/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 following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-apps/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log
 *
 * ERROR: sys-apps/sandbox-1.2.18.1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   sandbox-1.2.18.1.ebuild, line 84:   Called econf '--libdir=/usr/lib32' '--enable-multilib'
 *   ebuild.sh, line 591:   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/sys-apps:sandbox-1.2.18.1:20070819-173802.log'.
 *


I tried the "FEATURES=-sandbox emerge sandbox" like it suggests, but that's no different.

Every other package I've tried works, but not this one. Google and forum search were no real help.

I'm putting emerge --info at the bottom of this. The config.log is pretty long, so I'm linking it here


So why can't the C compiler create executables in just this one instance?


Code:
# emerge --info
Portage 2.1.3.6 (default-linux/amd64/2006.1, gcc-4.2.0, glibc-2.6.1-r0, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 19 Aug 2007 08:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.18
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://www.gtlib.gatech.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="7zip a52 aac alsa amd64 apache2 berkdb bzip2 bzlib cdr cli cracklib crypt css dvd dvdr dvdread encode fbcon ffmpeg flac fortran gcj gdbm gif gpm iconv imlib ipv6 isdnlog javascript jpeg libclamav logrotate midi mp3 mpeg mudflap ncurses nptl nptlonly oav openmp pam pcre perl png ppds pppd python quicktime readline reflection rtc samba sdl session slang slp spl ssl tcpd truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml xml2 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


Last edited by kingnosis on Sun Oct 28, 2007 8:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Aug 19, 2007 7:25 pm    Post subject: Reply with quote

From the config.log, this is the first command that failed:
Code:
i686-pc-linux-gnu-gcc --version
Try running it by hand and let me know what happens. Good forensic summary, by the way. :)

- John
Back to top
View user's profile Send private message
kingnosis
n00b
n00b


Joined: 19 Apr 2005
Posts: 47
Location: Chicago

PostPosted: Mon Aug 20, 2007 1:29 am    Post subject: Reply with quote

Thanks.

I ran "i686-pc-linux-gnu-gcc --version":
Code:
# i686-pc-linux-gnu-gcc --version
gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use.  Invalid CTARGET or CTARGET has no selected profile.


So I thought I'd see what was up with gcc-config:
Code:
# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.2.0 *


That's it. There's just one profile, and it's selected. I always thought that was enough, but I guess not.

So do I need to fix the i686-pc-linux-gnu-gcc wrapper? Do I need to validate my CTARGET? I don't even know what that means exactly. I'm a little out of my depth. :)
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285

PostPosted: Mon Aug 20, 2007 7:26 am    Post subject: Reply with quote

Have you changed /etc/make.conf or /etc/make.profile recently (specifically CFLAGS, CXXFLAGS and CHOST)? What values did you change them from?
Back to top
View user's profile Send private message
kingnosis
n00b
n00b


Joined: 19 Apr 2005
Posts: 47
Location: Chicago

PostPosted: Tue Aug 21, 2007 5:35 pm    Post subject: Reply with quote

/etc/make.profile hasn't been changed since Aug 2006.

I changed the FEATURES part of /etc/make.conf to try to get this working, but I haven't touched CFLAGS, CXXFLAGS or CHOST since I first installed.

Any other ideas about where I might look?

edit: For the FEATURES, what I changed was to try taking out the "ccache" and "sandbox", in case that helps.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Aug 22, 2007 12:00 pm    Post subject: Reply with quote

When you updated your compiler suite recently, did you clean out old slotted versions?

- John
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Aug 22, 2007 12:47 pm    Post subject: Reply with quote

kingnosis wrote:

# i686-pc-linux-gnu-gcc --version


I don't own an amd64 box but if I am not mistaken
there should be no i686-pc-linux-gnu-gcc on your box,
only x86_64-pc-linux-gnu-gcc. Do you have
/usr/bin/x86_64-pc-linux-gnu-gcc? If so, try moving these
non-functional i686-pc-linux-gnu-* wrappers out of
the way (e.g. to /tmp), the do another round of gcc-config
and try again.
Back to top
View user's profile Send private message
toyowheelin
n00b
n00b


Joined: 09 May 2005
Posts: 9
Location: USA

PostPosted: Sun Aug 26, 2007 12:15 am    Post subject: Reply with quote

did this problem get resolved? I am now in the same boat my sandbox wont emerge either.
Back to top
View user's profile Send private message
cchildress
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 90
Location: Tennessee, United States

PostPosted: Tue Aug 28, 2007 3:30 am    Post subject: Reply with quote

Yeah...I did a --prune (silly me) and told it "yes" before I looked closely enough...and of course one of the packages was gcc 4.x, leaving me with 3.x, which won't compile executables. How do I repair my toolchain? Note: yes, I know I'm a 'tard for doing this to myself, I've gone 4 years and never done this but hey first time for everything.
Back to top
View user's profile Send private message
edporras
n00b
n00b


Joined: 13 Feb 2006
Posts: 3
Location: Gainesville, FL

PostPosted: Tue Aug 28, 2007 4:50 pm    Post subject: Reply with quote

toyowheelin wrote:
did this problem get resolved? I am now in the same boat my sandbox wont emerge either.


I'm on the same boat. My system has been running fine for over a year (x86, using the default 2006.1 profile) and a recent emerge broke something so now I can't emerge anything as I get the dreaded "configure: error: C compiler cannot create executables" problem. Yesterday I upgraded portage and a few other things:

    sys-apps/portage-2.1.2.12
    dev-libs/expat-2.0.1
    app-emacs/po-mode-0.16.1
    net-misc/rsync-2.6.9-r3
    sys-devel/gettext-0.16.1-r1
    sys-apps/diffutils-2.8.7-r2
    dev-libs/openssl-0.9.8e-r2


Those seemed to complete with no issues. Afterward I took care of the pending configs in /etc, although they were not of critical nature - or anything that would indicate any problems (rsyncd.conf and make.conf.example).

Today I went back and updated a few more things:

    media-sound/alsa-headers-1.0.14
    sys-apps/busybox-1.6.1
    sys-apps/hdparm-7.6
    sys-fs/device-mapper-1.02.19
    sys-apps/pciutils-2.2.3-r2


But things started to crap out when trying to upgrade from wine-0.9.42 to 0.9.44 which was the first to fail with the compiler error. From then on I haven't been able to upgrade anything. In trying to update to alsa-lib-1.0.14a-r1 from 1.0.14_rc2 with the command emerge -DNu alsa-lib, I started seeing this error:

Code:

>>> Emerging (1 of 3) sys-libs/db-4.5.20_p2 to /
 * db-4.5.20.tar.gz RMD160 ;-) ...                                                                                                                    [ ok ]
 * db-4.5.20.tar.gz SHA1 ;-) ...                                                                                                                      [ ok ]
 * db-4.5.20.tar.gz SHA256 ;-) ...                                                                                                                    [ ok ]
 * db-4.5.20.tar.gz size ;-) ...                                                                                                                      [ ok ]
 * patch.4.5.20.1 RMD160 ;-) ...                                                                                                                      [ ok ]
 * patch.4.5.20.1 SHA1 ;-) ...                                                                                                                        [ ok ]
 * patch.4.5.20.1 SHA256 ;-) ...                                                                                                                      [ ok ]
 * patch.4.5.20.1 size ;-) ...                                                                                                                        [ ok ]
 * patch.4.5.20.2 RMD160 ;-) ...                                                                                                                      [ ok ]
 * patch.4.5.20.2 SHA1 ;-) ...                                                                                                                        [ ok ]
 * patch.4.5.20.2 SHA256 ;-) ...                                                                                                                      [ ok ]
 * patch.4.5.20.2 size ;-) ...                                                                                                                        [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking db-4.5.20.tar.gz ;-) ...                                                                                                                  [ ok ]
 * checking patch.4.5.20.1 ;-) ...                                                                                                                    [ ok ]
 * checking patch.4.5.20.2 ;-) ...                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking db-4.5.20.tar.gz to /var/tmp/portage/sys-libs/db-4.5.20_p2/work
 * Applying patch.4.5.20.1 ...
  [ ok ]
 * Applying patch.4.5.20.2 ...
  [ ok ]
 * Applying db-4.5-libtool.patch ...
  [ ok ]
 * Applying db-4.3-jni-check-prefix-first.patch ...
  [ ok ]
 * Applying db-4.3-listen-to-java-options.patch ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-libs/db-4.5.20_p2/work/db-4.5.20/build_unix ...
 * QA Notice: USE Flag 'userland_GNU' not in IUSE for sys-libs/db-4.5.20_p2
 * econf: updating db-4.5.20/dist/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating db-4.5.20/dist/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/sys-libs/db-4.5.20_p2/work/db-4.5.20/build_unix/../dist/configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --enable-compat185 --without-uniquename --enable-rpc --host=i686-pc-linux-gnu --enable-cxx --disable-tcl --disable-java --build=i686-pc-linux-gnu --disable-test  --build=i686-pc-linux-gnu
configure: WARNING: you should use --build, --host, --target
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if building in the top-level or dist directories... no
checking if --disable-cryptography option specified... no
checking if --disable-hash option specified... no
checking if --disable-queue option specified... no
checking if --disable-replication option specified... no
checking if --disable-statistics option specified... no
checking if --disable-verify option specified... no
checking if --enable-compat185 option specified... yes
checking if --enable-cxx option specified... yes
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... no
checking if --enable-java option specified... no
checking if --enable-mingw option specified... no
checking if --enable-o_direct option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-pthread_api option specified... no
checking if --enable-rpc option specified... yes
checking if --enable-smallbuild option specified... no
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-mutex=MUTEX option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-chmod... no
checking for chmod... chmod
checking for i686-pc-linux-gnu-cp... no
checking for cp... cp
checking for i686-pc-linux-gnu-ln... no
checking for ln... ln
checking for i686-pc-linux-gnu-mkdir... no
checking for mkdir... mkdir
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for i686-pc-linux-gnu-rm... no
checking for rm... rm
checking for i686-pc-linux-gnu-rpcgen... no
checking for rpcgen... rpcgen
checking for i686-pc-linux-gnu-sh... no
checking for sh... /bin/sh
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-cc... no
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/sys-libs/db-4.5.20_p2/work/db-4.5.20/build_unix/config.log

!!! ERROR: sys-libs/db-4.5.20_p2 failed.
Call stack:
  ebuild.sh, line 1638:   Called dyn_compile
  ebuild.sh, line 985:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  db-4.5.20_p2.ebuild, line 98:   Called econf '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib' '--enable-compat185' '--without-uniquename' '--enable-rpc' '--host=i686-pc-linux-gnu' '--enable-cxx' '--disable-tcl' '--disable-java' '--build=i686-pc-linux-gnu' '--disable-test' ''
  ebuild.sh, line 586:   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/tmp/portage/sys-libs/db-4.5.20_p2/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


The file /var/tmp/portage/sys-libs/db-4.5.20_p2/work/db-4.5.20/build_unix/config.log contains:

Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Berkeley DB configure 4.5.20, which was
generated by GNU Autoconf 2.60.  Invocation command line was

  $ /var/tmp/portage/sys-libs/db-4.5.20_p2/work/db-4.5.20/build_unix/../dist/configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --enable-compat185 --without-uniquename --enable-rpc --host=i686-pc-linux-gnu --enable-cxx --disable-tcl --disable-java --build=i686-pc-linux-gnu --disable-test  --build=i686-pc-linux-gnu

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

hostname = slick
uname -m = i686
uname -r = 2.6.18-gentoo-r6
uname -s = Linux
uname -v = #2 Wed May 2 17:40:03 EDT 2007

/usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 2.20GHz
/bin/uname -X     = unknown

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

PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.2


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

configure:2052: checking build system type
configure:2070: result: i686-pc-linux-gnu
configure:2092: checking host system type
configure:2107: result: i686-pc-linux-gnu
configure:2144: checking if building in the top-level or dist directories
configure:2160: result: no
configure:2244: checking if --disable-cryptography option specified
configure:2257: result: no
configure:2261: checking if --disable-hash option specified
configure:2274: result: no
configure:2278: checking if --disable-queue option specified
configure:2291: result: no
configure:2295: checking if --disable-replication option specified
configure:2308: result: no
configure:2312: checking if --disable-statistics option specified
configure:2325: result: no
configure:2329: checking if --disable-verify option specified
configure:2342: result: no
configure:2346: checking if --enable-compat185 option specified
configure:2355: result: yes
configure:2358: checking if --enable-cxx option specified
configure:2367: result: yes
configure:2370: checking if --enable-debug option specified
configure:2379: result: no
configure:2382: checking if --enable-debug_rop option specified
configure:2391: result: no
configure:2394: checking if --enable-debug_wop option specified
configure:2403: result: no
configure:2406: checking if --enable-diagnostic option specified
configure:2430: result: no
configure:2434: checking if --enable-dump185 option specified
configure:2443: result: no
configure:2446: checking if --enable-java option specified
configure:2455: result: no
configure:2458: checking if --enable-mingw option specified
configure:2467: result: no
configure:2470: checking if --enable-o_direct option specified
configure:2479: result: no
configure:2482: checking if --enable-posixmutexes option specified
configure:2491: result: no
configure:2502: checking if --enable-pthread_api option specified
configure:2515: result: no
configure:2526: checking if --enable-rpc option specified
configure:2535: result: yes
configure:2538: checking if --enable-smallbuild option specified
configure:2555: result: no
configure:2558: checking if --enable-tcl option specified
configure:2567: result: no
configure:2570: checking if --enable-test option specified
configure:2579: result: no
configure:2582: checking if --enable-uimutexes option specified
configure:2591: result: no
configure:2594: checking if --enable-umrw option specified
configure:2603: result: no
configure:2606: checking if --with-mutex=MUTEX option specified
configure:2624: result: no
configure:2638: checking if --with-tcl=DIR option specified
configure:2648: result: no
configure:2654: checking if --with-uniquename=NAME option specified
configure:2667: result: no
configure:2738: checking for i686-pc-linux-gnu-ar
configure:2754: found /usr/bin/i686-pc-linux-gnu-ar
configure:2765: result: i686-pc-linux-gnu-ar
configure:2838: checking for i686-pc-linux-gnu-chmod
configure:2868: result: no
configure:2878: checking for chmod
configure:2894: found /bin/chmod
configure:2905: result: chmod
configure:2938: checking for i686-pc-linux-gnu-cp
configure:2968: result: no
configure:2978: checking for cp
configure:2994: found /bin/cp
configure:3005: result: cp
configure:3141: checking for i686-pc-linux-gnu-ln
configure:3171: result: no
configure:3181: checking for ln
configure:3197: found /bin/ln
configure:3208: result: ln
configure:3241: checking for i686-pc-linux-gnu-mkdir
configure:3271: result: no
configure:3281: checking for mkdir
configure:3297: found /bin/mkdir
configure:3308: result: mkdir
configure:3343: checking for i686-pc-linux-gnu-ranlib
configure:3359: found /usr/bin/i686-pc-linux-gnu-ranlib
configure:3370: result: i686-pc-linux-gnu-ranlib
configure:3440: checking for i686-pc-linux-gnu-rm
configure:3470: result: no
configure:3480: checking for rm
configure:3496: found /bin/rm
configure:3507: result: rm
configure:3541: checking for i686-pc-linux-gnu-rpcgen
configure:3571: result: no
configure:3581: checking for rpcgen
configure:3597: found /usr/bin/rpcgen
configure:3608: result: rpcgen
configure:3646: checking for i686-pc-linux-gnu-sh
configure:3679: result: no
configure:3689: checking for sh
configure:3707: found /bin/sh
configure:3719: result: /bin/sh
configure:3756: checking for i686-pc-linux-gnu-strip
configure:3772: found /usr/bin/i686-pc-linux-gnu-strip
configure:3783: result: i686-pc-linux-gnu-strip
configure:3865: checking for a BSD-compatible install
configure:3921: result: /usr/bin/install -c
configure:4017: checking for i686-pc-linux-gnu-cc
configure:4047: result: no
configure:4017: checking for i686-pc-linux-gnu-gcc
configure:4033: found /usr/bin/i686-pc-linux-gnu-gcc
configure:4044: result: i686-pc-linux-gnu-gcc
configure:4124: checking for C compiler version
configure:4131: i686-pc-linux-gnu-gcc -dumpversion >&5
4.1.2
configure:4134: $? = 0
configure:4141: i686-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/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 --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2)
configure:4144: $? = 0
configure:4151: i686-pc-linux-gnu-gcc -V >&5
i686-pc-linux-gnu-gcc: '-V' option must have argument
configure:4154: $? = 1
configure:4177: checking for C compiler default output file name
configure:4204: i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe  -D_GNU_SOURCE -D_REENTRANT  -Wl,--default-symver conftest.c  >&5
conftest.c: In function 'main':
conftest.c:15: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/sys-libs/db-4.5.20_p2/temp/ccuqNDA6.out file, please attach this to your bugreport.
configure:4207: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-4.5.20"
| #define PACKAGE_VERSION "4.5.20"
| #define PACKAGE_STRING "Berkeley DB 4.5.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:4246: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
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_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=pentium4 -O2 -pipe'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -Wl,--default-symver'
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=set
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_ac_pt_db_cv_path_sh=/bin/sh
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=i686-pc-linux-gnu-ar
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_prog_RANLIB=i686-pc-linux-gnu-ranlib
ac_cv_prog_STRIP=i686-pc-linux-gnu-strip
ac_cv_prog_ac_ct_CHMOD=chmod
ac_cv_prog_ac_ct_CP=cp
ac_cv_prog_ac_ct_LN=ln
ac_cv_prog_ac_ct_MKDIR=mkdir
ac_cv_prog_ac_ct_RM=rm
ac_cv_prog_ac_ct_RPCGEN=rpcgen
ac_pt_db_cv_path_sh=/bin/sh
db_cv_build_cryptography=yes
db_cv_build_hash=yes
db_cv_build_queue=yes
db_cv_build_replication=yes
db_cv_build_statistics=yes
db_cv_build_verify=yes
db_cv_compat185=yes
db_cv_cxx=yes
db_cv_debug=no
db_cv_debug_rop=no
db_cv_debug_wop=no
db_cv_diagnostic=no
db_cv_dump185=no
db_cv_java=no
db_cv_mingw=no
db_cv_o_direct=no
db_cv_path_sh=/bin/sh
db_cv_posixmutexes=no
db_cv_pthread_api=no
db_cv_rpc=yes
db_cv_smallbuild=no
db_cv_tcl=no
db_cv_test=no
db_cv_uimutexes=no
db_cv_umrw=no
db_cv_uniquename=no

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

ADDITIONAL_INCS=''
ADDITIONAL_LANG=''
ADDITIONAL_OBJS=''
ADDITIONAL_PROGS=''
AR='i686-pc-linux-gnu-ar'
BUILD_TARGET='library_build'
CC='i686-pc-linux-gnu-gcc'
CCC=''
CFLAGS='-march=pentium4 -O2 -pipe'
CHMOD='chmod'
CONFIGURATION_ARGS=''
CONFIGURATION_PATH=''
CP='cp'
CPP=''
CPPFLAGS=' -D_GNU_SOURCE -D_REENTRANT'
CRYPTO_OBJS=''
CXX=''
CXXCPP=''
CXXFLAGS='-march=pentium4 -O2 -pipe'
DB_CONST=''
DB_PROTO1=''
DB_PROTO2=''
DB_VERSION_MAJOR='4'
DB_VERSION_MINOR='5'
DB_VERSION_PATCH='20'
DB_VERSION_STRING='"Berkeley DB 4.5.20: (September 20, 2006)"'
DB_VERSION_UNIQUE_NAME=''
DEFAULT_LIB=''
DEFAULT_LIB_CXX=''
DEFS=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GREP=''
INSTALLER=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_LIBS=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_TARGET='library_install'
INT64_FMT=''
JAR=''
JAVA=''
JAVAC=''
JAVACFLAGS=''
JMODSUFFIX=''
KILL=''
LDFLAGS=' -Wl,--default-symver'
LIBCSO_LIBS=''
LIBJSO_LIBS=''
LIBOBJS=''
LIBS=''
LIBSO_LIBS=''
LIBTOOL=''
LIBTSO_LIBS=''
LIBTSO_MODSUFFIX=''
LIBTSO_MODULE=''
LIBXSO_LIBS=''
LN='ln'
LN_S=''
LTLIBOBJS=''
MAKEFILE_CC=''
MAKEFILE_CCLINK=''
MAKEFILE_CXX=''
MAKEFILE_CXXLINK=''
MAKEFILE_SOLINK=''
MAKEFILE_XSOLINK=''
MKDIR='mkdir'
MODSUFFIX=''
OBJEXT=''
OSDIR=''
PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'
PACKAGE_NAME='Berkeley DB'
PACKAGE_STRING='Berkeley DB 4.5.20'
PACKAGE_TARNAME='db-4.5.20'
PACKAGE_VERSION='4.5.20'
PATH_SEPARATOR=':'
POSTLINK=''
RANLIB='i686-pc-linux-gnu-ranlib'
REPLACEMENT_OBJS=''
RM='rm'
RPCGEN='rpcgen'
RPC_CLIENT_OBJS=''
RPC_SERVER_H=''
SHELL='/bin/sh'
SOFLAGS=''
SOSUFFIX=''
STRIP='i686-pc-linux-gnu-strip'
SWIGCFLAGS=''
TCL_BIN_DIR=''
TCL_INCLUDE_SPEC=''
TCL_LIB_FILE=''
TCL_SRC_DIR=''
TCL_TCLSH=''
TEST_LIBS=''
UINT64_FMT=''
_ACJNI_JAVAC=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cxx_have_stdheaders=''
datadir='/usr/share'
datarootdir='${prefix}/share'
db_cv_path_sh='/bin/sh'
db_int_def=''
db_seq_decl=''
db_threadid_t_decl=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
int16_decl=''
int32_decl=''
int64_decl=''
inttypes_h_decl=''
libdir='/usr/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
o=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
pid_t_decl=''
platform_footer=''
platform_header=''
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
ssize_t_decl=''
stddef_h_decl=''
stdint_h_decl=''
sysconfdir='/etc'
target_alias=''
thread_h_decl=''
u_char_decl=''
u_int16_decl=''
u_int32_decl=''
u_int64_decl=''
u_int8_decl=''
u_int_decl=''
u_long_decl=''
u_short_decl=''
uintmax_t_decl=''
uintptr_t_decl=''
unistd_h_decl=''
uudecode=''

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

#define PACKAGE_NAME "Berkeley DB"
#define PACKAGE_TARNAME "db-4.5.20"
#define PACKAGE_VERSION "4.5.20"
#define PACKAGE_STRING "Berkeley DB 4.5.20"
#define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"

configure: exit 77


emerge --info produces:

Code:

Portage 2.1.2.12 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 28 Aug 2007 14:20:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/depot/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/depot/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="a52 aac acl apache2 berkdb bidi bitmap-fonts bzip2 cli cracklib crypt dri emacs gpm iconv isdnlog logrotate midi mmx mmxext mudflap ncurses nls nptl nptlonly openmp pam pcre perl php ppds pppd readline reflection session spl sse sse2 ssl tcpd theora truetype-fonts type1-fonts unicode usb v4l vhosts x86 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I haven't touched CHOST, CFLAGS, CXXFLAGS so they're in their original configuration. At some point I modified USE to include -midi but I hardly doubt that matters.

I've gone crazy through the forums and have checked /etc/env.d/05gcc:

Code:
PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2"
GCC_PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info"
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/4.1.2"
GCC_SPECS=""


and /etc/env.d/05binutils:

Code:
MANPATH=/usr/share/binutils-data/i686-pc-linux-gnu/2.17/man
INFOPATH=/usr/share/binutils-data/i686-pc-linux-gnu/2.17/info
LDPATH=/usr/i686-pc-linux-gnu/lib


/etc/env.d/binutils contains two files:

    config-i686-pc-linux-gnu
    i686-pc-linux-gnu-2.17


/etc/env.d/gcc contains:

    config
    i686-pc-linux-gnu-4.1.2


Should that be config-i686-pc-linux-gnu? That's been the only thing that has caught my eye.

gcc-config -l reports:

Code:
[1] i686-pc-linux-gnu-4.1.2 *


binutils-config -l reports:

Code:
[1] i686-pc-linux-gnu-2.17 *


I've ran env-update, etc-update, source /etc/profile. ld.so.conf has the following:

Code:
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2
/usr/lib/libstdc++-v3/


So I'm out of ideas. If anyone can help, it would be greatly appreciated.
_________________
Ed Porras | http://www.digressed.net/
Back to top
View user's profile Send private message
cchildress
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 90
Location: Tennessee, United States

PostPosted: Wed Aug 29, 2007 9:26 pm    Post subject: Reply with quote

Well, my problem was caused by removing the more recent of two slotted installations of gcc. I had 3.x.x and 4.1.2, and (through oversight) removed 4.x. When I ran gcc-config, I did have two entries, and was able to select 3.x by entering gcc-config 1 which gave me a working compiler, from which I could re-install gcc 4.x. I'm now back up and running great...I hope that the other people in this thread have the same luck.
Back to top
View user's profile Send private message
m0rtal
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2005
Posts: 79
Location: Yalta, Crimea

PostPosted: Thu Aug 30, 2007 9:25 am    Post subject: Reply with quote

guys, I have similar problem :(
dunno what caused it, but mine compiler also cannot create executables...
I've checked:
x86_64-pc-linux-gnu-gcc --verison:
Code:
x86_64-pc-linux-gnu-gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.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.

gcc-config -l:
Code:
 * gcc-config: No gcc profile is active!
 * gcc-config: No gcc profile is active; please select one!
 [1] NATIVE
 [2] x86_64-pc-linux-gnu-4.1.2

_________________
software is like sex - better when it's free!
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Thu Aug 30, 2007 9:52 am    Post subject: Reply with quote

m0rtal wrote:

Code:
 * gcc-config: No gcc profile is active!
 * gcc-config: No gcc profile is active; please select one!
 [1] NATIVE
 [2] x86_64-pc-linux-gnu-4.1.2


There's your problem - you don't have any gcc profile active. You need to do "gcc-config 2" to select it.
Back to top
View user's profile Send private message
m0rtal
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2005
Posts: 79
Location: Yalta, Crimea

PostPosted: Thu Aug 30, 2007 10:11 am    Post subject: Reply with quote

Rob1n
ok, I've corrected this... but got another error:
Code:
gentoo_server ~ # emerge -uDN world
Calculating world dependencies... done!
>>> Verifying ebuild Manifests...
>>> starting parallel fetching

>>> Emerging (1 of 63) sys-apps/portage-2.1.3.7 to /
 * portage-2.1.3.tar.bz2 RMD160 ;-) ...                                   [ ok ]
 * portage-2.1.3.tar.bz2 SHA1 ;-) ...                                     [ ok ]
 * portage-2.1.3.tar.bz2 SHA256 ;-) ...                                   [ ok ]
 * portage-2.1.3.tar.bz2 size ;-) ...                                     [ ok ]
 * portage-2.1.3.7.patch.bz2 RMD160 ;-) ...                               [ ok ]
 * portage-2.1.3.7.patch.bz2 SHA1 ;-) ...                                 [ ok ]
 * portage-2.1.3.7.patch.bz2 SHA256 ;-) ...                               [ ok ]
 * portage-2.1.3.7.patch.bz2 size ;-) ...                                 [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking portage-2.1.3.tar.bz2 ;-) ...                                 [ ok ]
 * checking portage-2.1.3.7.patch.bz2 ;-) ...                             [ ok ]
>>> Unpacking source...
>>> Unpacking portage-2.1.3.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.3.7/work
>>> Unpacking portage-2.1.3.7.patch.bz2 to /var/tmp/portage/sys-apps/portage-2.1.3.7/work
 * Applying portage-2.1.3.7.patch ...                                     [ ok ]
 * Setting portage.VERSION to 2.1.3.7 ...                                 [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.3.7/work/portage-2.1.3 ...
/lib64/libc.so.6: file not recognized: File format not recognized
collect2: ld returned 1 exit status

!!! ERROR: sys-apps/portage-2.1.3.7 failed.
Call stack:
  ebuild.sh, line 1638:   Called dyn_compile
  ebuild.sh, line 985:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  portage-2.1.3.7.ebuild, line 88:   Called die

!!! Failed to build tbz2tool
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.3.7/temp/build.log'.

_________________
software is like sex - better when it's free!
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Thu Aug 30, 2007 11:11 am    Post subject: Reply with quote

That's odd - what's the output from:
Code:

ls -l /lib64/libc.so.6; file /lib64/libc.so.6; file -L /lib64/libc.so.6


And what's the output from "emerge --info"?
Back to top
View user's profile Send private message
m0rtal
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2005
Posts: 79
Location: Yalta, Crimea

PostPosted: Thu Aug 30, 2007 11:35 am    Post subject: Reply with quote

ls -l /lib64/libc.so.6; file /lib64/libc.so.6; file -L /lib64/libc.so.6 wrote:
lrwxrwxrwx 1 root root 13 ß░ß╡ß¡ 29 23:48 /lib64/libc.so.6 -> libc-2.6.1.so
/lib64/libc.so.6: symbolic link to `libc-2.6.1.so'
/lib64/libc.so.6: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped


emerge --info wrote:
Portage 2.1.2.12 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 29 Aug 2007 13:50:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/ "
LANG="ru_RU.UTF-8"
LC_ALL=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="7zip X amd64 berkdb bitmap-fonts bzip2 cli cracklib crypt djvu fortran gdbm gpm iconv isdnlog java jpeg jpeg2k kde midi mmx mudflap mysql ncurses net nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3 readline reflection samba server session slang spl sse sse2 ssl syslog tcpd tiff truetype truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


The strange symbols (ß░ß╡ß¡) in the first quote should be some russian text, I suppose... but for some weird reason it's garbled :(
_________________
software is like sex - better when it's free!
Back to top
View user's profile Send private message
edporras
n00b
n00b


Joined: 13 Feb 2006
Posts: 3
Location: Gainesville, FL

PostPosted: Fri Aug 31, 2007 6:57 pm    Post subject: Reply with quote

[quote="edporras"]
toyowheelin wrote:
did this problem get resolved? I am now in the same boat my sandbox wont emerge either.


Alright folks, I solved it by downgrading portage. Something about 2.1.2.12 was just creating problems. Hope that helps.
_________________
Ed Porras | http://www.digressed.net/
Back to top
View user's profile Send private message
kiksen
Guru
Guru


Joined: 24 Jun 2002
Posts: 401
Location: Denmark

PostPosted: Sat Oct 20, 2007 1:49 pm    Post subject: Reply with quote

Moving /usr/bin/i686-pc-linux-gnu-* out of the way solved this on my box. Thanks! (but still I wonder how they got there - this system is born x86-64...

/kiksen
Back to top
View user's profile Send private message
nickiank
n00b
n00b


Joined: 08 Jul 2006
Posts: 36
Location: Chicago, IL

PostPosted: Wed Oct 24, 2007 5:19 am    Post subject: Reply with quote

Similar issues on my box, kiksen...your solution works. I'm waiting for a seasoned veteran to explain all the reasons why it's the wrong solution, but I've saved said files in a safe place for the moment when said seasoned vet also explains the correct procedure, as well as the related whys and wherefores...
Back to top
View user's profile Send private message
kingnosis
n00b
n00b


Joined: 19 Apr 2005
Posts: 47
Location: Chicago

PostPosted: Sun Oct 28, 2007 8:53 pm    Post subject: Reply with quote

didl was right. I should have just listened to him at the beginning. :)

I moved /usr/bin/i686-pc-linux-gnu-* out of the way and sandbox compiled. I don't understand why they were there in the first place, but at least I now know how to fix it.

Anyway, sorry to disappear for two months. I consider this more or less solved.
Back to top
View user's profile Send private message
Emopig
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 188

PostPosted: Fri Nov 02, 2007 2:18 pm    Post subject: Reply with quote

According to "equery belongs" the i686 files that require moving to fix this don't belong to any installed package, something was foobared.
_________________
2.6.35 / Gnome 2.30
Athlon64 3500+ / 1.5 GB / Asus A8N VM CSM
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Thu Feb 28, 2008 9:44 am    Post subject: Reply with quote

Had the same issue here after I had copied stage3-amd64-hardened-multilib-2007.0.tar.bz2 onto an existing amd64 system that previously was not hardened. Not sure where these i686 files came from either but I am rerunning emerge world to build everything all over again.

Problem didnt fix after moving those files. I recompiled glibc.
Back to top
View user's profile Send private message
krovisser
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2006
Posts: 105
Location: TX, USA

PostPosted: Tue Jun 07, 2011 7:32 pm    Post subject: Reply with quote

I had this issue after my permissions in /usr got screwed up.

Specifically, some files in /usr/libexec needed to have +x. I +x'd them all.

This at least enabled me to re-emerge everything in the hope that the rest of the permissions would be fixed.
_________________
http://www.krovisser.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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