Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

[mostly fixed] gcc 3.4.3 r1 fails in emerge --update world

Have an x86-64 problem? Post here.
Locked
Advanced search
18 posts • Page 1 of 1
Author
Message
Xoder
n00b
n00b
Posts: 15
Joined: Tue Feb 15, 2005 10:51 pm
Location: New York, NY 10027
Contact:
Contact Xoder
Website

[mostly fixed] gcc 3.4.3 r1 fails in emerge --update world

  • Quote

Post by Xoder » Tue Feb 15, 2005 10:57 pm

Here's the tail end of my emerge output:

Code: Select all

checking for x86_64-pc-linux-gnu-gcc... /home/.tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc -B/home/.tmp/portage/gcc-3.4.3-r1/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[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/home/.tmp/portage/gcc-3.4.3-r1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3-r1 failed.
!!! Function gcc_do_make, Line 1113, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.
To my eyes, its failing in the multilib section, which has been on for this entire time. gcc --version puts out

Code: Select all

# gcc --version
gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)
And because there is no such thing as too much documentation:

Code: Select all

# emerge -av --update world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild  NS   ] sys-devel/gcc-3.4.3-r1  -bootstrap -boundschecking -build -debug +fortran -gcj +gtk -hardened (-ip28) +multilib -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB 
[ebuild     U ] sys-libs/libstdc++-v3-3.3.4 [3.3.3-r1] -debug +nls 22,784 kB 

Total size of downloads: 22,784 kB
Help please. Thanks.

EDIT: 17:14 EST 2004-02-18: Found the fix, scroll down yourself, however, there are many who do not have success with the fix
Last edited by Xoder on Fri Feb 18, 2005 10:18 pm, edited 2 times in total.
Top
zueda
n00b
n00b
Posts: 10
Joined: Tue Feb 15, 2005 11:12 pm

  • Quote

Post by zueda » Tue Feb 15, 2005 11:16 pm

:?:

I'm getting the exact error to!

Anybody know how to fix or a work around. I thought I saw somewhere to fix a similar looking error to add -multilib in the USE flags. Is this the correct way?
Top
Xoder
n00b
n00b
Posts: 15
Joined: Tue Feb 15, 2005 10:51 pm
Location: New York, NY 10027
Contact:
Contact Xoder
Website

  • Quote

Post by Xoder » Tue Feb 15, 2005 11:29 pm

zueda wrote:... add -multilib in the USE flags. Is this the correct way?
I highly doubt that fixes it because removing mutlilib will break a whole host of things according to the AMD64 technotes, such as Java (sun's anyways), grub (non-statically built), and makes OpenOffice uninstallable.
Top
dagol
n00b
n00b
Posts: 21
Joined: Thu Feb 26, 2004 4:48 pm
Location: Mississauga, Ontario, Canada

  • Quote

Post by dagol » Tue Feb 15, 2005 11:45 pm

Exact same problem on a fresh amd64 installation, on rebooting, logging in as root, and giving "emerge -Dua world"

~ Dagol
~ Dagol
Top
zueda
n00b
n00b
Posts: 10
Joined: Tue Feb 15, 2005 11:12 pm

  • Quote

Post by zueda » Tue Feb 15, 2005 11:54 pm

I think I found our answer here.
http://forums.gentoo.org/viewtopic-t-29 ... t-gcc.html[/url]
Top
taipan67
l33t
l33t
User avatar
Posts: 866
Joined: Sat Dec 04, 2004 10:04 am
Location: England (i'm told...)

Re: gcc 3.4.3 r1 fails in emerge --update world

  • Quote

Post by taipan67 » Wed Feb 16, 2005 12:13 am

Xoder wrote:Here's the tail end of my emerge output:

Code: Select all

checking for x86_64-pc-linux-gnu-gcc... /home/.tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc -B/home/.tmp/portage/gcc-3.4.3-r1/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[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/home/.tmp/portage/gcc-3.4.3-r1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3-r1 failed.
!!! Function gcc_do_make, Line 1113, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.
...Notice that "See config.log" line? That file lives somewhere in the 'PORTAGE_TMPDIR', which by default is /var/tmp/portage/. If you haven't changed it in your /etc/make.conf, try this command to find it:-

Code: Select all

find /var/tmp/portage/gcc-3.4.3-r1 -iname '*config*'
...And once located, have a read & see if the more precise error description found there makes any more sense to you. If it doesn't, post it here for the perusal of the masses...

EDIT: Looks like someone's found a solution while i've been typing, but i thought i'd post this anyway, as that 'config.log' file has saved me from scouring the forums on more than one occassion.:roll:
"Anyone who goes to see a psychiatrist should have their head examined!"
Top
Xoder
n00b
n00b
Posts: 15
Joined: Tue Feb 15, 2005 10:51 pm
Location: New York, NY 10027
Contact:
Contact Xoder
Website

Re: gcc 3.4.3 r1 fails in emerge --update world

  • Quote

Post by Xoder » Wed Feb 16, 2005 12:24 am

taipan67 wrote: ...And once located, have a read & see if the more precise error description found there makes any more sense to you. If it doesn't, post it here for the perusal of the masses...

EDIT: Looks like someone's found a solution while i've been typing, but i thought i'd post this anyway, as that 'config.log' file has saved me from scouring the forums on more than one occassion.:roll:
Thanks. I managed to find the config.log file before posting, and it provided no extra info. I am currently applying the fix labelled above.

Again, thanks to everyone!8)
Top
dagol
n00b
n00b
Posts: 21
Joined: Thu Feb 26, 2004 4:48 pm
Location: Mississauga, Ontario, Canada

  • Quote

Post by dagol » Wed Feb 16, 2005 12:33 am

Many thanks Zueda, gcc compiled successfully!!
Now onto the rest of the system...

~ Dagol
Top
Xoder
n00b
n00b
Posts: 15
Joined: Tue Feb 15, 2005 10:51 pm
Location: New York, NY 10027
Contact:
Contact Xoder
Website

  • Quote

Post by Xoder » Wed Feb 16, 2005 12:58 am

# FEATURES="-sandbox" USE="multilib" emerge gcc portage

worked for me, even though multilib is already enabled...

from: http://bugs.gentoo.org/show_bug.cgi?id=72379#c12
Top
dagol
n00b
n00b
Posts: 21
Joined: Thu Feb 26, 2004 4:48 pm
Location: Mississauga, Ontario, Canada

  • Quote

Post by dagol » Thu Feb 17, 2005 12:26 am

So, apparently I was too optimistic earlier... I've got nothing but headaches with this, saw the bug reports listed elsewhere, but nothing lists a fix for this problem.

~ Dagol
Top
pgolik
Tux's lil' helper
Tux's lil' helper
Posts: 125
Joined: Wed Nov 24, 2004 11:46 am
Location: Warsaw, Poland

  • Quote

Post by pgolik » Thu Feb 17, 2005 9:32 am

Had the same problem installing stage1 with recent portage. Here's what I did (I have multilib and nptl already in make.conf):

Code: Select all

FEATURES="-sandbox" emerge gcc
env-update
source /etc/profile
gcc --version
And make sure it shows the newly compiled version (3.4.3-r1).
Then

Code: Select all

emerge portage
At that point, however, bootstrap still tried to emerge gcc and failed. So I repeated the above steps (just in case) an then I edited bootstrap.sh and commented out the line that read:

Code: Select all

${V_ECHO} emerge ${STRAP_EMERGE_OPTS} ${myGCC} || cleanup 1
and ran bootstrap.sh
This went fine, after that I could emerge system witout a hitch.
Hope this helps.
BTW: A rant: installing gentoo/amd64 from stage 1 is now seriously broken and following the documentation to the letter gives the problems mentioned in this thread. This is very bad and I'm shocked that the devs are not trying to fix is ASAP. It's a showstopper bug that is likely to drive a newcomer away from gentoo for good!!
Pawel
Top
Xoder
n00b
n00b
Posts: 15
Joined: Tue Feb 15, 2005 10:51 pm
Location: New York, NY 10027
Contact:
Contact Xoder
Website

  • Quote

Post by Xoder » Fri Feb 18, 2005 9:39 pm

pgolik wrote: BTW: A rant: installing gentoo/amd64 from stage 1 is now seriously broken and following the documentation to the letter gives the problems mentioned in this thread. This is very bad and I'm shocked that the devs are not trying to fix is ASAP. It's a showstopper bug that is likely to drive a newcomer away from gentoo for good!!
Pawel
It almost drove me away. I ended up re-installing from stage 3, and now have other fish to fry :-)
Top
Inexus
n00b
n00b
Posts: 20
Joined: Fri Feb 18, 2005 7:53 pm

  • Quote

Post by Inexus » Fri Feb 18, 2005 10:06 pm

I'm a newcomer,and I don't run away,I've decided to install my gentoo with stage 2,and when the problem will be fixed,I hope it's possible to do the bootstrap a this time...Anyway I'm sure I wouldn't configure it well to have optimisation(i suppose that's the parameters that optimize are in the use variable,..and I don't know very good how to configure it...)
Top
dagol
n00b
n00b
Posts: 21
Joined: Thu Feb 26, 2004 4:48 pm
Location: Mississauga, Ontario, Canada

  • Quote

Post by dagol » Tue Feb 22, 2005 1:41 am

Alright I've been running into this problem repeatedly, and there seem to be 4 or 5 different fixes for it. One I haven't seen so far is (maybe?) specifically related to my situation.

I tried installing a stage 3 amd 64 gentoo 2004.3 (not the current 2004.3-r1 on mirrors, that one doesn't do my hardware neatly... anyway)

I reinstalled following the install guides 4 times and kept running into variations of this problem.

Long story short, I emerged :
emul-linux-x86-baselibs
emul-linux-x86-compat
emul-linux-x86-glibc

and re-emerged gcc (with FEATURES="-sandbox" USE="multilib" of course) and it SUCCEEDED!! FINALLY!

So now I'm emerging xorg, the last test will be if it allows me to emerge and run openoffice-bin...

~ Dagol

- - -
EDIT : No sandbox.

DAMNIT. it's official. i'm pissed.
Top
maiku
l33t
l33t
User avatar
Posts: 608
Joined: Wed Mar 24, 2004 6:06 am
Location: Escaping from NY

  • Quote

Post by maiku » Tue Feb 22, 2005 5:30 am

Yeah I'm having some pretty rotten luck with it myself. Even when I do emerge GCC and re-emerge it I have to FEATURES="-sandbox" each time. I re-emerge portage after a quick env-update and source /etc/profile but nothing changes.
Michael
Top
NeoCORE
Tux's lil' helper
Tux's lil' helper
Posts: 100
Joined: Sat Mar 15, 2003 1:27 pm
Location: Ireland
Contact:
Contact NeoCORE
Website

  • Quote

Post by NeoCORE » Tue Feb 22, 2005 11:47 am

having the same problem myself... :(
To err is human, but to really foul things up, you need a computer :D
NeoCORE Network:)
Adopt a post today! 8)
Top
maiku
l33t
l33t
User avatar
Posts: 608
Joined: Wed Mar 24, 2004 6:06 am
Location: Escaping from NY

  • Quote

Post by maiku » Fri Feb 25, 2005 10:44 pm

My problem seems to have disappeared when upgrading to 2005.0. Use these directions to do so: http://www.gentoo.org/proj/en/base/amd6 ... -amd64.xml . I hope it fixes everybody else's problem as well.
Michael
Top
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Thu Mar 03, 2005 10:19 am

This problem is fixed now. Just sync and re-emerge portage and it should build a working 32 bit sandbox.
Top
Locked

18 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic