Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71925 - gcc-3.4.3 emerge shows error: If you meant to cross compile, use `--host'.
Summary: gcc-3.4.3 emerge shows error: If you meant to cross compile, use `--host'.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-21 03:12 UTC by Martin Vysny
Modified: 2004-11-21 06:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zipped config.log file (cl.zip,23.49 KB, application/zip)
2004-11-21 06:11 UTC, Martin Vysny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Vysny 2004-11-21 03:12:12 UTC
When I try to emerge gcc-3.4.3, it fails with the following error:
...
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1


Reproducible: Always
Steps to Reproduce:
1. emerge gcc-3.4.3
Actual Results:  
emerge failed

Expected Results:  
gcc emerges :)

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://gentoo.inode.at"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa anthy apm avi berkdb bitmap-fonts cdr cjk crypt cups dvd
dvdr encode esd f77 fam flac gdbm gif gnome gpm gstreamer gtk gtk2 icq imlib
ipv6 java jp2 jpeg kerberos ldap libcaca libwww lzw lzw-tiff mad matroska mikmod
mozilla mpeg multilib ncurses nls oggvorbis opengl pam perl png python readline
samba sdl slang ssl tcpd tiff truetype unicode usb userlocales xml2 xmms xpm
xprint xrandr xv xvid zlib"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-11-21 04:53:25 UTC
can you please attach the config.log file.
Comment 2 Martin Vysny 2004-11-21 06:06:54 UTC
there are several config.logs in /var/tmp/portage/gcc-3.4.3/work/build/ :
./config.log
./intl/config.log
./gcc/config.log
./libiberty/config.log
./x86_64-pc-linux-gnu/libstdc++-v3/config.log
./x86_64-pc-linux-gnu/32/libstdc++-v3/config.log

I don't know which one do you need; I think the libstdc++ is the one but it's insanely long, I'll post it in a zip file.
Comment 3 Martin Vysny 2004-11-21 06:11:02 UTC
Created attachment 44406 [details]
zipped config.log file

config file located in
/var/tmp/portage/gcc-3.4.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3/config.log
Comment 4 Martin Vysny 2004-11-21 06:37:59 UTC
Ooops, my bad, forgot to add FEATURE="-sandbox" :) it's working now. Sorry!