Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge gcc-3.4.2-r2 Error (Multilib?) (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Alexj76
n00b
n00b


Joined: 08 Sep 2004
Posts: 21
Location: Berlin, Germany

PostPosted: Sat Nov 13, 2004 2:13 am    Post subject: Emerge gcc-3.4.2-r2 Error (Multilib?) (solved) Reply with quote

Hi.

I changed to the "new" 2004.3 profile.
After that i do deepclean and make a sync and update world...

But gcc can´t compile..

Code:
Adding multilib support to Makefile in /var/tmp/portage/gcc-3.4.2-r2/work/gcc-3.4.2/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-3.4.2-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-3.4.2-r2/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
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 x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.2-r2/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.2-r2/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
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

!!! ERROR: sys-devel/gcc-3.4.2-r2 failed.
!!! Function gcc_do_make, Line 1073, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Until now i never used multilib.

Here my info..

Code:

bash-2.05b# emerge info
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 AMD Athlon(tm) 64 Processor 3000+
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.6-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77 fam flac fortran gdbm gif gpm gtk2 imagemagick imlib ipv6 jp2 jpeg kde ldap libg++ lzw lzw-tiff mad mc mikmod motif mozilla mpeg multilib mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang ssl tcltk tcpd threads tiff truetype usb userlocales xml xml2 xmms xpm xrandr xv zlib"



Can anybody give my a hint?

CU...


Last edited by Alexj76 on Sat Nov 13, 2004 5:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dervish
n00b
n00b


Joined: 22 Apr 2003
Posts: 5

PostPosted: Sat Nov 13, 2004 8:17 am    Post subject: Reply with quote

I did the same as you and updated my profile. I had just synced and had nothing outstanding, and then after the profile update i did an 'emerge -uDav world' and GCC 3.4.2-r2 and libstdc++-v3-3.3.4 appeared.
When attempting to emerge the gcc i came across a problem, almost straight away, but the message given was a bit clearer:
"You need a 32bit sandbox to install 32bit code with sandbox"
"enabled. Either add FEATURES=-sandbox or disable multilib."
"After installing a multilib gcc, you can re-emerge portage"
"to get a 32bit sandbox, and this problem will go away."
I don't have multilib in my USE flags (i don't know what it is), but sandbox sounded familiar, so I put the '-sandbox in my FEATURES line in /etc/make.conf and it emerged fine.
I had to take the feature out afterwards, followed by re-emerging portage, to get the libstdc++v3-3.3.4 to emerge. I did attempt to emerge the libstdc+ staright away without following their notes, but no sucj luck and to be honets it makes sense to put the sandbox back in.

don't know if it helps but...
Back to top
View user's profile Send private message
anderlin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 149
Location: Trondheim, Norway

PostPosted: Sat Nov 13, 2004 1:07 pm    Post subject: Reply with quote

I got the same problem emerging gcc when I enabled multilib. I solved it by emerging glibc with multilib first. Hope that works for you too!
Back to top
View user's profile Send private message
Alexj76
n00b
n00b


Joined: 08 Sep 2004
Posts: 21
Location: Berlin, Germany

PostPosted: Sat Nov 13, 2004 4:46 pm    Post subject: Reply with quote

THX...

I will try it later this afternoon....

Will post the result tomorrow.

CU.
Alex.
Back to top
View user's profile Send private message
Alexj76
n00b
n00b


Joined: 08 Sep 2004
Posts: 21
Location: Berlin, Germany

PostPosted: Sat Nov 13, 2004 5:30 pm    Post subject: Multilib Solved....! Reply with quote

Hi.

I try it and it works....
I had first to emerge a 32 bit sandbox...

To get a 32 bit sandbox:
Code:
USE=multilib FEATURES=-sandbox emerge gcc portage


Now update system works...
And gcc 3.4.2-r2 runs too...

Hope this one help one....
Back to top
View user's profile Send private message
wzzrd
Apprentice
Apprentice


Joined: 18 Jul 2002
Posts: 245

PostPosted: Thu Nov 18, 2004 9:52 am    Post subject: Reply with quote

How on earth does one update a profile?? Can anyone shine his / her light over this? Thanks :)
Back to top
View user's profile Send private message
anderlin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 149
Location: Trondheim, Norway

PostPosted: Thu Nov 18, 2004 9:54 am    Post subject: Reply with quote

wzzrd wrote:
How on earth does one update a profile?? Can anyone shine his / her light over this? Thanks :)


Code:
rm /etc/make.profile && ln -s /usr/portage/profiles/default-linux/<arch>/<profile> /etc/make.profile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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