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 E448C6A80 for ; Tue, 14 Oct 2014 10:16:10 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 14 Oct 2014 01:23:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="399876422" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by FMSMGA003.fm.intel.com with ESMTP; 14 Oct 2014 01:16:40 -0700 Received: from irsmsx105.ger.corp.intel.com (163.33.3.28) by IRSMSX104.ger.corp.intel.com (163.33.3.159) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 14 Oct 2014 09:22:56 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.21]) by IRSMSX105.ger.corp.intel.com ([169.254.7.174]) with mapi id 14.03.0195.001; Tue, 14 Oct 2014 09:22:56 +0100 From: "Gonzalez Monroy, Sergio" To: Matthew Hall , "dev@dpdk.org" Thread-Topic: [dpdk-dev] virtio UIO / PMD issues in default Ubuntu Cloud Images Thread-Index: AQHP53Td+NtqvTWK1ES/TLdRtDa90JwvEgcAgAArSiA= Date: Tue, 14 Oct 2014 08:22:56 +0000 Message-ID: <91383E96CE459D47BCE92EFBF5CE73B0C7E467@IRSMSX108.ger.corp.intel.com> References: <20141014054523.GA16919@mhcomputing.net> <20141014060353.GA17053@mhcomputing.net> <20141014063406.GA17242@mhcomputing.net> In-Reply-To: <20141014063406.GA17242@mhcomputing.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] virtio UIO / PMD issues in default Ubuntu Cloud Images 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, 14 Oct 2014 08:16:11 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Matthew Hall > Sent: Tuesday, October 14, 2014 7:34 AM > To: dev@dpdk.org > Subject: Re: [dpdk-dev] virtio UIO / PMD issues in default Ubuntu Cloud > Images >=20 >=20 >=20 > On Mon, Oct 13, 2014 at 11:03:53PM -0700, Matthew Hall wrote: > > Another weird issue... when I tried to compile a DPDK shared lib using > > clang I got this really, really weird error: > > > > /usr/bin/ld: test: hidden symbol `mknod' in > > /usr/lib/x86_64-linux-gnu/libc_nonshared.a(mknod.oS) is referenced by > > DSO > > /usr/bin/ld: final link failed: Bad value >=20 > Note: this specific error seems to be a bug in the behavior of DPDK > compilation when the following two options are enabled simultaneously: >=20 > CONFIG_RTE_BUILD_SHARED_LIB=3Dy > CONFIG_RTE_BUILD_COMBINE_LIBS=3Dy >=20 Hi Matthew, The problem as you point out is that the combined library is not being link= ed properly,=20 in this case we are not linking against libc when building the shared libra= ry. One way of fixing this issue is to use CC instead of LD to do the linking. I have submitted a patch that updates the lib building process which main p= urpose was to fix this issue but it seems that the removing of CONFIG_RTE_BUILD_COMBIN= E_LIBS took over its real purpose. Another fix that the patch fixes is linking against other external required= libs (ie. libm, librt, etc) when needed, so they would show on ldd if they are r= equired. Please have a look at http://dpdk.org/ml/archives/dev/2014-October/006453.h= tml. I would expect many of your issues to be fixed with that patch and would re= ally appreciate any feedback on it. Thanks, Sergio > I think this is a pretty serious problem for anybody that's packaging or > distributing a complete DPDK because compiling both the static and dynami= c > DPDK's at the same time as one another is going to fail with this weird e= rror. >=20 > Matthew.