From owner-freebsd-amd64@FreeBSD.ORG Sat Jul 21 18:36:55 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B099106566B for ; Sat, 21 Jul 2012 18:36:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 12D4F8FC16 for ; Sat, 21 Jul 2012 18:36:54 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q6LIb3sv031413; Sat, 21 Jul 2012 21:37:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q6LIaoJI040375; Sat, 21 Jul 2012 21:36:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q6LIaopN040374; Sat, 21 Jul 2012 21:36:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 21 Jul 2012 21:36:50 +0300 From: Konstantin Belousov To: Arvydas Sidorenko Message-ID: <20120721183650.GC2676@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jiG1sp+CfApzbQkA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-amd64@freebsd.org Subject: Re: no such instructions: xsave, xsetbv, xrstor X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 18:36:55 -0000 --jiG1sp+CfApzbQkA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 21, 2012 at 07:55:23PM +0200, Arvydas Sidorenko wrote: > This is the output I get when building 10-CURRENT from HEAD: > /usr/src/sys/amd64/amd64/cpu_switch.S: Assembler messages: > /usr/src/sys/amd64/amd64/cpu_switch.S:128: Error: no such instruction: > `xsave (%r8)' > /usr/src/sys/amd64/amd64/cpu_switch.S:504: Error: no such instruction: `x= setbv' > /usr/src/sys/amd64/amd64/cpu_switch.S:505: Error: no such instruction: > `xrstor (%rbx)' >=20 > $ uname -a > FreeBSD slacker 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 > 02:52:29 UTC 2012 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >=20 > The CPU capabilities should not impact the compilation, but here > they're anyways (E8600): > $ grep Features /var/run/dmesg.boot | grep -i xsave > Features2=3D0x408e3fd > Features2=3D0x408e3fd >=20 > Is it problem with assembler? Which on my system is: > $ as --version > GNU assembler (GNU Binutils) 2.22 > Copyright 2011 Free Software Foundation, Inc. > This program is free software; you may redistribute it under the terms of > the GNU General Public License version 3 or later. > This program has absolutely no warranty. > This assembler was configured for a target of `x86_64-portbld-freebsd9.0'. >=20 > And classic outdated GCC: > $ gcc --version > gcc (GCC) 4.2.1 20070831 patched [FreeBSD] >=20 > Any help is appreciated. You must follow the UPDATING guide on rebuilding the system, in particular, you shall use buildworld and buildkernel procedure. Assembler in HEAD was patched to support these instructions, and kernel now uses them instead of using manual assembly results. Host CPU features indeed have no relevance to your problem. --jiG1sp+CfApzbQkA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlAK9sIACgkQC3+MBN1Mb4hnnwCg9tpQ5AzZTt5ujTh/qQp+FbTi FI0An07amCReHACxey5aUS1ftJ992FSp =u9YM -----END PGP SIGNATURE----- --jiG1sp+CfApzbQkA--