From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: RTM instruction compile failure for XABORT when AVX is active Date: Sun, 28 Jun 2015 21:38:14 +0200 Message-ID: <39879033.dIVnPGkh8l@xps13> References: <1A87AD2E-38CD-4C61-A9FD-C52608FF9DAC@mhcomputing.net> <038E8439-A99C-40BB-9A77-B20024E4111F@mhcomputing.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Matthew Hall Return-path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 77284C5CC for ; Sun, 28 Jun 2015 21:39:24 +0200 (CEST) Received: by wicnd19 with SMTP id nd19so82324302wic.1 for ; Sun, 28 Jun 2015 12:39:24 -0700 (PDT) In-Reply-To: <038E8439-A99C-40BB-9A77-B20024E4111F@mhcomputing.net> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-06-28 10:59, Matthew Hall: > It would appear there is some bug in the new lock elision patches that is preventing it from compiling with clang. Any suggestions? It builds with clang. My suggestion is to add the patch author in recipient's list ;) > On Jun 28, 2015, at 10:16 AM, Matthew Hall wrote: > > > Hi all, > > > > I am getting a strange error compiling some RTM instructions when I upgraded my VM environment from VirtualBox 4 to VirtualBox 5 and AVX instructions from the host CPU became available. However when I am reading the opcode description for XABORT it supposedly allows an immediate operand for the argument so I can't understand why this code would not compile. Any advice? > > > > CC test_hash_scaling.o > > In file included from /vagrant/external/dpdk/app/test/test_hash_scaling.c:37: > > In file included from /vagrant/external/dpdk/build/include/rte_spinlock.h:42: > > /vagrant/external/dpdk/build/include/rte_rtm.h:56:15: error: invalid operand for inline asm constraint 'i' > > asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (status) : "memory"); > > > > Matthew. >