Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/bin/uname not working so portage is snookered
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Canuck
n00b
n00b


Joined: 05 Mar 2003
Posts: 14
Location: Alberta, Canada

PostPosted: Wed Sep 24, 2003 3:52 am    Post subject: /bin/uname not working so portage is snookered Reply with quote

Hi all, hope someone has some suggestions.

I've been unable to update for a while now. I can 'emerge rsync' just fine but when I try to run an ebuild it craters due to an inability to determine system type - ie: /bin/uname isn't working anymore.

Here's the output.
=========

bart root # emerge -uD world
Calculating world dependencies ...done!
>>> emerge (1 of 53) sys-libs/db-4.0.14-r2 to /
>>> md5 src_uri ;-) db-4.0.14.tar.gz
>>> Unpacking source...
>>> Unpacking db-4.0.14.tar.gz to /var/tmp/portage/db-4.0.14-r2/work
* Applying db-4.0.14-fix-dep-link.patch... [ ok ]
>>> Source unpacked.
checking build system type... ../dist/config.guess: unable to guess system type

This script, last modified 2001-09-13, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (../dist/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2001-09-13

uname -m = unknown
uname -r = unknown
uname -s = unknown
uname -v = unknown

/usr/bin/uname -p =
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = i686
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = unknown
UNAME_RELEASE = unknown
UNAME_SYSTEM = unknown
UNAME_VERSION = unknown
configure: error: cannot guess build type; you must specify one

!!! ERROR: sys-libs/db-4.0.14-r2 failed.
!!! Function src_compile, Line 73, Exitcode 1
!!! (no error message)
==========

Here's some relevant output:

bart root # uname
bash: /bin/uname: cannot execute binary file
bart root # ls -l /bin/uname
-rwxr-xr-x 1 root root 15232 Aug 27 21:59 /bin/uname
bart root #
==========

In the past I was getting some random window closing in X as well as a filesystem error on my reiserfs but I did a 'reiserfsck --rebuild-tree' and it cleaned up nicely. The system seems stable now after I replaced a TV tuner card that was going the way of all things cheap and easy.

Any suggestions?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Sep 24, 2003 4:31 am    Post subject: Re: /bin/uname not working so portage is snookered Reply with quote

Canuck wrote:
Code:
bart root # uname
bash: /bin/uname: cannot execute binary file
bart root # ls -l /bin/uname
-rwxr-xr-x    1 root     root        15232 Aug 27 21:59 /bin/uname
bart root #


...

Any suggestions?
Looks like your uname executable header is b0rked. `uname` is part of both the coreutils and shutils packages, so see if either one of those can build properly without `uname`.

Failing that, I've made available a uname binary from a Pentium 2 install of Gentoo right here. If the above don't work and you think you can trust me (;-)), that ought to get you pointed in the right direction again.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Canuck
n00b
n00b


Joined: 05 Mar 2003
Posts: 14
Location: Alberta, Canada

PostPosted: Wed Sep 24, 2003 12:50 pm    Post subject: Reply with quote

Well, I emerged coreutils successfully and unmerged three other packages that it superceded. All is now well and my machine will be grinding through the backlog of 50-some packages to update.

One question though. I got an emerge message about coreutils replacing a package but it didn't remove the package on its own. Any particular reason for this?

Thanks for the succinct assistance!

Tom
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Sep 24, 2003 1:41 pm    Post subject: Reply with quote

Canuck wrote:
One question though. I got an emerge message about coreutils replacing a package but it didn't remove the package on its own. Any particular reason for this?
Depends on the meaning of "replacing". You already had coreutils installed, and telling Portage to emerge it again should result in a cleaning of the old package. Other than that, I don't have any ideas. ;-)
_________________
I don't believe in witty sigs.
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
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