no such instructions: xsave, xsetbv, xrstor

mike andrews mikea at mikea.ath.cx
Thu Aug 2 01:35:29 UTC 2012


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:
> `xsetbv'
> /usr/src/sys/amd64/amd64/cpu_switch.S:505: Error: no such instruction:
> `xrstor (%rbx)'

Apologies for not replying into the thread, but I just subscribed and
don't have that luxury until some listmail arrives for this thread.

I'm getting the same problem doing a `make buildkernel KERNCONF=GENERIC`
on an amd64 system (Intel core i5 4-way):

: $ as --version
: GNU assembler 2.17.50 [FreeBSD] 2007-07-03
: Copyright 2007 Free Software Foundation, Inc.
: This program is free software; you may redistribute it under the terms of
: the GNU General Public License.  This program has absolutely no warranty.
: This assembler was configured for a target of `x86_64-unknown-freebsd'.
: $ gcc --version
: gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
: Copyright (C) 2007 Free Software Foundation, Inc.
: This is free software; see the source for copying conditions.  There is NO
: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
: 
: $ uname -a
: FreeBSD mikea.ath.cx 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Is the assembler somehow configured for the wrong target machine?

I did a cvsup this morning to pull me to the most recent source code
level, and still have the same problem.

Ideas? Questions? This appears a bit more pervasive than I had initially
thought, if this Joe User here (well, Joe Sysadmin) is getting caught by it. 

Thanks, and 73, de

-- 
Mike Andrews, W5EGO
mikea at mikea.ath.cx
Tired old sysadmin 


More information about the freebsd-amd64 mailing list