Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating exitisting Gentoo on Netwinder - more woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Fri Nov 11, 2005 8:32 am    Post subject: Updating exitisting Gentoo on Netwinder - more woes Reply with quote

I set up my Netwinder to use Gentoo some time ago and then had to concentrate on family matters for a while.

Just rebooted it, emerged sync and input emerge -p world to see what was out of date and got the following message:
Quote:
These are the packages that I would merge, in order:

!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?


So I checked out the symlink:
Quote:
root@genwinder etc # ls -l make*
-rw-r--r-- 1 root root 13406 Oct 2 22:01 make.conf
-rw-r--r-- 1 root root 13277 May 13 07:41 make.conf.example
-rw-r--r-- 1 root root 2676 May 13 07:41 make.globals
lrwxrwxrwx 1 root root 42 Jul 22 21:23 make.profile -> ../usr/portage/profiles/default-arm-2004.0


but although the symlink is there, I don't have any file default-arm-2004.0

Can someone point me in the right direction?

Thanks

Robert
_________________
If you dont ask, you wont get


Last edited by MrSums on Thu Dec 01, 2005 10:10 pm; edited 2 times in total
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Fri Nov 11, 2005 1:29 pm    Post subject: Reply with quote

Chances are, you'll be running the non-cascaded version of Portage... which means... ouch, you're in for a fun time.

My recommendation... download the arm stage3 tarball, and unpack it somewhere on your device.
Bind mount /usr/portage from your device's "real" portage tree, to the one inside the unpacked tarball... then chroot into the tarball.

From there, run quickpkg /var/db/pkg/*/*. This will produce binary packages for all the packages in the tarball.
Now, from there, you should be able to update portage, and relevant files from the binpkgs. At the very worst, you might have to manually unpack one over the top of /, but this should be avoided if you can.

I recommend making a full backup before you start though... and be prepared to have to do it all over again -- the distribution may be getting too old to upgrade safely.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Fri Nov 11, 2005 4:56 pm    Post subject: Reply with quote

Just so I am clear on this:

Redhatter wrote:
Chances are, you'll be running the non-cascaded version of Portage...

What does this mean? I originally followed Spanky's instructions from http://forums.gentoo.org/viewtopic.php?p=1341859

Redhatter wrote:

From there, run quickpkg /var/db/pkg/*/*. This will produce binary packages for all the packages in the tarball.
Now, from there, you should be able to update portage, and relevant files from the binpkgs. At the very worst, you might have to manually unpack one over the top of /, but this should be avoided if you can.

To update portage - is this simply an emerge?

Redhatter wrote:
... and be prepared to have to do it all over again -- the distribution may be getting too old to upgrade safely.

Will I have to continue to use the workaround you mention, or will this fix it for good? Is there a better route for continuing use?

Many thanks

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sat Nov 12, 2005 2:37 am    Post subject: Reply with quote

MrSums wrote:
Just so I am clear on this:

Redhatter wrote:
Chances are, you'll be running the non-cascaded version of Portage...

What does this mean? I originally followed Spanky's instructions from http://forums.gentoo.org/viewtopic.php?p=1341859


Exactly what it says. The trouble you're striking now, is that the profile now (I'm assuming you tried changing it to the 2005.1 arm profile??) is in a format that the older versions of Portage don't understand. And hence, they hit this, seemingly "incomplete" profile, and b0rk.

Quote:
Redhatter wrote:

From there, run quickpkg /var/db/pkg/*/*. This will produce binary packages for all the packages in the tarball.
Now, from there, you should be able to update portage, and relevant files from the binpkgs. At the very worst, you might have to manually unpack one over the top of /, but this should be avoided if you can.

To update portage - is this simply an emerge?


emerge -K portage, or if that fails, a tar -C / -xjvf portage-2.0.51-r#.tbz2.

Quote:
Redhatter wrote:
... and be prepared to have to do it all over again -- the distribution may be getting too old to upgrade safely.

Will I have to continue to use the workaround you mention, or will this fix it for good? Is there a better route for continuing use?


No, once you've upgraded portage, you should be fine... However, what I'm saying is that this method is a little on the ugly side, and could break things.
It may be faster to just reload. That's what I'm saying.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Sat Nov 12, 2005 5:12 pm    Post subject: Reply with quote

Redhatter wrote:
I'm assuming you tried changing it to the 2005.1 arm profile??


Aah, now there you have me. No I haven't. On searching the forums I find that the latest supported arm relase is 2004.3 - and I don't think I am there yet.

Can I just get a copy of the default-arm-2004.3 file and creat the symlink to it?

Should I upgrade to 2005.1 instead? Is this as simple as finding the file and symlinking to it?

Thanks

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Sun Nov 13, 2005 6:29 pm    Post subject: Reply with quote

Had to do some reading up on the non-cascading portage bit. I managed to update portage by removing the sym-link then

export ARCH="arm"
export ACCEPT_KEYWORDS="arm"

reemerged portage, then re-inserted the sym-link.

Seems to be working fine, but I have some more checks to do

Thanks for the help

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Mon Nov 28, 2005 10:57 pm    Post subject: Reply with quote

Ho hum. You were right. I was wrong.

Just finally did it your way and it really does seem to be working ok now.

Thanks - and I do mean thanks - I know you guys always make me work for it, but I guess I end up knowing more that way

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Thu Dec 01, 2005 10:14 pm    Post subject: Reply with quote

Still having problems I'm afraid. Portage is working fine, but I can't update all sorts of other programs.

Is the best idea just to start again? - there is nothing on the server I can't afford to loose, other than all the time I originally put in to getting it working.

I'd appreciate any advise - and if it is to start again, do I have to follow original steps, or can I download a stage tarball and over-write what I have already?

Frustrated, but unbowed

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Fri Dec 02, 2005 1:43 am    Post subject: Reply with quote

I'm not sure I know what you mean?

How does it fail?
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Fri Dec 02, 2005 5:46 pm    Post subject: Reply with quote

Here is where I am:

Kernel version 2.6.6
make.profile -> /usr/portage/profiles/default-linux/arm/2004.3/
glibc version 2.3.5
gcc version 3.3.3
make.conf settings:
CHOST="arm4l-unknown-linux-gnu"
CFLAGS="-mcpu=stongarm110 -01 -pipe"

I did the original configuration from Spanky's notes, before the new profile system came out. I therefore have the original "packages.masked" file. Is this still required, given the new profile, or does it need updating? These are its contents:
Quote:

sys-apps/vixie-cron x86
app-editors/vi x86
net-mail/fetchmail x86
mail-mta/postfix x86
mail-filter/procmail x86
net-mail/courier-imap x86
dev-tcltk/expect x86
x11-wm/icewm x86
media-fonts/artwiz-fonts x86
app-admin/webmin x86
app-admin/usermin x86
dev-perl/XML-Generator x86
dev-perl/Authen-PAM x86
net-misc/openswan x86
net-dns/host x86
mail-filter/spamassassin x86
dev-perl/PodParser x86
dev-perl/Net-DNS x86
dev-perl/Digest-HMAC x86
dev-perl/Digest-SHA1 x86
dev-perl/HTML-Parser x86
dev-perl/HTML-Tagset x86
dev-perl/DB_File x86
"package.keywords" 23 lines, 536 characters


This is the result of an emerge glibc

Quote:

../sysdeps/generic/s_fmax.c: In function `__fmax':
../sysdeps/generic/s_fmax.c:28: internal compiler error: in elim_reg_cond, at flow.c:3322
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
../sysdeps/generic/s_fmin.c: In function `__fmin':
../sysdeps/generic/s_fmin.c:28: internal compiler error: in elim_reg_cond, at flow.c:3322
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/glibc-2.3.5-r2/temp/cclrjpo6.out file, please attach this to your bugreport.
make[2]: *** [/var/tmp/portage/glibc-2.3.5-r2/work/build-default-armv4l-unknown-linux-gnu-linuxthreads/math/s_fmin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Preprocessed source stored into /var/tmp/portage/glibc-2.3.5-r2/temp/ccWbs3Jy.out file, please attach this to your bugreport.
make[2]: *** [/var/tmp/portage/glibc-2.3.5-r2/work/build-default-armv4l-unknown-linux-gnu-linuxthreads/math/s_fmax.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r2/work/glibc-2.3.5/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r2/work/glibc-2.3.5'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.5-r2 failed.
!!! Function toolchain-glibc_src_compile, Line 226, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Emerge gcc also fails too like this:
Quote:
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/. -I/var/tmp/portage/gcc-3.4.4- r1/work/gcc-3.4.4/gcc/../include /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/g cc/genmodes.c -o genmodes.o
make[4]: stage2/xgcc: Command not found
make[4]: *** [genmodes.o] Error 127
make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[3]: *** [stage3_build] Error 2
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[2]: *** [quickstrap] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1311, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


Thanks

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sat Dec 03, 2005 1:19 am    Post subject: Reply with quote

You'll have to take this up with the Gentoo/ARM team I think. Have you tried installing the binpkgs of gcc/glibc/binutils from the latest stage3?
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
MrSums
Apprentice
Apprentice


Joined: 25 May 2003
Posts: 283
Location: UK

PostPosted: Mon Dec 05, 2005 5:58 pm    Post subject: Reply with quote

Yes, I updated them all. gcc seemed to be version 3.4, so I bit the bullet and did an emerge -e system. This then borked on compiling gcc 3.4.4, saying I need a working version of gcc or something.

I'm kind of at a loss right now. The system is working fine, but I can't seem to get it to upgrade properly and I don't therefore want to use it for anything critical. Should I give up with the Netwinder, or try again with another route?

Robert
_________________
If you dont ask, you wont get
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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