From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5268F13E.4020402@siemens.com> Date: Thu, 24 Oct 2013 11:06:54 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <5268DCEA.7000202@basystemes.fr> In-Reply-To: <5268DCEA.7000202@basystemes.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] xsave/xrstor compilation error List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jean-Baptiste Tredez , "xenomai@xenomai.org" On 2013-10-24 09:40, Jean-Baptiste Tredez wrote: > Hi, > > I tried to upgrade to xenomai 2.6.3 and compilation failed with : > > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h: Assembler messages: > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:305: Error: no > such instruction: `xrstor (%ebx)' > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:245: Error: no > such instruction: `xsave (%esi)' > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:305: Error: no > such instruction: `xrstor (%ecx)' > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:245: Error: no > such instruction: `xsave (%ecx)' > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:245: Error: no > such instruction: `xsave (%ecx)' > linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:245: Error: no > such instruction: `xsave (%ebx)' > > I am using kernel 2.6.38.8 with adeos-ipipe-2.6.38.8-x86-2.11-03.patch. > I used binutils-2.18.1 and gcc-4.3.2. > With a more recent toolchain, there is no compilation failure. > Is there a new minimal binutils/gcc version for xenomai 2.6.3 ? For x86, some binutils released about 5 years ago (2.20 should be fine, maybe even 2.19). Is upgrading the toolchain not feasible for you? We can, of course, replace the instructions with their obcodes (like the kernel does), just makes the code more ugly. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux