From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 8781658CB for ; Tue, 10 Mar 2015 08:52:09 +0100 (CET) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2A7q8xF004153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 10 Mar 2015 03:52:08 -0400 Received: from localhost.localdomain (vpn1-7-174.ams2.redhat.com [10.36.7.174]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2A7q75s017860 for ; Tue, 10 Mar 2015 03:52:07 -0400 Message-ID: <54FEA2A7.90403@redhat.com> Date: Tue, 10 Mar 2015 09:52:07 +0200 From: Panu Matilainen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: dev@dpdk.org References: <533710CFB86FA344BFBF2D6802E60286CFDC65@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <533710CFB86FA344BFBF2D6802E60286CFDC65@SHSMSX101.ccr.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 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: Tue, 10 Mar 2015 07:52:09 -0000 On 03/10/2015 05:04 AM, Qiu, Michael wrote: > On 3/10/2015 12:44 AM, Kavanagh, Mark B wrote: >> Hi, >> >> Compilation of Open vSwitch fails when linked against current HEAD of DPDK (f2552cd5). >> >> 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="-march=native"). >> 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'. > > What's your gcc version? this should be an issue with old version gcc, > and I'm working on this to solve this issue now. If you want to solve > this you should upgrade gcc or include them manually, and remove header > x86intrin.h . At least gcc 4.8.2 (which is what RHEL-7 has) exhibits this, however gcc 4.9 and 5 "just work". The workaround I used was adding -msse4.1 to the OVS CFLAGS manually. - Panu -