View previous topic :: View next topic |
Author |
Message |
jadzy n00b
Joined: 30 Jul 2002 Posts: 3
|
Posted: Tue Jul 30, 2002 8:45 pm Post subject: gcc - gengenrtl bails out with illegal instruction error |
|
|
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 |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Tue Jul 30, 2002 9:12 pm Post subject: |
|
|
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 |
|
|
jadzy n00b
Joined: 30 Jul 2002 Posts: 3
|
Posted: Tue Jul 30, 2002 9:35 pm Post subject: |
|
|
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! |
|
Back to top |
|
|
jadzy n00b
Joined: 30 Jul 2002 Posts: 3
|
Posted: Tue Jul 30, 2002 10:59 pm Post subject: |
|
|
Thats got it sorted
Thanks for pointing out the semi obvious. |
|
Back to top |
|
|
|