From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pmatilai@redhat.com>
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
 by dpdk.org (Postfix) with ESMTP id 34C275958
 for <dev@dpdk.org>; Tue, 24 Nov 2015 16:22:40 +0100 (CET)
Received: from int-mx11.intmail.prod.int.phx2.redhat.com
 (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])
 by mx1.redhat.com (Postfix) with ESMTPS id 70D3CC10044B;
 Tue, 24 Nov 2015 15:22:39 +0000 (UTC)
Received: from sopuli.koti.laiskiainen.org (vpn1-4-117.ams2.redhat.com
 [10.36.4.117])
 by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 tAOFMbAF028839; Tue, 24 Nov 2015 10:22:38 -0500
To: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
References: <CAJSM8J2D_trMfzeSJAcuYD4sf-6GqdfhF-FdMOYV=0NFSGa0kQ@mail.gmail.com>
 <56546CAE.8050401@redhat.com> <56547837.5080803@intel.com>
From: Panu Matilainen <pmatilai@redhat.com>
Message-ID: <565480BD.7060305@redhat.com>
Date: Tue, 24 Nov 2015 17:22:37 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <56547837.5080803@intel.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Can't compile DPDK if both
 CONFIG_RTE_BUILD_COMBINE_LIBS and LIBRTE_PMD_XENVIRT are set to "yes"
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Nov 2015 15:22:40 -0000

On 11/24/2015 04:46 PM, Sergio Gonzalez Monroy wrote:
> On 24/11/2015 13:57, Panu Matilainen wrote:
>> On 11/23/2015 08:37 PM, Martinx - ジェームズ wrote:
>>> Hello!
>>>
>>> My name is Thiago, I'm trying to compile DPDK 2.0, 2.1 and/or 2.2-rc1,
>>> on Ubuntu with Xen support but, it does not build...
>>>
>>> Also, initially, I'm using DPDK sources from Ubuntu APT repository
>>> but, it is also reproducible using upstream DPDK tarball as well,
>>> explained as follows:
>>>
>>> Problem:
>>>
>>> * It is not possible to use the following DPDK options at the same time:
>>>
>>> CONFIG_RTE_BUILD_COMBINE_LIBS
>>> LIBRTE_PMD_XENVIRT
>>>
>>> Ubuntu DPDK .deb package uses CONFIG_RTE_BUILD_COMBINE_LIBS and,
>>> without it, it can't build its .deb binary package (step: "make -f
>>> debian/rules binary" doesn't work).
>>>
>>> So, if you have the above two options set to "yes", the following
>>> error appear while building DPDK:
>>>
>>> http://pastebin.com/xUsQPxh8
>>>
>> [...]
>>> Build error:
>>>
>>> http://pastebin.com/fuUkpF4w
>>>
>>> If you remove "CONFIG_RTE_BUILD_COMBINE_LIBS", then, you can build it
>>> with "LIBRTE_PMD_XENVIRT", and vice-versa. But, without
>>> "...COMBINE_LIBS", Ubuntu .deb package doesn't get builded.
>>>
>>> BTW, the option LIBRTE_XEN_DOM0 is fine when also enabling
>>> COMBINE_LIBS...
>>>
>>> Am I missing something? Is this by design or a DPDK bug?
>>
>> DPDK bug I would say. The combined library has been increasingly in
>> risk of collapsing under its own weight for some time now.
>>
>> A much better way of achieving the same is using a so called linker
>> script which is essentially just an ascii file listing all the
>> individual libraries which the linker handles behind the scenes.
>> FWIW, that's how the combined library is packaged on Fedora and RHEL
>> and consumers like OVS and pktgen never knew the difference.
>>
>> The linker script approach has been suggested before but somehow the
>> threads died without nothing actually happening. I'll revive the patch
>> and post here shortly. Unless Sergio (cc'd) who previously worked on
>> the patches has a newer version cooking silently?
>>
> I haven't worked on it since,  so you probably are in a better position
> to continue the work than me.

Ok, I suspected as much but thanks for confirming. I'll continue the 
work as time permits.

	- Panu -