Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrade lead to "illegal instructions".. now won't boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sven_sol
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2005
Posts: 120
Location: Royston, Herts. UK

PostPosted: Wed Aug 30, 2006 8:41 am    Post subject: Upgrade lead to "illegal instructions".. now won't Reply with quote

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)( :oops: ) 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
View user's profile Send private message
Lloeki
Guru
Guru


Joined: 14 Jun 2006
Posts: 437
Location: France

PostPosted: Fri Sep 01, 2006 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
sven_sol
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2005
Posts: 120
Location: Royston, Herts. UK

PostPosted: Fri Sep 01, 2006 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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