Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge interrupted with "gawk failed" error
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
The_Saint
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2004
Posts: 108

PostPosted: Fri May 14, 2004 8:10 am    Post subject: Emerge interrupted with "gawk failed" error Reply with quote

I have just installed Gentoo (stage 3) from my 1.4 CD and I tried to upgrade to the newest version.

The emerge sync worked OK.
Then I tried emerge -u portage. It upgraded several packages but it stopped after a while with the following error:
Quote:
!!! ERROR: sys-apps/gawk-3.1.3-r1 failed
!!! Function src_compile, Line 43, Exitcode 77
!!! (no error message)


Since then, every time I try an emerge command, I get the error:
Quote:
python2.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory.

Can anybody help?
Back to top
View user's profile Send private message
C0deM0nkey
n00b
n00b


Joined: 09 Dec 2003
Posts: 36
Location: Manchester, UK

PostPosted: Sat May 15, 2004 1:24 pm    Post subject: Reply with quote

I also have this error, My Gentoo install is about 5months old, but it has been unused for about 4 months, since I moved house, I have just set it up this morning,
I then did an emerge sync
Which informed me to emerge portage, so I did
emerge portage -uv
And when it got to gawk;
!!! ERROR: sys-apps/ gawk-3.1.3-r1 failed!
!!! Function scr_compile, line 43, Exitcode 77
!!! (no error message)

Emerge is no unuseable if I try emerge [anything] I get:

/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory.

Any advice would be much appreciated..

Incidentally When I did the install way back when, it was a stage 2 install... I think, it might even have been a stage 1 install, I cant quite remember. The point is that it wasnt a stage 3 install, unlike the previous users problem.

-Thanks - Code Monkey
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat May 15, 2004 1:47 pm    Post subject: Reply with quote

The problem with libstdc++.so.5 can happen if you upgrade gcc. I'm not too sure what the solution is but you could try remerging gcc or merging a lower version.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Sat May 15, 2004 2:11 pm    Post subject: Reply with quote

Seems to be the same problem as: https://forums.gentoo.org/viewtopic.php?t=113928
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
C0deM0nkey
n00b
n00b


Joined: 09 Dec 2003
Posts: 36
Location: Manchester, UK

PostPosted: Sat May 15, 2004 2:52 pm    Post subject: Reply with quote

Hi

Quick follow up post,

I followed the instructions in this thread;

https://forums.gentoo.org/viewtopic.php?t=171875

And now everything is working fine.it seems that when your emerging portage on a system that hasnt been updated for quite a while, this is a fairly common(ish) issue. I would consider this to be a portage update problem, that maybe should be looked into by one of the portage developers. It may just be an e-build problem, or it could be lower level than this.

To sumerise what I have done based upon the above thread...

Code:
nano /etc/env.d/05gcc


I found that this file to have the incorrect directories for the following;
Code:
PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.2"

This directory didnt exist so I changed this to
Code:
PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3"


Code:
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.2"

Again I changed this to
Code:
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3"


Code:
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man"

This directory didnt exist so I changed this to
Code:
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man"


Code:
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man"

This directory didnt exist so I changed this to
Code:
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man"


Code:
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3"

Again This directory didnt exist so I changed this to
Code:
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2"


Then nano /etc/ld.so.conf

I found this directory referenced;
Code:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3


Again this directory didnt exits so I checnged it to the directory that was there which was
Code:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2


I then ran

Code:
ldconfig


and then

Code:
env-update


And I can now emerge sync, it seem s to work now, but I am still told that portage needs updating so that is my next task, if I have any problems I will follow up this post.

Hope this post helps someone...

-Code Monkey

EDIT: I have now performed an emerge portage -uv and it seems to be fine. It has completed I have also performed the etc-update after the emerge and it has changed some files.... time for the reboot.....
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