Subject: Re: compile error on NetBSD-current.
To: Mine Sakiyama <msakiyam@nortelnetworks.com>
From: David S. <davids@idiom.com>
List: netbsd-help
Date: 02/25/2002 18:25:21
> I am trying to compile NetBSD current (with GENERIC config file commented
> out ipv6 option). 
> Everything runs fine til it gets to  ./arch/i386/isa/npx.c and gives
> following error, this happens every time. I downloaded sources today from
> ftp and cvs, I was able to build kernel last week without error...
> What am I doing wrong? I have updated the congfig prior to the kernel build.
> 
> -D_KERNEL_OPT   -c ../../../../arch/i386/isa/npx.c
> /tmp/cccMViDZ.s: Assembler messages:
> /tmp/cccMViDZ.s:317: Error: no such 386 instruction: `fxsave'
> /tmp/cccMViDZ.s:412: Error: no such 386 instruction: `fxsave'
> /tmp/cccMViDZ.s:451: Error: no such 386 instruction: `fxrstor'
> /tmp/cccMViDZ.s:487: Error: no such 386 instruction: `fxsave'
> /tmp/cccMViDZ.s:571: Error: no such 386 instruction: `fxsave'
> *** Error code 1

RTFM /usr/src/UPDATING:

	20010803:
	        (i386 only): i386 kernel now uses new instructions like
	        `fxsave' which old gas doesn't understand.  To build the
	        kernel successfuly, 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).


David S.