Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configure: error: cannot run C compiled programs
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
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1019
Location: Davie, FL

PostPosted: Sat Mar 12, 2011 2:47 pm    Post subject: configure: error: cannot run C compiled programs Reply with quote

so, i could not start wine, bash complained about it not being in /usr/bin/wine, even though it is there. i tried to recompile wine and it gave me the above error message. then i tried to recompile gcc (after some digging around) and and it gave me the above error message. then i tried to follow instructions for updating gcc (even though i currently have one version only) and upon emerging system sandbox is now failing with that message even after
Code:
 FEATURES=-sandbox emerge sandbox
. So this seems to be some major breakage but i dont know how to fix it. any help?
Code:

bobby@main ~ $ emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.14
Timestamp of tree: Fri, 11 Mar 2011 12:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/cj-overlay /var/lib/layman/zugaina /var/lib/layman/stormfront /var/lib/layman/bgo-overlay /var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gnome gpm gtk hal iconv ipv6 java jpeg kde lcms ldap libnotify libv4l2 lm_sensors lock mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xml xorg xulrunner xv xvid xvmc 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
www.claudiubucur.com
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 188

PostPosted: Sat Mar 12, 2011 3:09 pm    Post subject: Reply with quote

Check the answers in this forum page.
Succes!
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1019
Location: Davie, FL

PostPosted: Sat Mar 12, 2011 3:52 pm    Post subject: Reply with quote

i only have 1 gcc version present:
Code:

main bobby # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.5 *


also odd:
Code:

main bobby # /sbin/fix_libtool_files.sh 4.4
 * fix_libtool_files.sh: /lib/rcscripts/awk/fixlafiles.awk does not exist!


revdep-rebuild doesnot pickup anything
Quote:

bobby@main ~ $ cat /etc/make.conf
CFLAGS="-O2 -march=native -pipe -ggdb"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="vdpau 64bit hal java jpeg -minimal lock session startup-notification \
thunar branding lm_sensors wifi xvmc X alsa dbus udev \
libv4l2 v4l v4l2 gnome gtk kde -svga"
MAKEOPTS="-j3"
INPUT_DEVICES="evdev"
VIDEO_CARDS="nvidia"
FEATURES="splitdebug"
PORTDIR_OVERLAY="/usr/local/portage"
ACCEPT_LICENSE="*"
LINGUAS="en"
source /var/lib/layman/make.conf
PORTAGE_ELOG_CLASSES="log"
PORTAGE_ELOG_SYSTEM="save"
CCACHE_SIZE="2G

_________________
www.claudiubucur.com
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 188

PostPosted: Sat Mar 12, 2011 4:44 pm    Post subject: Reply with quote

Try this:
Code:
gcc-config -f 1

Then, recompile your compiler:
Code:
emerge -1 =sys-devel/gcc-4.4.5

If that works, you should be able to fix anything else... If not, I have to recommend the last resort solution of booting from a Live CD, mount your partitions under /mnt/gentoo, run chroot mnt/gentoo (so far, everything is just as described in the installation handbook) and recompile your compiler.
Baftă!
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9009

PostPosted: Sat Mar 12, 2011 6:04 pm    Post subject: Reply with quote

Perhaps it would be worthwhile to examine why the configure script cannot run C compiled programs, before resorting to more drastic measures. The explanation can be found in the config.log for the package, which the instructions should have told you to post when seeking support.
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1019
Location: Davie, FL

PostPosted: Sat Mar 12, 2011 7:37 pm    Post subject: Reply with quote

well, here is the complete build log (failed) of gcc compilation: http://ompldr.org/vN3M3Nw
and the config.log: http://ompldr.org/vN3M4Yg

i am a bit confused about the bootstrapping error. i am not cross compiling or anything similar. this is my amd64 gentoo machine which has been compiling everything just fine up until 2-3 days ago. all the packages on it are to be used on this machine.

Code:

build/x86_64-pc-linux-gnu/32/libgcc':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
 * ERROR: sys-devel/gcc-4.4.5 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 5067:  Called toolchain_src_compile
 *   environment, line 5662:  Called gcc_src_compile
 *   environment, line 3206:  Called gcc_do_make
 *   environment, line 2988:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.5',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.5'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.4.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.4.5/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'

>>> Failed to emerge sys-devel/gcc-4.4.5, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.4.5/temp/build.log'


thx for the livecd idea. i dont have any CDs around me so I cant make one right now. I have been hit by this in the past and i hope I can figure out how to fix it again. If you have any ideas please suggest them.
Code:
bobby@main ~ $ emerge --info =sys-devel/gcc-4.4.5
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.14
Timestamp of tree: Fri, 11 Mar 2011 12:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/cj-overlay /var/lib/layman/zugaina /var/lib/layman/stormfront /var/lib/layman/bgo-overlay /var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gnome gpm gtk hal iconv ipv6 java jpeg kde lcms ldap libnotify libv4l2 lm_sensors lock mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xml xorg xulrunner xv xvid xvmc 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-4.4.5 was built with the following:
USE="fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"

Code:
bobby@main ~ $ emerge -pqv =sys-devel/gcc-4.4.5
[ebuild   R   ] sys-devel/gcc-4.4.5  USE="fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"

_________________
www.claudiubucur.com
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9009

PostPosted: Sat Mar 12, 2011 8:58 pm    Post subject: Reply with quote

That config.log appears to be from the successful 64-bit build, not the failed 32-bit libgcc.
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1019
Location: Davie, FL

PostPosted: Sat Mar 12, 2011 9:10 pm    Post subject: Reply with quote

i grabbed it from here: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/config.log where would the right config.log be?
_________________
www.claudiubucur.com
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1019
Location: Davie, FL

PostPosted: Sat Mar 12, 2011 9:12 pm    Post subject: Reply with quote

Hu wrote:
That config.log appears to be from the successful 64-bit build, not the failed 32-bit libgcc.


maybe this one? http://ompldr.org/vN3M5aA

from /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libgcc/config.log
Quote:

configure:2380: checking for C compiler version
configure:2383: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$
xgcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5
Copyright (C) 2010 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:2386: $? = 0
configure:2388: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$
Reading specs from /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/specs
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5 --includedir=/usr/lib/gcc/x86_$
Thread model: posix
gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5)
configure:2391: $? = 0
configure:2393: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$
xgcc: '-V' must come at the start of the command line
configure:2396: $? = 1
configure:2415: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$
configure:2418: $? = 0
configure:2452: checking for C compiler default output file name
configure:2455: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$
configure:2458: $? = 0
configure:2506: result: a.out
configure:2511: checking whether the C compiler works
configure:2517: ./a.out
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/libgcc/configure: line 2518: ./a.out: No such file or directory
configure:2520: $? = 127
configure:2527: error: in `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libgcc':
configure:2531: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Code:
bobby@main ~ $ locate /a.out
/usr/include/a.out.h
/usr/include/asm/a.out.h
/usr/include/bits/a.out.h
/usr/include/linux/a.out.h
/usr/lib64/bcc/include/a.out.h
/usr/lib64/klibc/include/asm-x86/a.out-core.h
/usr/lib64/klibc/include/asm-x86/a.out.h
/usr/lib64/klibc/include/linux/a.out.h
/usr/src/linux-2.6.36-gentoo-r5/arch/alpha/include/asm/a.out-core.h
/usr/src/linux-2.6.36-gentoo-r5/arch/alpha/include/asm/a.out.h
/usr/src/linux-2.6.36-gentoo-r5/arch/arm/include/asm/a.out-core.h
/usr/src/linux-2.6.36-gentoo-r5/arch/arm/include/asm/a.out.h
/usr/src/linux-2.6.36-gentoo-r5/arch/m68k/include/asm/a.out-core.h
/usr/src/linux-2.6.36-gentoo-r5/arch/m68k/include/asm/a.out.h
/usr/src/linux-2.6.36-gentoo-r5/arch/um/include/asm/a.out-core.h
/usr/src/linux-2.6.36-gentoo-r5/arch/x86/include/asm/a.out-core.h
/usr/src/linux-2.6.36-gentoo-r5/arch/x86/include/asm/a.out.h
/usr/src/linux-2.6.36-gentoo-r5/include/linux/a.out.h

_________________
www.claudiubucur.com
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1019
Location: Davie, FL

PostPosted: Mon Mar 14, 2011 3:49 am    Post subject: Reply with quote

acarstoiu wrote:
Try this:
Code:
gcc-config -f 1

Then, recompile your compiler:
Code:
emerge -1 =sys-devel/gcc-4.4.5

If that works, you should be able to fix anything else... If not, I have to recommend the last resort solution of booting from a Live CD, mount your partitions under /mnt/gentoo, run chroot mnt/gentoo (so far, everything is just as described in the installation handbook) and recompile your compiler.
Baftă!


i chrooted and recompiled gcc but it failed with the same error. wow?! i dont get this. if i chroot, dont i use the compilers on the livecd? how can i get the same error then?

also, i want to mention that when i use this machine i can compile most programs. it is only a few programs which fail to compile. i noticed wine, gcc and sandbox.
_________________
www.claudiubucur.com
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9009

PostPosted: Tue Mar 15, 2011 2:53 am    Post subject: Reply with quote

This is probably sys-libs/glibc-2.11.3: update from 2.11.2-r3 removed /lib -> /lib64 symlink. The root cause is not clear from the bug report, but it broke x86 support on quite a few systems.
Back to top
View user's profile Send private message
spootboy
n00b
n00b


Joined: 02 Oct 2008
Posts: 8

PostPosted: Fri Mar 25, 2011 6:43 pm    Post subject: Reply with quote

Had the same problem. The string of commands at the bottom of the bug link that Hu posted fix it for me.

Thanks!
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Apr 16, 2011 6:06 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
see http://forums.gentoo.org/viewtopic-t-297935.html
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
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