From owner-freebsd-amd64@FreeBSD.ORG Sat Jul 21 17:55:25 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 00CEB106566B for ; Sat, 21 Jul 2012 17:55:25 +0000 (UTC) (envelope-from asido4@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B414F8FC0A for ; Sat, 21 Jul 2012 17:55:24 +0000 (UTC) Received: by ggnm2 with SMTP id m2so5580196ggn.13 for ; Sat, 21 Jul 2012 10:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=pd+dRe38PTVupY3gxLrWK15IkVUS28c06u/Cb0i21uc=; b=H6b2Ye6Hj69jo5L+oHp9mHL2pDsotj7B3rhpnKnKDCYBZag184KuZ1P7qGgJx6bxNn LmjHsZ8MvzQ6vzAHO0qEFzK2UzQhafYsxnvLlB+XxCbxR0MnBtPkRxu37yvshwWwElS5 9b2Wsz9IPzpHfkna6g3F+9sk1Zko+rfq7srb7T/Yd8ChQzuTmlVxy3cDtRaQ6LPQKVZX A1Lwtwh19d07V199rpWWDZ2ki57CGi43sfPuI/G7vygV7m4bYjS//wPXwEPtkgnM8Kxg +do2ypMM68moWNF4mc4rSlvx0zf5I4iiIyb2sNMl92D3WL/0beyYoy+1sfwTSRvZyXQZ wGZA== MIME-Version: 1.0 Received: by 10.50.202.33 with SMTP id kf1mr1247201igc.69.1342893323551; Sat, 21 Jul 2012 10:55:23 -0700 (PDT) Received: by 10.64.106.202 with HTTP; Sat, 21 Jul 2012 10:55:23 -0700 (PDT) Date: Sat, 21 Jul 2012 19:55:23 +0200 Message-ID: From: Arvydas Sidorenko To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 17:55:25 -0000 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: `xsetbv' /usr/src/sys/amd64/amd64/cpu_switch.S:505: Error: no such instruction: `xrstor (%rbx)' $ 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 The CPU capabilities should not impact the compilation, but here they're anyways (E8600): $ grep Features /var/run/dmesg.boot | grep -i xsave Features2=0x408e3fd Features2=0x408e3fd 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'. And classic outdated GCC: $ gcc --version gcc (GCC) 4.2.1 20070831 patched [FreeBSD] Any help is appreciated.