View previous topic :: View next topic |
Author |
Message |
sven_sol Tux's lil' helper
Joined: 27 Apr 2005 Posts: 120 Location: Royston, Herts. UK
|
Posted: Wed Aug 30, 2006 8:41 am Post subject: Upgrade lead to "illegal instructions".. now won't |
|
|
well, thats not entirely true.. I can get to a login prompt but can't do much else.
I've upgrade my headless server recently and after a reboot I couldn't talk to it anymore. So booting it in my main pc found that there we loads of errors during the boot process. Something in the post-kernel scripts complained about /.tmp/ but keeps disappearing to quickly to read.
Realising I hadn't actully ran an etc-update on a fair few files (mainly boot, services files!)(looked like a baselayout upgrade I missed)( ) tried to update all in one go and just had screens of text saying illegal instruction...
Right.. do it manually then!
Code: | #> mv /etc/init.d/._cfg0000_bootmisc /etc/init.d/bootmisc
Illegal Instruction
#>
|
Oh.
Ok.. boot to live cd.. moved them all across manually, rebooted and it still hasn't worked.
Nothing has changed in the make.conf, still the same compiler and I'm not running ~x86, just the x86 packages, although saying that, I may have missed a library update if I missed those configs (only do updates once every couple of weeks)
Can anyone suggest anything, as to why it would say illegal instruction and how to go about fixing it?
Thanks everyone! _________________ Tua mater tam antiqua ut linguam latinam loquatur
Linux User: #405647 |
|
Back to top |
|
|
Lloeki Guru
Joined: 14 Jun 2006 Posts: 437 Location: France
|
Posted: Fri Sep 01, 2006 11:55 am Post subject: |
|
|
it might be a CFLAGS with -march not compliant with the machine you're running it with.
e.g your CFLAGS has -march=athlon-xp, which enables 3dnow & the likes, and you boot/chroot on a intel box, which obviously can't eat 3dnow instructions.
so:
- probably the server doesn't boot because you forgot to etc-update/dispatch-conf and init scripts are messed up, and it does so early enough not to enable network and remote access.
- you can't run most binaries from the server in your other machine via chroot because of wrong -march.
solution: do it manually but without chrooting, thus you don't use march-mismatched binaries, then try to boot&access your server. _________________ Moved to using Arch Linux
Life is meant to be lived, not given up...
HOLY COW I'M TOTALLY GOING SO FAST OH F*** |
|
Back to top |
|
|
sven_sol Tux's lil' helper
Joined: 27 Apr 2005 Posts: 120 Location: Royston, Herts. UK
|
Posted: Fri Sep 01, 2006 12:28 pm Post subject: |
|
|
Lloeki wrote: | it might be a CFLAGS with -march not compliant with the machine you're running it with.
e.g your CFLAGS has -march=athlon-xp, which enables 3dnow & the likes, and you boot/chroot on a intel box, which obviously can't eat 3dnow instructions.
so:
- probably the server doesn't boot because you forgot to etc-update/dispatch-conf and init scripts are messed up, and it does so early enough not to enable network and remote access.
- you can't run most binaries from the server in your other machine via chroot because of wrong -march.
solution: do it manually but without chrooting, thus you don't use march-mismatched binaries, then try to boot&access your server. |
My make.conf is
Code: | CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O2 -mtune=i686 -pipe"
USE="cgi php gd iconv -apache2 -apache -X -gnome -kde"
|
and thats fine for the processor according to gentoo-wiki. It should be ok for my P4 board and on another Athlon board I've been using for testing.
Originally, yes... I hadn't updated with etc-update, but now I've manually moved them across and it still didn't work. Odd thing is mv is working on my p4 board.. need to investigage more.. hopefully rebuilding some tool chains, but I can't because emerging isn't working. _________________ Tua mater tam antiqua ut linguam latinam loquatur
Linux User: #405647 |
|
Back to top |
|
|
|
|
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
|
|