From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Horman Subject: Re: l3fwd error, port 0 is not present on the board Date: Wed, 31 Dec 2014 23:00:32 -0500 Message-ID: <20150101040032.GA11645@hmsreliant.think-freely.org> References: <20141229210210.GA31480@localhost.localdomain> <20141230212406.GB2187@localhost.localdomain> <20141231144859.GA6637@localhost.localdomain> <20150101033744.GA8149@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev-VfR2kkLFssw@public.gmane.org To: Lyn M Return-path: Content-Disposition: inline In-Reply-To: <20150101033744.GA8149-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Wed, Dec 31, 2014 at 10:37:45PM -0500, Neil Horman wrote: > On Wed, Dec 31, 2014 at 10:50:10AM -0600, Lyn M wrote: > > Neil, > > When I build DPDK 1.8.0 with the default value CONFIG_RTE_BUILD_COMBINE_LIBS=n, > > I am able to run the testpmd successfully. So, that does appear to be the > > culprit. > > The objdump -t output for testpmd (with COMBINE_LIBS=n and COMBINE_LIBS=y) > > files are here: > > https://www.dropbox.com/sh/6os9yfn22jjcnmy/AAAjEV3u06XQ1t3UXdWcgru0a?dl=0 > > > > Thanks, > > Lyn > > > I see the problem. none of the constructors are included in the l3fwd app. I > think you might need 174572477028b7f04700389e38f87d2ba01a0adc. Its also > possible something else has gone wrong withthe COMBINE_LIBS option. Try > building with the head of the tree, and if that doesn't fix it, we can start > debugging in earnest. > Neil Found the problem. Please try this patch diff --git a/mk/rte.app.mk b/mk/rte.app.mk index e1a0dbf..40afb2c 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -61,6 +61,10 @@ ifeq ($(NO_AUTOLIBS),) LDLIBS += --whole-archive +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y) +LDLIBS += -l$(RTE_LIBNAME) +endif + ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n) ifeq ($(CONFIG_RTE_LIBRTE_DISTRIBUTOR),y) @@ -251,10 +255,6 @@ build: _postbuild exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) -ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y) -LDLIBS += -l$(RTE_LIBNAME) -endif - ifeq ($(LINK_USING_CC),1) override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS)) O_TO_EXE = $(CC) $(CFLAGS) $(LDFLAGS_$(@)) \