From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E0A995A9C for ; Mon, 9 Mar 2015 18:52:10 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 09 Mar 2015 10:52:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,369,1422950400"; d="scan'208";a="464747411" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by FMSMGA003.fm.intel.com with ESMTP; 09 Mar 2015 10:45:28 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.247]) by IRSMSX152.ger.corp.intel.com ([169.254.6.205]) with mapi id 14.03.0195.001; Mon, 9 Mar 2015 17:51:24 +0000 From: "Mcnamara, John" To: "Kavanagh, Mark B" , "dev@dpdk.org" Thread-Topic: rte_memcpy.h: additional cflags required with OVS Thread-Index: AdBah3Gj040QJ0mYRHia+o7JqLV4XgACC7cA Date: Mon, 9 Mar 2015 17:51:23 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] rte_memcpy.h: additional cflags required with OVS X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 17:52:13 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Kavanagh, Mark B > Sent: Monday, March 9, 2015 4:44 PM > To: dev@dpdk.org > Subject: [dpdk-dev] rte_memcpy.h: additional cflags required with OVS >=20 > Compilation of Open vSwitch fails when linked against current HEAD of DPD= K > (f2552cd5). >=20 > The source of this issue appears to be commit ID 9144d6b: "eal/x86: > optimize memcpy for SSE and AVX", and can be resolved by passing an > additional argument to OVS when building same (CFLAGS=3D"-march=3Dnative"= ). > It seems that without this flag, OVS doesn't pick up one or more SSE > #defines in DPDK, and doesn't include a relevant intrinsic header > (emmintrin.h), leading to an 'implicit declaration' error for instrinsic > '_mm_storeu_si128'. >=20 > Has anyone else observed this behavior? Hi Mark, I can confirm that behavior and that it was introduced by the new optimized= memcpy. I'll look into how it might be mitigated, for Open VSwitch with DP= DK. In the meantime the following might work for OVS: $ ./configure CFLAGS=3D'-Wno-bad-function-cast -march=3Dnative' --with-= dpdk=3D$DPDK_BUILD $ make But I'll look into it in more detail and update. John --=20