From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tyo202.gate.nec.co.jp (TYO202.gate.nec.co.jp [210.143.35.52]) by dpdk.org (Postfix) with ESMTP id 722647F00 for ; Wed, 17 Dec 2014 12:07:32 +0100 (CET) Received: from mailgate3.nec.co.jp ([10.7.69.193]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id sBHB7Q7s003392; Wed, 17 Dec 2014 20:07:26 +0900 (JST) Received: from mailsv.nec.co.jp (imss62.nec.co.jp [10.7.69.157]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP id sBHB7QG03570; Wed, 17 Dec 2014 20:07:26 +0900 (JST) Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id sBHB7QTH024249; Wed, 17 Dec 2014 20:07:26 +0900 (JST) Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.143] [10.38.151.143]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-720216; Wed, 17 Dec 2014 20:07:16 +0900 Received: from BPXM14GP.gisp.nec.co.jp ([169.254.1.73]) by BPXC15GP.gisp.nec.co.jp ([10.38.151.143]) with mapi id 14.03.0174.002; Wed, 17 Dec 2014 20:07:15 +0900 From: Hiroshi Shimamoto To: Bruce Richardson , Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH] mk: fix link to combined library Thread-Index: AQHQGYp0WLiLLz+VHES9HY/MsyPyuJyTASwAgAABkICAAACkgIAAmWkg Date: Wed, 17 Dec 2014 11:07:15 +0000 Message-ID: <7F861DC0615E0C47A872E6F3C5FCDDBD05DDFC13@BPXM14GP.gisp.nec.co.jp> References: <7F861DC0615E0C47A872E6F3C5FCDDBD05DD6DFE@BPXM14GP.gisp.nec.co.jp> <4299912.gJckj7WjkF@xps13> <20141217103815.GA9184@bricha3-MOBL3> <2481080.vLqlGC2Goh@xps13> <20141217104609.GC9184@bricha3-MOBL3> In-Reply-To: <20141217104609.GC9184@bricha3-MOBL3> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.205.5.123] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" , Hayato Momma Subject: Re: [dpdk-dev] [PATCH] mk: fix link to combined library 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: Wed, 17 Dec 2014 11:07:33 -0000 > Subject: Re: [dpdk-dev] [PATCH] mk: fix link to combined library >=20 > On Wed, Dec 17, 2014 at 11:43:51AM +0100, Thomas Monjalon wrote: > > 2014-12-17 10:38, Bruce Richardson: > > > On Wed, Dec 17, 2014 at 12:45:32AM +0100, Thomas Monjalon wrote: > > > > 2014-12-11 02:54, Hiroshi Shimamoto: > > > > > From: Hiroshi Shimamoto > > > > > > > > > > The application should be linked to the single combined library i= n the > > > > > condition that both of CONFIG_RTE_BUILD_COMBINE_LIB and > > > > > CONFIG_RTE_BUILD_SHARED_LIB are enabled. > > > > > > > > > > The current makefile generates an application that links to each = library. > > > > > This patch fixes to link the single library. > > > > > > > > > > Before > > > > > $ ldd x86_64-ivshmem-linuxapp-gcc/app/test > > > > > linux-vdso.so.1 =3D> (0x00007fff232a1000) > > > > > librte_distributor.so =3D> not found > > > > > librte_kni.so =3D> not found > > > > > librte_ivshmem.so =3D> not found > > > > > librte_pipeline.so =3D> not found > > > > > librte_table.so =3D> not found > > > > > librte_port.so =3D> not found > > > > > librte_timer.so =3D> not found > > > > > librte_hash.so =3D> not found > > > > > librte_lpm.so =3D> not found > > > > > librte_power.so =3D> not found > > > > > librte_acl.so =3D> not found > > > > > librte_meter.so =3D> not found > > > > > librte_sched.so =3D> not found > > > > > libm.so.6 =3D> /lib64/libm.so.6 (0x00007fc638020000) > > > > > librt.so.1 =3D> /lib64/librt.so.1 (0x00007fc637e18000) > > > > > librte_kvargs.so =3D> not found > > > > > librte_mbuf.so =3D> not found > > > > > librte_ip_frag.so =3D> not found > > > > > libethdev.so =3D> not found > > > > > librte_malloc.so =3D> not found > > > > > librte_mempool.so =3D> not found > > > > > librte_ring.so =3D> not found > > > > > librte_eal.so =3D> not found > > > > > librte_cmdline.so =3D> not found > > > > > librte_cfgfile.so =3D> not found > > > > > librte_pmd_bond.so =3D> not found > > > > > libgcc_s.so.1 =3D> /lib64/libgcc_s.so.1 (0x00007fc637bfe000) > > > > > libdl.so.2 =3D> /lib64/libdl.so.2 (0x00007fc6379fa000) > > > > > libintel_dpdk.so =3D> not found > > > > > libpthread.so.0 =3D> /lib64/libpthread.so.0 (0x00007fc6377dd000) > > > > > libc.so.6 =3D> /lib64/libc.so.6 (0x00007fc63741c000) > > > > > /lib64/ld-linux-x86-64.so.2 (0x00007fc638330000) > > > > > > > > > > After > > > > > $ ldd x86_64-ivshmem-linuxapp-gcc/app/test > > > > > linux-vdso.so.1 =3D> (0x00007fffb79fe000) > > > > > librt.so.1 =3D> /lib64/librt.so.1 (0x00007f0d8a971000) > > > > > libm.so.6 =3D> /lib64/libm.so.6 (0x00007f0d8a66f000) > > > > > libgcc_s.so.1 =3D> /lib64/libgcc_s.so.1 (0x00007f0d8a458000) > > > > > libdl.so.2 =3D> /lib64/libdl.so.2 (0x00007f0d8a254000) > > > > > libintel_dpdk.so =3D> not found > > > > > libpthread.so.0 =3D> /lib64/libpthread.so.0 (0x00007f0d8a037000) > > > > > libc.so.6 =3D> /lib64/libc.so.6 (0x00007f0d89c76000) > > > > > /lib64/ld-linux-x86-64.so.2 (0x00007f0d8ab82000) > > > > > > > > > > Signed-off-by: Hiroshi Shimamoto > > > > > Reviewed-by: Hayato Momma > > > > > > > > It is what I suggested to Sergio: > > > > http://dpdk.org/ml/archives/dev/2014-December/009116.html > > > > > > > > Acked-by: Thomas Monjalon > > > > > > > > Applied > > > > > > > > Thanks > > > > > > None of the example apps are compiling for me today, and git bisect i= ndicates that > > > this patch is the culprit. I'm investigating, but if flagging it here= in case > > > someone else finds a fix faster than I do. > > > > Yes, Marvin already sent a patch: >=20 > Yes, so I see, Sergio just pointed it out to me here too! I'll ack that o= ne > for you. >=20 > /Bruce >=20 > > http://dpdk.org/dev/patchwork/patch/2049/ > > > > > The error is due to the libraries being missing on the link command, = with the > > > out-of-the-box configuration i.e. individual static libs. > > > > Sorry, I forgot to test this basic case after applying the patch. I'm sorry too, I never checked examples and various configuration with this= patch. thanks, Hiroshi