Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
upgraded portage, nothing emerges --also cc not found
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 11:13 am    Post subject: upgraded portage, nothing emerges --also cc not found Reply with quote

I just upgraded portage to 2.0.45-r6 and now every emerge fails

it starts by taking up all my resources (first cpu then ram then swap) and then fails like this :

Code:
---> emerge xpdf
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/xpdf-1.01-r1 to /
>>> md5 ;-) xpdf-1.01.tar.gz
/usr/sbin/ebuild.sh: line 395: rm-f: command not found
>>> Unpacking source...
>>> Unpacking xpdf-1.01.tar.gz
>>> Source unpacked.
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

!!! ERROR: app-text/xpdf-1.01-r1 failed.
!!! Function src_compile, Line 26, Exitcode 77
!!! (no error message)


I show this particular package cause i emerged it yesterday and it worked without problems then ... and only portage changed since then

hdparm however, seems not to do a configure, and borks like this:
Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/hdparm-5.2-r3 to /
>>> md5 ;-) hdparm-5.2.tar.gz
/usr/sbin/ebuild.sh: line 395: rm-f: command not found
>>> Unpacking source...
>>> Unpacking hdparm-5.2.tar.gz
>>> Source unpacked.
gcc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -W                                                                           cast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissin                                                                           g-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-r                                                                           eturn -Wnested-externs -Wtrigraphs -march=athlon-xp -O3 -pipe -fomit                                                                           -frame-pointer -mmmx -ffast-math -falign-functions=4 -maccumulate-ou                                                                           tgoing-args -m3dnow -msse -mfpmath=sse -funroll-loops -frerun-cse-af                                                                           ter-loop -frerun-loop-opt   -c -o hdparm.o hdparm.c
gcc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -W                                                                           cast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissin                                                                           g-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-r                                                                           eturn -Wnested-externs -Wtrigraphs -march=athlon-xp -O3 -pipe -fomit                                                                           -frame-pointer -mmmx -ffast-math -falign-functions=4 -maccumulate-ou                                                                           tgoing-args -m3dnow -msse -mfpmath=sse -funroll-loops -frerun-cse-af                                                                           ter-loop -frerun-loop-opt   -c -o identify.o identify.c
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: Error 23
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: Error 23
make: *** [identify.o] Error 127
make: *** Waiting for unfinished jobs....
make: *** [hdparm.o] Error 127


!!! ERROR: sys-apps/hdparm-5.2-r3 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! compile error


UPDATE: the solution (or so it seems to be)

step 1 -> edit the /usr/sbin/ebuild.sh file, find "rm-f" and replace it by "rm -f"

step 2 -> obtain a working gcc and copy it to /usr/bin/gcc
for this you can use the gcc on your installation cd (safest) (explained further down how to do this)
or use one of these : http://users.pandora.be/crossvaults/gcc for gcc3.2.1 (actually, i dno on which pc's this one will work, but it did on my athlon xp)
orhttp://users.pandora.be/crossvaults/gcc2 for gcc2.95.3 (should work on any x86)

step 3 -> emerge rsync and emerge portage (check wether this wil NOT emerge portage2.0.45-r6 ! or do it manually)

step 4 -> emerge gcc

all should be fine now
_________________
.:: $witty_statement ::.


Last edited by NePhie on Thu Dec 19, 2002 3:54 pm; edited 5 times in total
Back to top
View user's profile Send private message
wordas
n00b
n00b


Joined: 17 Dec 2002
Posts: 2

PostPosted: Tue Dec 17, 2002 11:31 am    Post subject: Reply with quote

Hi,

the same is true for my system. Updated to newest portage and all emerges from then won't compile.

After the update of portage i did an emerge rsync.

An emerge hdparm gives the following error:
Code:

.../usr/bin/gcc: /usr/bin/gcc: /bin/sh: bad interpreter: Too many open files in system
/usr/bin/gcc: /usr/bin/gcc: /bin/sh: bad interpreter: Too many open files in system
make: *** [identify.o] Error 126
make: *** Waiting for unfinished jobs....
make: *** [hdparm.o] Error 126

!!! ERROR: sys-apps/hdparm-5.2-r3 failed.
!!! Function src_compile, Line 1, Exitcode 2
!!! compile error


I'm still using Gentoo 1.2.
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 11:35 am    Post subject: Reply with quote

after running ldconfig, i know have that error too
_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
tigrezno
Apprentice
Apprentice


Joined: 28 Jun 2002
Posts: 251
Location: Spain

PostPosted: Tue Dec 17, 2002 11:41 am    Post subject: It's true Reply with quote

Portage 2.0.45-r6 crashed my system, swap goes up and down, nothing emerges, oh my god!!!
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 11:44 am    Post subject: Reply with quote

some tell me it might have something to do with ld.so

they told me this after i showed them this little bugger:
Code:
 gcc --version
/bin/sh: error while loading shared libraries: libm.so.6: cannot open shared object file: Error 23

_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
Arzie
n00b
n00b


Joined: 23 Oct 2002
Posts: 51
Location: Enschede, The Netherlands

PostPosted: Tue Dec 17, 2002 11:50 am    Post subject: Reply with quote

Same problem here, gcc generates 100s of processes and 1000s of open files and then dies with an error regarding too many open files or being unable to open one of the libs.

But now the question: why?
Back to top
View user's profile Send private message
tigrezno
Apprentice
Apprentice


Joined: 28 Jun 2002
Posts: 251
Location: Spain

PostPosted: Tue Dec 17, 2002 11:56 am    Post subject: Package craked? Reply with quote

I think Portage was Cracked, so my gcc now looks as this:

tigre@enigma tigre $ cat /usr/bin/gcc
#!/bin/sh

gcc "$@"
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 12:04 pm    Post subject: Reply with quote

OMFG

i just replaced that file with http://users.pandora.be/crossvaults/gcc

and now it works again
_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
Arzie
n00b
n00b


Joined: 23 Oct 2002
Posts: 51
Location: Enschede, The Netherlands

PostPosted: Tue Dec 17, 2002 12:09 pm    Post subject: Reply with quote

Thanks, mine works again!

Last edited by Arzie on Tue Dec 17, 2002 12:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
wordas
n00b
n00b


Joined: 17 Dec 2002
Posts: 2

PostPosted: Tue Dec 17, 2002 12:11 pm    Post subject: Reply with quote

@NePhie

The gcc you posted is gcc-3.2.1

Do you know where i may get gcc2.x for gentoo 1.2?

Thanks.
Back to top
View user's profile Send private message
insomniac
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 132
Location: Lund, Sweden

PostPosted: Tue Dec 17, 2002 12:14 pm    Post subject: Reply with quote

christ... i just suffered the same problem...
wget did get me the good version of gcc again
quick check...
Reboot.
emerge nvidia-kernel again..
... and /usr/bin/gcc is back to the borked version again.
i'm a relative newbie. how do i fix this???
_________________
My next computer is also a Gentoo computer
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 325
Location: Leamington Spa, Warks, UK

PostPosted: Tue Dec 17, 2002 12:18 pm    Post subject: Reply with quote

Yep... I pulled down the new GCC (thanks!) and went to re-emerge GCC so I could have my optimised build back... And... Foom! gcc is a textfile again.

Something is really mangled here, emerge is completely broken. Any ideas how to get out of this one?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 12:19 pm    Post subject: Reply with quote

wordas: you could try http://users.pandora.be/crossvaults/gcc2 :)

and euh ... i just emerged stuff ... even portage -r6 (after a rsync) , and my gcc stays good
_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 12:21 pm    Post subject: Reply with quote

hmm, the only thing i did different is a rsync, and i changed the faulty "rm-f" to "rm -f" in /usr/sbin/ebuild.sh
_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
dippen
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2002
Posts: 83

PostPosted: Tue Dec 17, 2002 12:23 pm    Post subject: Reply with quote

NePhie wrote:
Quote:

i just replaced that file with http://users.pandora.be/crossvaults/gcc


is it save to do that?
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 325
Location: Leamington Spa, Warks, UK

PostPosted: Tue Dec 17, 2002 12:24 pm    Post subject: Reply with quote

Feh: I did emerge portage and killed it straight away. GCC got fragged. emerge portage -p didn't kill it though. Hmmmm... Same with GCC, same with MySQL.
Code:
root@dev root # ls /usr/bin/gcc -l
-rwxr-xr-x    2 root     root        93424 Dec 17 12:22 /usr/bin/gcc
root@dev root # emerge portage
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.45-r6 to /
/usr/sbin/ebuild.sh: line 395: rm-f: command not found
>>> Unpacking source...
tar xjf /usr/portage/sys-apps/portage/files/portage-2.0.45-r6.tar.bz2
>>> Source unpacked.
Caught signal 2
Killed
root@dev root # ls /usr/bin/gcc -l
-rwxr-xr-x    2 root     root           20 Dec 17 12:23 /usr/bin/gcc
[EDIT:] hadn't spotted the rm-f thing. fine now, thanks.
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."


Last edited by mr-simon on Tue Dec 17, 2002 12:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
insomniac
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 132
Location: Lund, Sweden

PostPosted: Tue Dec 17, 2002 12:24 pm    Post subject: Reply with quote

changing rm-f to rm -f in /usr/sbin/ebuild.sh took care of the problem. Do I have to reemerge gcc now to get it working "good" now?
_________________
My next computer is also a Gentoo computer
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 12:29 pm    Post subject: Reply with quote

i would recompile gcc yes, since that one is one with propable other flags than you were using ...

btw... keep in mind that i'm not a linux guru, i can be wrong =) but everything is working here now
_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
H-Pi
Apprentice
Apprentice


Joined: 26 Jun 2002
Posts: 175
Location: Delft (NL)

PostPosted: Tue Dec 17, 2002 12:32 pm    Post subject: Reply with quote

downloaded the gcc given here (thanks a lot!), downgraded back to portage-2.45-r5 and now emergeing totem

after that i will try emerging gcc, to see if that works

but everything seems to be back normal if you go back one version with portage
Back to top
View user's profile Send private message
NePhie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 82

PostPosted: Tue Dec 17, 2002 12:34 pm    Post subject: Reply with quote

it seems that the whole problem resides in that faulty "rm-f"

I would like to hear from one of the officials what caused this ...
_________________
.:: $witty_statement ::.
Back to top
View user's profile Send private message
meteor
n00b
n00b


Joined: 30 Oct 2002
Posts: 54
Location: Old School Europe

PostPosted: Tue Dec 17, 2002 12:39 pm    Post subject: Reply with quote

NePhie wrote:
OMFG

i just replaced that file with http://users.pandora.be/crossvaults/gcc

and now it works again


I did this and changed the rm-f in the ebuild.sh. Everything is working now, Thanks.
Back to top
View user's profile Send private message
seemant
Retired Dev
Retired Dev


Joined: 16 Nov 2002
Posts: 61
Location: Oakland, CA

PostPosted: Tue Dec 17, 2002 12:44 pm    Post subject: which gcc's? Reply with quote

Hi,

If you're running gcc-3.2.1-r6 or gcc-2.95.3-r8; please source /etc/profile and run which gcc. You should get output similar to this:

nebuchadnezzar root # which gcc
/usr/i686-pc-linux-gnu/gcc-bin/2.95/gcc

or this:
construct root # which gcc
/usr/sparc-unknown-linux-gnu/gcc-bin/3.2/gcc


(Note, my x86 is a 1.2, my sparc is a 1.4). Also, look into gcc-config:

construct root # gcc-config --get-current-profile
sparc-unknown-linux-gnu-3.2.1


Hope this helps..
Back to top
View user's profile Send private message
tigrezno
Apprentice
Apprentice


Joined: 28 Jun 2002
Posts: 251
Location: Spain

PostPosted: Tue Dec 17, 2002 12:49 pm    Post subject: Reply with quote

Anything works for me, my system is destroyed, i'm backing up my data before reinstalling ALL :(
Back to top
View user's profile Send private message
H-Pi
Apprentice
Apprentice


Joined: 26 Jun 2002
Posts: 175
Location: Delft (NL)

PostPosted: Tue Dec 17, 2002 12:59 pm    Post subject: Reply with quote

hm , I did change the rm-f thing because it looked strainge to me either, gonna try it with my new gcc, edit hte line again, and upgrade portage again, that should work?
Back to top
View user's profile Send private message
m1kee
n00b
n00b


Joined: 17 Dec 2002
Posts: 9

PostPosted: Tue Dec 17, 2002 1:01 pm    Post subject: Reply with quote

unfortunately your suggestion doesn't help seemant, thanks for the input though..

Still on a system w/o a functional compiler/portage 8O

I checked the source url for portage, which didn't have any -r6 listed, next to that, the digest for -r6 from the rsync is 0 bytes :|

I'd rather wait and see what gives.
_________________
delirium tremens
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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