Re: 2.0.25: Assembler: no "rdmsr"

Lindsay Haisley (fmouse@fmp.com)
Wed, 13 Nov 1996 02:36:09 -0600 (CST)


"Thus spake Herbert Rosmanith"
>
>
>
> make[1]: Entering directory `/root/linux/arch/i386/kernel'
> gcc -D__KERNEL__ -I/root/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2
> -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o time.o time.c
> {standard input}: Assembler messages:
> {standard input}:768: Error: no such 386 instruction: `rdmsr'
> {standard input}:770: Error: no such 386 instruction: `wrmsr'
> make[1]: *** [time.o] Error 1
> make[1]: Leaving directory `/root/linux/arch/i386/kernel'
> make: *** [linuxsubdirs] Error 2

Check to make sure you're using binutils 2.7.0.3 and gcc 2.7.2. Also, if
you've upgraded your binutils, make >SURE< you don't have duplicate sets of
binutils files (as, ar, gasp, c++filt, etc.) in /usr/bin and /usr/local/bin.
I had the same problem and this is what caused it. Even though your search
path gives precidence to /usr/local/bin and "as --version" shows version
2.7, the kernel makefile will locate a (possibly older) version of as in
/usr/bin.

There's no need to patch your kernel source, as this may cause problems with
later patches from Linus.

-- 
Lindsay Haisley          | "Everything works     |   PGP public key
FMP Computer Services    |       if you let it"  |   available via
fmouse@fmp.com           |    (The Roadie)       |   Internet finger
http://www.fmp.com       |                       |