All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] boost: fix re-execution of task
@ 2012-04-13 11:42 Venkata ramana gollamudi
  2012-04-13 18:04 ` Khem Raj
  2012-04-13 22:23 ` Saul Wold
  0 siblings, 2 replies; 5+ messages in thread
From: Venkata ramana gollamudi @ 2012-04-13 11:42 UTC (permalink / raw)
  To: 'openembedded-core@lists.openembedded.org'; +Cc: Sanil kumar

After building boost package, re-execution of boostconfig task followed by
re-execution of compile task is giving following error
"error: duplicate initialization of gcc with the following parameters" during compilation
It is because multiple entries of gcc are being added during boostconfig re-execution
there by failing the compilation.

The patch fixes adding multiple "Using gcc" entries into /tools/build/v2/user-config.jam

[Yocto #2194]

Signed-off-by: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com>
---
 meta/recipes-support/boost/boost.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index d70a7e2..c9306df 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -135,7 +135,11 @@ BJAM_OPTS    = '${BJAM_TOOLS} \
 do_boostconfig() {
 	cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp
 
-	echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
+	# D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.
+	if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam 
+	then
+		echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
+	fi	
 }
 
 addtask do_boostconfig after do_patch before do_configure
-- 
1.7.7




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] boost: fix re-execution of task
  2012-04-13 11:42 [PATCH] boost: fix re-execution of task Venkata ramana gollamudi
@ 2012-04-13 18:04 ` Khem Raj
  2012-04-13 22:23 ` Saul Wold
  1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2012-04-13 18:04 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Sanil kumar

On Fri, Apr 13, 2012 at 4:42 AM, Venkata ramana gollamudi
<ramana.gollamudi@huawei.com> wrote:
> +       # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.

same here.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] boost: fix re-execution of task
  2012-04-13 11:42 [PATCH] boost: fix re-execution of task Venkata ramana gollamudi
  2012-04-13 18:04 ` Khem Raj
@ 2012-04-13 22:23 ` Saul Wold
  2012-04-14  2:14   ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Saul Wold @ 2012-04-13 22:23 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Sanil kumar

On 04/13/2012 04:42 AM, Venkata ramana gollamudi wrote:
> After building boost package, re-execution of boostconfig task followed by
> re-execution of compile task is giving following error
> "error: duplicate initialization of gcc with the following parameters" during compilation
> It is because multiple entries of gcc are being added during boostconfig re-execution
> there by failing the compilation.
>
> The patch fixes adding multiple "Using gcc" entries into /tools/build/v2/user-config.jam
>
> [Yocto #2194]
>
> Signed-off-by: Venkata Ramana Gollamudi<ramana.gollamudi@huawei.com>
> ---
>   meta/recipes-support/boost/boost.inc |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
> index d70a7e2..c9306df 100644
> --- a/meta/recipes-support/boost/boost.inc
> +++ b/meta/recipes-support/boost/boost.inc
> @@ -135,7 +135,11 @@ BJAM_OPTS    = '${BJAM_TOOLS} \
>   do_boostconfig() {
>   	cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp
>
> -	echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>>  ${S}/tools/build/v2/user-config.jam
> +	# D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.
> +	if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam
> +	then
> +		echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>>  ${S}/tools/build/v2/user-config.jam
> +	fi	
>   }
>
>   addtask do_boostconfig after do_patch before do_configure

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] boost: fix re-execution of task
  2012-04-13 22:23 ` Saul Wold
@ 2012-04-14  2:14   ` Khem Raj
  2012-04-14  8:23     ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2012-04-14  2:14 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Sanil kumar

On Fri, Apr 13, 2012 at 3:23 PM, Saul Wold <sgw@linux.intel.com> wrote:
> On 04/13/2012 04:42 AM, Venkata ramana gollamudi wrote:
>>
>> After building boost package, re-execution of boostconfig task followed by
>> re-execution of compile task is giving following error
>> "error: duplicate initialization of gcc with the following parameters"
>> during compilation
>> It is because multiple entries of gcc are being added during boostconfig
>> re-execution
>> there by failing the compilation.
>>
>> The patch fixes adding multiple "Using gcc" entries into
>> /tools/build/v2/user-config.jam
>>
>> [Yocto #2194]
>>
>> Signed-off-by: Venkata Ramana Gollamudi<ramana.gollamudi@huawei.com>
>> ---
>>  meta/recipes-support/boost/boost.inc |    6 +++++-
>>  1 files changed, 5 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/recipes-support/boost/boost.inc
>> b/meta/recipes-support/boost/boost.inc
>> index d70a7e2..c9306df 100644
>> --- a/meta/recipes-support/boost/boost.inc
>> +++ b/meta/recipes-support/boost/boost.inc
>> @@ -135,7 +135,11 @@ BJAM_OPTS    = '${BJAM_TOOLS} \
>>  do_boostconfig() {
>>        cp -f boost/config/platform/linux.hpp
>> boost/config/platform/linux-gnueabi.hpp
>>
>> -       echo 'using gcc : 4.3.1 : ${CXX} : compileflags
>> -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>>
>>  ${S}/tools/build/v2/user-config.jam
>> +       # D2194:Fixing the failure of "error: duplicate initialization of
>> gcc with the following parameters" during compilation.
>> +       if ! grep -qe "^using gcc : 4.3.1"
>> ${S}/tools/build/v2/user-config.jam
>> +       then
>> +               echo 'using gcc : 4.3.1 : ${CXX} : compileflags
>> -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>>
>>  ${S}/tools/build/v2/user-config.jam
>> +       fi
>>  }
>>
>>  addtask do_boostconfig after do_patch before do_configure
>
>
> Merged into OE-Core

I had some feedback on this patch series. I wonder if it was so meaningless.

>
> Thanks
>        Sau!
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] boost: fix re-execution of task
  2012-04-14  2:14   ` Khem Raj
@ 2012-04-14  8:23     ` Richard Purdie
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2012-04-14  8:23 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Sanil kumar

On Fri, 2012-04-13 at 19:14 -0700, Khem Raj wrote:
> On Fri, Apr 13, 2012 at 3:23 PM, Saul Wold <sgw@linux.intel.com> wrote:
> > On 04/13/2012 04:42 AM, Venkata ramana gollamudi wrote:
> >>
> >> After building boost package, re-execution of boostconfig task followed by
> >> re-execution of compile task is giving following error
> >> "error: duplicate initialization of gcc with the following parameters"
> >> during compilation
> >> It is because multiple entries of gcc are being added during boostconfig
> >> re-execution
> >> there by failing the compilation.
> >>
> >> The patch fixes adding multiple "Using gcc" entries into
> >> /tools/build/v2/user-config.jam
> >>
> >> [Yocto #2194]
> >>
> >> Signed-off-by: Venkata Ramana Gollamudi<ramana.gollamudi@huawei.com>
> >> ---
> >>  meta/recipes-support/boost/boost.inc |    6 +++++-
> >>  1 files changed, 5 insertions(+), 1 deletions(-)
> >>
> >> diff --git a/meta/recipes-support/boost/boost.inc
> >> b/meta/recipes-support/boost/boost.inc
> >> index d70a7e2..c9306df 100644
> >> --- a/meta/recipes-support/boost/boost.inc
> >> +++ b/meta/recipes-support/boost/boost.inc
> >> @@ -135,7 +135,11 @@ BJAM_OPTS    = '${BJAM_TOOLS} \
> >>  do_boostconfig() {
> >>        cp -f boost/config/platform/linux.hpp
> >> boost/config/platform/linux-gnueabi.hpp
> >>
> >> -       echo 'using gcc : 4.3.1 : ${CXX} : compileflags
> >> -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>>
> >>  ${S}/tools/build/v2/user-config.jam
> >> +       # D2194:Fixing the failure of "error: duplicate initialization of
> >> gcc with the following parameters" during compilation.
> >> +       if ! grep -qe "^using gcc : 4.3.1"
> >> ${S}/tools/build/v2/user-config.jam
> >> +       then
> >> +               echo 'using gcc : 4.3.1 : ${CXX} : compileflags
> >> -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>>
> >>  ${S}/tools/build/v2/user-config.jam
> >> +       fi
> >>  }
> >>
> >>  addtask do_boostconfig after do_patch before do_configure
> >
> >
> > Merged into OE-Core
> 
> I had some feedback on this patch series. I wonder if it was so meaningless.

I'd taken it before your feedback, the merge email was just a bit
later :(.

I'm really struggling to get fixes into the tree yet keep things
building and stable for -rc4 at the moment. I've been disappointed with
the lack of testing some patches have had. I accelerated getting some
things in so that they could get good exposure on the autobuilder at
least.

FWIW, D2194 is referencing the Yocto bugzilla, not any other internal
defect tracking system. I'll take patches to improve comments but I
really want to get some of the rebuilding issues fixed for release as
people keep hitting them and they're a pain.

Cheers,

Richard






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-14  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13 11:42 [PATCH] boost: fix re-execution of task Venkata ramana gollamudi
2012-04-13 18:04 ` Khem Raj
2012-04-13 22:23 ` Saul Wold
2012-04-14  2:14   ` Khem Raj
2012-04-14  8:23     ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.