Subject: Re: i386/isa/npx.c cannot be compiled
To: Katsuhisa ABE <katsuhisa.abe@nifty.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: current-users
Date: 04/11/2002 16:54:26
--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Thu, Apr 11, 2002 at 11:42:19PM +0900, Katsuhisa ABE wrote:
> I cannot complie current's GENERIC kernel with the following message,
> which sources are updated on about 11:00 (UTC) today (11th April)=20
> by "cvs update -d -P":
> ---------------------------------
> cc  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wpointer-arith -Wmissing=
-prototypes -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../=
../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_O=
PT   -c ../../../../arch/i386/isa/npx.c
> /tmp/ccsTc7FR.s: Assembler messages:
> /tmp/ccsTc7FR.s:331: Error: no such 386 instruction: `fxsave'
> /tmp/ccsTc7FR.s:425: Error: no such 386 instruction: `fxsave'
> /tmp/ccsTc7FR.s:464: Error: no such 386 instruction: `fxrstor'
> /tmp/ccsTc7FR.s:493: Error: no such 386 instruction: `fxsave'
> /tmp/ccsTc7FR.s:576: Error: no such 386 instruction: `fxsave'
> *** Error code 1
>=20
> Stop.
> --------------------------------
>=20
> My environment is NetBSD 1.5.3 (i386) and CPU is=20
> Intel Pentium III (Coppermine) (686-class), 701.62 MHz
>=20
> But When I uncomment "options I686_CPU" , it can be compiled.
>=20
> So would you give me any advice?=20

yes, read /usr/src/UPDATING.

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


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8taOiWc63C347cOIRArI8AKDGd2Rk7+RO9zoWd3DSwOFhRs9O7QCg3F7M
sOn/drlVylFqZCYUaSNiaLQ=
=5/kh
-----END PGP SIGNATURE-----

--NzB8fVQJ5HfG6fxh--