* [PATCH] mk: fix build 32bits shared libs on 64bits system @ 2014-10-22 16:36 Sergio Gonzalez Monroy [not found] ` <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Sergio Gonzalez Monroy @ 2014-10-22 16:36 UTC (permalink / raw) To: dev-VfR2kkLFssw 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. Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- mk/rte.lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index f458258..d83e808 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -61,7 +61,7 @@ exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) ifeq ($(LINK_USING_CC),1) # Override the definition of LD here, since we're linking with CC -LD := $(CC) +LD := $(CC) $(CPU_CFLAGS) LD_MULDEFS := $(call linkerprefix,-z$(comma)muldefs) CPU_LDFLAGS := $(call linkerprefix,$(CPU_LDFLAGS)) endif -- 1.9.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
[parent not found: <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] mk: fix build 32bits shared libs on 64bits system [not found] ` <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2014-10-28 16:30 ` De Lara Guarch, Pablo 2014-11-28 15:48 ` Thomas Monjalon 2014-12-08 14:52 ` Neil Horman 2 siblings, 0 replies; 6+ messages in thread From: De Lara Guarch, Pablo @ 2014-10-28 16:30 UTC (permalink / raw) To: Gonzalez Monroy, Sergio, dev-VfR2kkLFssw@public.gmane.org > -----Original Message----- > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Sergio Gonzalez > Monroy > Sent: Wednesday, October 22, 2014 5:36 PM > To: dev-VfR2kkLFssw@public.gmane.org > Subject: [dpdk-dev] [PATCH] mk: fix build 32bits shared libs on 64bits system > > 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. > > Signed-off-by: Sergio Gonzalez Monroy > <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mk: fix build 32bits shared libs on 64bits system [not found] ` <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-10-28 16:30 ` De Lara Guarch, Pablo @ 2014-11-28 15:48 ` Thomas Monjalon 2014-12-01 9:51 ` Gonzalez Monroy, Sergio 2014-12-08 14:52 ` Neil Horman 2 siblings, 1 reply; 6+ messages in thread From: Thomas Monjalon @ 2014-11-28 15:48 UTC (permalink / raw) To: Sergio Gonzalez Monroy; +Cc: dev-VfR2kkLFssw Hi Sergio, 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. This issue looks really strange. If that's the only way to fix it, it would be better to have a comment in the makefile and a detailed explanation in the commit log. Thanks -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mk: fix build 32bits shared libs on 64bits system 2014-11-28 15:48 ` Thomas Monjalon @ 2014-12-01 9:51 ` Gonzalez Monroy, Sergio 0 siblings, 0 replies; 6+ messages in thread From: Gonzalez Monroy, Sergio @ 2014-12-01 9:51 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev-VfR2kkLFssw@public.gmane.org > From: Thomas Monjalon [mailto:thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org] > Sent: Friday, November 28, 2014 3:49 PM > > Hi Sergio, > > 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. > > This issue looks really strange. If that's the only way to fix it, it would be > better to have a comment in the makefile and a detailed explanation in the > commit log. > Hi Thomas, There may be a better way to deal with this, please feel free to suggest alternate method. We do specify -m32 or -m64 when building the DPDK. The issue is that we were not specifying -m32 when linking, therefore the wrong 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mk: fix build 32bits shared libs on 64bits system [not found] ` <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-10-28 16:30 ` De Lara Guarch, Pablo 2014-11-28 15:48 ` Thomas Monjalon @ 2014-12-08 14:52 ` Neil Horman [not found] ` <20141208145259.GF3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 2 siblings, 1 reply; 6+ messages in thread From: Neil Horman @ 2014-12-08 14:52 UTC (permalink / raw) To: Sergio Gonzalez Monroy; +Cc: dev-VfR2kkLFssw On Wed, Oct 22, 2014 at 05:36:22PM +0100, Sergio Gonzalez Monroy wrote: > 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. > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > --- > mk/rte.lib.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk > index f458258..d83e808 100644 > --- a/mk/rte.lib.mk > +++ b/mk/rte.lib.mk > @@ -61,7 +61,7 @@ exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) > > ifeq ($(LINK_USING_CC),1) > # Override the definition of LD here, since we're linking with CC > -LD := $(CC) > +LD := $(CC) $(CPU_CFLAGS) > LD_MULDEFS := $(call linkerprefix,-z$(comma)muldefs) > CPU_LDFLAGS := $(call linkerprefix,$(CPU_LDFLAGS)) > endif Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20141208145259.GF3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: mk: fix build 32bits shared libs on 64bits system [not found] ` <20141208145259.GF3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2014-12-11 0:49 ` Thomas Monjalon 0 siblings, 0 replies; 6+ messages in thread From: Thomas Monjalon @ 2014-12-11 0:49 UTC (permalink / raw) To: Sergio Gonzalez Monroy; +Cc: dev-VfR2kkLFssw > > 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. > > > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> Applied Thanks -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-12-11 0:49 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-22 16:36 [PATCH] mk: fix build 32bits shared libs on 64bits system Sergio Gonzalez Monroy [not found] ` <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-10-28 16:30 ` De Lara Guarch, Pablo 2014-11-28 15:48 ` Thomas Monjalon 2014-12-01 9:51 ` Gonzalez Monroy, Sergio 2014-12-08 14:52 ` Neil Horman [not found] ` <20141208145259.GF3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 2014-12-11 0:49 ` Thomas Monjalon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).