Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootstrap hangs on Updating dependencies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Mon Jan 26, 2004 3:15 pm    Post subject: Bootstrap hangs on Updating dependencies Reply with quote

Hi,

i try to install gentoo on an UltraSparc 5 but the systems stops always at the same point.

After srcipts/bootstrap.sh, the system emerge portage, installs it and then i get this

Recalculating the counter... Counter updated successfully.
>>> Clearing invalid entries in dependency cache... ...done!

The systems doesn't hang because whan i do a ctrl-c i get the gentoo promt back.

What can be wrong or how can i know on wich part it hangs?
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Tue Jan 27, 2004 8:32 am    Post subject: Reply with quote

here is my emerge info :

emerge info
Portage 2.0.49-r21 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-rc2-i
so-up)
=================================================================
System uname: 2.4.22-rc2-iso-up sparc64 sun4u
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O3 -pipe -mtune=ultrasparc -fomit-frame-pointer"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O3 -pipe -mtune=ultrasparc -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/d
istributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc arts avi berkdb crypt cups encode esd fbcon foomaticdb gdbm gif imlib
jpeg libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib p
erl png python readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
spam_
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2004
Posts: 105
Location: /dev/null

PostPosted: Tue Jan 27, 2004 3:17 pm    Post subject: Re: Bootstrap hangs on Updating dependencies Reply with quote

Pcassimans wrote:
Hi,

i try to install gentoo on an UltraSparc 5 but the systems stops always at the same point.

After srcipts/bootstrap.sh, the system emerge portage, installs it and then i get this

Recalculating the counter... Counter updated successfully.
>>> Clearing invalid entries in dependency cache... ...done!

The systems doesn't hang because whan i do a ctrl-c i get the gentoo promt back.

What can be wrong or how can i know on wich part it hangs?


I know this is gonna sound stupid but... did you really wait long enough? Maybe an hour or so? It might not be hung, emerge does a lot of unlisted things between messages on my U1 that can take quite a while.
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Tue Jan 27, 2004 4:00 pm    Post subject: Reply with quote

is waiting a day long enough :wink:

thx for the reply
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Tue Jan 27, 2004 8:28 pm    Post subject: Reply with quote

Is portage installed at this point (that is, the one you are 'emerge-ing')?

I have seen something similar, but with xfree, and the way to get this kind
of hang with xfree is to do something like 'ebuild ..... qmerge', build a
package (perhaps on another system), and then 'emerge -k xfree' .

Can you build a package from this portage? Or, better, something like this?
(Note that what I am about to say is something I might try, knowing that it
might wipe me out. But it would be a last resort sort of thing.
So, take it for what it is worth.)
Notice that at "/usr/portage/sys-apps/portage/files" there are portage rescues,
if you can't build a package.

So, save your make.conf

Erase portage (emerge -C portage)

Restore portage from your package (or form a rescue) with
tar -xjvf

emerge portage

Note that this is a desparation procedure.
You would probably get better suggestions by asking on the
mailing list <gentoo-sparc@gentoo.org>
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Wed Jan 28, 2004 4:51 am    Post subject: Reply with quote

As I think about it, what I suggested seems quite a long shot. Your
"clearing invalid entries..." comes very late in the install process (you can
see it in the ebuild file itself.)

Try a quick check of the following: Look in /usr/lib/portage/pym, and do
'ls -l portage*' You should see something like
Code:

terciopelo pym # ls -l portage.p*
 176 -rw-r--r--    1 root     root       174009 Jan  6 23:03 portage.py
 196 -rw-r--r--    1 root     root       193358 Jan  6 23:05 portage.pyc
 180 -rw-r--r--    1 root     root       179135 Jan  6 23:05 portage.pyo

except with your dates & times.

If you do, you are hanging right at the end of the post installation, and
my suggestion has a chance (or something like it)

If you don't, you are hanging in something like an 'rm' or 'install' (since
you don't show '... Database upgrade..." (which seems pretty unlikely)

In any event, it would be interesting to see what exactly was executing
during your hang. (Bring up another login and poke around. )

But in any event, your last message comes from the portage ebuild file near
the end, and you can check there to see waht is going on.

By the way, what happens if you try to emerge something else after the
'emerge portage' hang?
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Wed Jan 28, 2004 12:25 pm    Post subject: Reply with quote

And, third comments:


  • Is this a ~sparc build or not? (KEYWORDS='~sparc')
  • Have you tried
    PORTAGE_DEBUG=1 emerge --debug portage
  • Have you tried sneaking up on this by using ebuild & watching this go
    in steps (also with any debug flags you can find or think of turned on)?


As mentioned, where you are stopped can take some time, but measuring it
in days seems excessive. :?
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Thu Jan 29, 2004 4:19 pm    Post subject: Reply with quote

Thx for the reply. I am not totaly finished with your suggestions but here is what i have so far.

I don't use the keyword="~sparc"

After that the bootscripts hangs, i do a ctrl-c to stop it. I did then the following:

Quote:
gentoo portage # cd /usr/lib/portage/pym
gentoo pym # ls -l portage*
-rw-r--r-- 1 root root 174009 Jan 29 11:59 portage.py
-rw-r--r-- 1 root root 193358 Jan 29 12:00 portage.pyc
-rw-r--r-- 1 root root 179135 Jan 29 12:00 portage.pyo
-rw-r--r-- 1 root root 11802 Jan 29 11:59 portage_core.py
-rw-r--r-- 1 root root 15050 Jan 29 11:59 portage_core2.py
-rw-r--r-- 1 root root 1635 Jan 29 11:59 portage_utils.py
-rw-r--r-- 1 root root 1595 Jan 29 11:59 portagedb.py
gentoo pym #


When i do an emerge portage, it begins installing the first packege of 30 but hangs after the first at this point:

Quote:
.....
zipping man page: patch.1
prepallstrip:
strip:
strip:
usr/bin/patch
>>> Completed installing into /var/tmp/portage/patch-2.5.9/image/

>>> Merging sys-devel/patch-2.5.9 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/patch
--- /usr/share/
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/patch.1.gz
--- /usr/share/doc/
>>> /usr/share/doc/patch-2.5.9/
>>> /usr/share/doc/patch-2.5.9/AUTHORS.gz
>>> /usr/share/doc/patch-2.5.9/COPYING.gz
>>> /usr/share/doc/patch-2.5.9/NEWS.gz
>>> /usr/share/doc/patch-2.5.9/ChangeLog.gz
>>> /usr/share/doc/patch-2.5.9/README.gz

>>> Regenerating /etc/ld.so.cache...
>>> sys-devel/patch-2.5.9 merged.

>>> clean: No packages selected for removal.

>>> emerge (2 of 30) sys-devel/gettext-0.12.1 to /


i think it stoped here too the day i did a stage2 install but am not sure anymore.

If you see somethng weird here please let me know. i'll test some of your suggestions further.
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Thu Jan 29, 2004 4:23 pm    Post subject: Reply with quote

i saw something when doing the bootstrap script. I don't know if it is important but i get the following warning:

Quote:
warning: install: modules installed to '/var/tmp/portage/portage-2.0.49-r21/imag
e/usr/lib/python2.2/site-packages/', which is not in Python's module search path
(sys.path) -- you'll have to change the search path yourself
install -d -m 0755 /var/tmp/portage/portage-2.0.49-r21/image//lib
install -d -m 0755 /var/tmp/portage/portage-2.0.49-r21/image//usr/lib/portage/bi
n
install -d -m 0755 /var/tmp/portage/portage-2.0.49-r21/image//usr/lib/portage/li
b
install -m 0755 libsandbox.so /var/tmp/portage/portage-2.0.49-r21/image//lib
install -m 0755 sandbox /var/tmp/portage/portage-2.0.49-r21/image//usr/lib/porta
ge/bin
install -m 0644 sandbox.bashrc /var/tmp/portage/portage-2.0.49-r21/image//usr/li
b/portage/lib
man:
prepallstrip:
strip:
strip:
usr/lib/python2.2/site-packages/missingos.so
usr/lib/portage/bin/tbz2tool
usr/lib/portage/bin/sandbox
lib/libsandbox.so
making executable: /lib/libsandbox.so
>>> Completed installing into /var/tmp/portage/portage-2.0.49-r21/image/

>>> Merging sys-apps/portage-2.0.49-r21 to /
--- /etc/
>>> /etc/make.globals
>>> /etc/make.conf.example
>>> /etc/etc-update.conf
>>> /etc/dispatch-conf.conf
--- /usr/

_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Thu Jan 29, 2004 6:11 pm    Post subject: Reply with quote

Another test i did was an emerge of a package after the failure of the bootstrap. The folowing happend:
Quote:
entoo portage # emerge --debug zlib -b
Calculating dependencies
Parent: None
Depstring: sys-libs/zlib
Candidates: ['sys-libs/zlib']
ebuild: sys-libs/zlib-1.1.4-r2
binpkg: None
\
Parent: ebuild / sys-libs/zlib-1.1.4-r2 merge
Depstring: virtual/glibc !bootstrap? ( sys-devel/patch ) virtual/glibc
Candidates: []
Exiting... ebuild / sys-libs/zlib-1.1.4-r2 merge
Exiting... None
...done!
>>> emerge (1 of 1) sys-libs/zlib-1.1.4-r2 to /
+ /usr/sbin/ebuild.sh clean

Here it hangs! If i do Ctrl-C i get
Quote:
gentoo portage # /usr/sbin/ebuild.sh: line 114: kill: (25935) - No such process
eutils

gentoo portage #


If i look to the ebuild.sh script at line 114 i see the following :
Quote:
has() {
local x

local me=$1
shift

# All the TTY checks really only help out depend. Which is nice.
# Logging kills all this anyway. Everything becomes a pipe. --NJ
for x in "$@"; do
if [ "${x}" == "${me}" ]; then
if [ -r /proc/self/fd/1 ]; then
==line 114 ==> tty --quiet < /proc/self/fd/1 || echo "${x}"
elif [ -r /dev/fd/1 ]; then
echo "/dev/fd/1" >&2
tty --quiet < /dev/fd/1 || echo "${x}"
elif [ -r /dev/stdout ]; then
echo "/dev/stdout" >&2


Maybe i forgot to mention in the first post, but i am working via the serial console, not via a monitor and keyboard. I did start up gentoo boot with "gentoo serial". Is this maybe the problem?
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Thu Jan 29, 2004 8:46 pm    Post subject: Reply with quote

You can get more information by trying the following:

mkdir /var/log/portage

and uncommenting the #PORT_DIR=/var/log/portage" in make.conf.
(Or, just running PORT_DIR=/var/log/portage emerge ...)

And when you stop it, use Ctrl-Z so that you can see what is running.

What kind of network connection do you have? Your hangs on gettext
or patch look like it is getting ready to download the source packages
into /usr/portage/distfiles, but something is causing it grief.

I'd suggest signing up on the gentoo-sparc@gentoo.org mailing list and
asking your question there; you'll get responses from people who
know a lot more that I know about this. :?
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Fri Jan 30, 2004 12:02 pm    Post subject: Reply with quote

My networkconnection is a standart ethernet connected via a firewall to a leased line on the internet. I use dhcp to get my ip address and other stuff. If i do an emerge sync i never have problems to connect. I don't know if that make sense.
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Pcassimans
n00b
n00b


Joined: 08 Dec 2003
Posts: 32
Location: Brussels

PostPosted: Thu Feb 05, 2004 8:38 am    Post subject: Reply with quote

Just to let you know that everything is ok now!

I did a fresh install of the system (fdisk etc) did an emerge sync and bootstrap and .... everything went ok. I noticed that it was portage 2.0.50 and not 2.0.49 that i was using before.

I am glad it works :twisted:
but i am also worried why it didn't before :evil: and now i still don't know what i did wrong or what the cause was of the failure.

Thx all for the help you gave me in searching for the problem. I hope that one day i will be expert enough to help you guys out with other problems we will have to face in this nice little world of sparc linux.
_________________
Khammi

"It said Windows 95 or better, i tried Linux!"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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