From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E77BB803D for ; Mon, 1 Dec 2014 10:51:28 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 01 Dec 2014 01:48:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,493,1413270000"; d="scan'208";a="646111260" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga002.jf.intel.com with ESMTP; 01 Dec 2014 01:51:27 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX153.ger.corp.intel.com ([163.33.192.75]) with mapi id 14.03.0195.001; Mon, 1 Dec 2014 09:51:26 +0000 From: "Gonzalez Monroy, Sergio" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH] mk: fix build 32bits shared libs on 64bits system Thread-Index: AQHP7hb7PfpMFw9cJkWLCsZpUJqbM5x2aVcAgARQ2NA= Date: Mon, 1 Dec 2014 09:51:25 +0000 Message-ID: <91383E96CE459D47BCE92EFBF5CE73B004EF72FD@IRSMSX108.ger.corp.intel.com> References: <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy@intel.com> <8053165.4G51We95Ac@xps13> In-Reply-To: <8053165.4G51We95Ac@xps13> 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 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] mk: fix build 32bits shared libs on 64bits system 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, 01 Dec 2014 09:51:29 -0000 > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Friday, November 28, 2014 3:49 PM >=20 > Hi Sergio, >=20 > 2014-10-22 17:36, Sergio Gonzalez Monroy: > > Incompatible libraries error when building shared libraries for 32bits > > on a 64bits system. > > Fix issue by passing CPU_CFLAGS to CC when LINK_USING_CC is enabled. >=20 > This issue looks really strange. If that's the only way to fix it, it wou= ld be > better to have a comment in the makefile and a detailed explanation in th= e > commit log. >=20 Hi Thomas, There may be a better way to deal with this, please feel free to suggest al= ternate method. We do specify -m32 or -m64 when building the DPDK. The issue is that we were not specifying -m32 when linking, therefore the w= rong libraries were being picked. At the time CPU_CFLAGS was only being set with -m32/-m64, reason why I used= such variable. Would it be better to create another var and pass it down? Thanks, Sergio > Thanks > -- > Thomas