Subject: Re: Help for a newbie on -current
To: Carlos de Avelar Portela <caportel@terra.com.br>
From: Bang Jun-Young <junyoung@mogua.com>
List: current-users
Date: 03/03/2002 13:22:33
On Sun, Mar 03, 2002 at 12:18:04AM -0300, Carlos de Avelar Portela wrote:
> Hi all!
> 
> Well, I just get started to build the -current kernel after download of 
> the entire sources, and always got this error on npx:
> 
> cc  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wpointer-arith 
> -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Di386 -I. 
>   -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 
> -D_KERNEL -D_KERNEL_OPT   -c ../../../../arch/i386/isa/npx.c
> /tmp/cc5rNAyk.s: Assembler messages:
> /tmp/cc5rNAyk.s:317: Error: no such 386 instruction: `fxsave'
> /tmp/cc5rNAyk.s:412: Error: no such 386 instruction: `fxsave'
> /tmp/cc5rNAyk.s:451: Error: no such 386 instruction: `fxrstor'
> /tmp/cc5rNAyk.s:487: Error: no such 386 instruction: `fxsave'
> /tmp/cc5rNAyk.s:571: Error: no such 386 instruction: `fxsave'
> *** Error code 1
> 
> Stop.
> 
> I tried a generic and a customized kernel configuration, but got the 
> same error. Can somebody help me on this?

This is a known problem. What /usr/src/UPDATING is saying:

20010803:
	(i386 only): i386 kernel now uses new instructions like
        `fxsave' which old gas doesn't understand.  To build the
	kernel successfully, you need to build and install new gas
	(gnu/usr.bin/gas.new), or (temporarily) comment out
	"options I686_CPU" from your kernel configuration until you
	rebuilt your userland (and got a new gas).

Jun-Young

-- 
Bang Jun-Young <junyoung@mogua.com>