Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc - gengenrtl bails out with illegal instruction error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jadzy
n00b
n00b


Joined: 30 Jul 2002
Posts: 3

PostPosted: Tue Jul 30, 2002 8:45 pm    Post subject: gcc - gengenrtl bails out with illegal instruction error Reply with quote

While installing from the 1.2 stage 1 only boot cd, the compile of gcc bails out with an illegal instruction error while running

./gengenrtl tmp-genrtl.h tmp-genrtl.c
[s-genrtl] Illegal Instruction

Box i'm trying to install this on is a intel p1-233mmx. so pretty erm, bog standard ?

anyone got any suggestions ?
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Tue Jul 30, 2002 9:12 pm    Post subject: Reply with quote

Edit your /etc/make.conf file and change the following flags:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"

To:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
CHOST="i386-pc-linux-gnu"
CFLAGS="-mcpu=i386 -O3 -pipe"
CXXFLAGS="-mcpu=i386 -O3 -pipe"

The re-run the compile. This will disable any above 386 optimization that can actually cause your problem.

Erik
Back to top
View user's profile Send private message
jadzy
n00b
n00b


Joined: 30 Jul 2002
Posts: 3

PostPosted: Tue Jul 30, 2002 9:35 pm    Post subject: Reply with quote

All the those options were commented out, so it must be defaulting to one of them i guess?

Tried the i586 entries as the comment sounded promising for pentium (1) based boxes.

find out in a few hours if it manages to compile it all or not.

hope it does! :roll:
Back to top
View user's profile Send private message
jadzy
n00b
n00b


Joined: 30 Jul 2002
Posts: 3

PostPosted: Tue Jul 30, 2002 10:59 pm    Post subject: Reply with quote

Thats got it sorted :D

Thanks for pointing out the semi obvious.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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