Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75236 - gcc-3.4.3 failed to compile
Summary: gcc-3.4.3 failed to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 75238 (view as bug list)
Depends on:
Blocks: 73729
  Show dependency tree
 
Reported: 2004-12-21 14:16 UTC by Cezary Supron
Modified: 2007-09-28 13:16 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cezary Supron 2004-12-21 14:16:13 UTC
When I try to emerge gcc-3.4.3, I get configure error : cannot run C compiled  programs ... make: *** [configure-target-libstdc++-v3] Error 1 I found that it is connected with multilib parameter in my /etc/make.conf but I have to use it to compile 32-bit binaries.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.3.4,
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
distcc 2.17 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
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-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
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 arts berkdb bitmap-fonts cdr crypt cups esd f77 fam flac
fortran gdbm gif gnome gphoto2 gpm gstreamer gtk imap imlib ipv6 java jp2 jpeg
junit ldap libwww lzw lzw-tiff mikmod motif mozilla multilib mysql ncurses nls
oggvorbis opengl oss pam pdflib perl png python readline samba sdl slang ssl
tcltk tcpd tetex tiff truetype usb userlocales xml2 xmms xpm xrandr xv zlib
linguas_pl"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-21 15:24:43 UTC
*** Bug 75238 has been marked as a duplicate of this bug. ***
Comment 2 Mike Doty (RETIRED) gentoo-dev 2004-12-21 16:10:54 UTC
try this:

USE="-multilib" emerge gcc

emerge gcc glibc
Comment 3 Ramana Kumar 2004-12-21 16:46:47 UTC
second emerge then fails
Comment 4 Mike Doty (RETIRED) gentoo-dev 2004-12-21 17:07:31 UTC
oops, you might need to do a gcc-config.  use gcc-config -l to list your profiles and reselect 3.4.3.  do this even if it was selected.  then 'emerge gcc glibc'
Comment 5 Jacob Atzen 2004-12-22 09:58:47 UTC
This might be a problem with sandbox and gcc. Check out bug #72379 for more information.
Comment 6 Radek "rush" Senfeld 2005-02-19 16:33:55 UTC
Yes, it is. I had exactly the same problem while bootstraping brand new AMD64 box. None solution helped. But I realized that it's caused by portage and sandbox. Don't know why but the newer versions of portage don't install libsandbox.so into /lib32. So I tried older one and succeded.

emerge --nodeps \=portage-2.0.51-r3
Comment 7 David Heaps 2005-02-19 20:56:06 UTC
The problem in portage not installing the 32bit libsandbox has to do with this line:
elif [ "${ARCH}" == "amd64" -a -z "${MULTILIB_ABIS}" ]; then

change it to:
elif [ "${ARCH}" == "amd64" ]; then

and it installs fine.
Comment 8 Philippe Trottier (RETIRED) gentoo-dev 2005-02-22 05:29:50 UTC
Is the solution to change that line ? at the moment a stage1 install breaks because of that ? later emerge gcc will also break things ... Is there any reason why changing that line in the portage ebuild is bad idea (TM)
Comment 9 David Heaps 2005-02-23 17:35:04 UTC
Actually this issue has just been fixed. If you do a sync now and re-emerge portage the portage ebuild will install the 32 bit libsandbox and as such will compile gcc.

The reason it is a bad idea to change the ebuild files in /usr/portage is because your changes will be overridden when you sync.
Comment 10 P Nienaber 2005-03-09 22:56:27 UTC
Identical issue here;  recent sync, up-to-date portage.  FEATURES=-sandbox doesn't fix it.
Comment 11 David Heaps 2005-03-14 19:33:28 UTC
It seems portate changed the name of libsandbox so you have to re-compile glibc.

Do this and it will compile:

emerge sync && emerge portage glibc gcc
Comment 12 Alex Howells (RETIRED) gentoo-dev 2005-03-28 09:14:03 UTC
David Heaps mentions twice the issue is resolved and mentions how to fix it. I can't reproduce the problem, but I've not heard anyone shouting to the contrary. Closing the bug, resolving as FIXED - anyone with issues should reopen and update us with your current situation.