Subject: RE: compile error on NetBSD-current.
To: 'netbsd-help@netbsd.org' <netbsd-help@netbsd.org>
From: Mine Sakiyama <msakiyam@nortelnetworks.com>
List: netbsd-help
Date: 02/27/2002 12:45:15
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1BFCF.A8D19ED0
Content-Type: text/plain;
	charset="ISO-8859-1"


Thanks for all the replies. I was trying to compile current kernel source
over 1.5.2. When I installed 1.5ZA, everything went smoothly. 

Mine


> 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.



------_=_NextPart_001_01C1BFCF.A8D19ED0
Content-Type: text/html;
	charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DISO-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.89">
<TITLE>RE: compile error on NetBSD-current.</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Thanks for all the replies. I was trying to compile =
current kernel source over 1.5.2. When I installed 1.5ZA, everything =
went smoothly. </FONT></P>

<P><FONT SIZE=3D2>Mine</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt; I am trying to compile NetBSD current (with =
GENERIC config file commented</FONT>
<BR><FONT SIZE=3D2>&gt; out ipv6 option). </FONT>
<BR><FONT SIZE=3D2>&gt; Everything runs fine til it gets to&nbsp; =
./arch/i386/isa/npx.c and gives</FONT>
<BR><FONT SIZE=3D2>&gt; following error, this happens every time. I =
downloaded sources today from</FONT>
<BR><FONT SIZE=3D2>&gt; ftp and cvs, I was able to build kernel last =
week without error...</FONT>
<BR><FONT SIZE=3D2>&gt; What am I doing wrong? I have updated the =
congfig prior to the kernel build.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -D_KERNEL_OPT&nbsp;&nbsp; -c =
../../../../arch/i386/isa/npx.c</FONT>
<BR><FONT SIZE=3D2>&gt; /tmp/cccMViDZ.s: Assembler messages:</FONT>
<BR><FONT SIZE=3D2>&gt; /tmp/cccMViDZ.s:317: Error: no such 386 =
instruction: `fxsave'</FONT>
<BR><FONT SIZE=3D2>&gt; /tmp/cccMViDZ.s:412: Error: no such 386 =
instruction: `fxsave'</FONT>
<BR><FONT SIZE=3D2>&gt; /tmp/cccMViDZ.s:451: Error: no such 386 =
instruction: `fxrstor'</FONT>
<BR><FONT SIZE=3D2>&gt; /tmp/cccMViDZ.s:487: Error: no such 386 =
instruction: `fxsave'</FONT>
<BR><FONT SIZE=3D2>&gt; /tmp/cccMViDZ.s:571: Error: no such 386 =
instruction: `fxsave'</FONT>
<BR><FONT SIZE=3D2>&gt; *** Error code 1</FONT>
</P>

<P><FONT SIZE=3D2>RTFM /usr/src/UPDATING:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>20010803:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (i386 only): i386 =
kernel now uses new instructions like</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `fxsave' which old =
gas doesn't understand.&nbsp; To build the</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kernel successfuly, =
you need to build and install new gas</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
(gnu/usr.bin/gas.new), or (temporarily) comment out</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;options =
I686_CPU&quot; from your kernel configuration until you</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rebuilt your =
userland (and got a new gas).</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>David S.</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C1BFCF.A8D19ED0--