| Submitter | Henning Heinold |
|---|---|
| Date | Dec. 4, 2011, 11:20 a.m. |
| Message ID | <20111204112019.GB4871@rhein.zuhause.netz> |
| Download | mbox | patch |
| Permalink | /patch/16153/ |
| State | Superseded |
| Headers | show |
Comments
On Sun, 2011-12-04 at 12:20 +0100, Henning Heinold wrote: > On Sat, Dec 03, 2011 at 09:03:46PM +0100, Ulf Samuelsson wrote: > > Have made some further tests with the same machine, but now running > > Ubuntu 11.04 x64 > > > > bitbake console-image > > > > PARALLEL_TASKS BB_NUMBER_TASKS BUILD TIME > > 2 2 > > 1:24:16 > > 4 4 > > 0:48:22 > > 6 6 > > 0:45:00 > > 24 24 > > C++ compiler fails with --sysroot problem > > after ~2200 out of 2400 tasks. > > > > > > > > BR > > Ulf > > Hi Ulf, > > can you try the attached patch if it solves the problem? Can someone please explain to me how this would fix the problem? If this were the issue shouldn't it either always work or always fail? I'm worried that even if this does "fix" the problem, there is a deeper issue lurking somewhere :( Cheers, Richard
On (04/12/11 11:35), Richard Purdie wrote: > On Sun, 2011-12-04 at 12:20 +0100, Henning Heinold wrote: > > On Sat, Dec 03, 2011 at 09:03:46PM +0100, Ulf Samuelsson wrote: > > > Have made some further tests with the same machine, but now running > > > Ubuntu 11.04 x64 > > > > > > bitbake console-image > > > > > > PARALLEL_TASKS BB_NUMBER_TASKS BUILD TIME > > > 2 2 > > > 1:24:16 > > > 4 4 > > > 0:48:22 > > > 6 6 > > > 0:45:00 > > > 24 24 > > > C++ compiler fails with --sysroot problem > > > after ~2200 out of 2400 tasks. > > > > > > > > > > > > BR > > > Ulf > > > > Hi Ulf, > > > > can you try the attached patch if it solves the problem? Does this really fix the problem. > > Can someone please explain to me how this would fix the problem? > > If this were the issue shouldn't it either always work or always fail? > > I'm worried that even if this does "fix" the problem, there is a deeper > issue lurking somewhere :( We use --with-local-prefix and then also --with-gxx-include-dir which points to /usr/include/c++ Now the documentation says that --with-gxx-include-dir is an absolute path but if sysroot gets prepended to it or not I am not clear yet if sysroot gets prepended to it then we should be in safe spot > > Cheers, > > Richard > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
On 2011-12-07 23:51, Khem Raj wrote: > On (04/12/11 11:35), Richard Purdie wrote: >> On Sun, 2011-12-04 at 12:20 +0100, Henning Heinold wrote: >>> On Sat, Dec 03, 2011 at 09:03:46PM +0100, Ulf Samuelsson wrote: >>>> Have made some further tests with the same machine, but now running >>>> Ubuntu 11.04 x64 >>>> >>>> bitbake console-image >>>> >>>> PARALLEL_TASKS BB_NUMBER_TASKS BUILD TIME >>>> 2 2 >>>> 1:24:16 >>>> 4 4 >>>> 0:48:22 >>>> 6 6 >>>> 0:45:00 >>>> 24 24 >>>> C++ compiler fails with --sysroot problem >>>> after ~2200 out of 2400 tasks. >>>> >>>> >>>> >>>> BR >>>> Ulf >>> Hi Ulf, >>> >>> can you try the attached patch if it solves the problem? > Does this really fix the problem. It apparently fixes the symptoms at least (but I didn't do many tests. On the other hand, the performance improvement seems minimal once your past 6-8, even on a hexa core machine. >> Can someone please explain to me how this would fix the problem? >> >> If this were the issue shouldn't it either always work or always fail? >> >> I'm worried that even if this does "fix" the problem, there is a deeper >> issue lurking somewhere :( > We use --with-local-prefix and then also --with-gxx-include-dir which > points to /usr/include/c++ > > Now the documentation says that --with-gxx-include-dir is an absolute > path but if sysroot gets prepended to it or not I am not clear yet > if sysroot gets prepended to it then we should be in safe spot > > >> Cheers, >> >> Richard >> >> >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Patch
From b96f4d6b73ff993910b635b9dca962fac8eeeb49 Mon Sep 17 00:00:00 2001 From: Henning Heinold <heinold@inf.fu-berlin.de> Date: Sun, 4 Dec 2011 12:17:15 +0100 Subject: [PATCH] gcc-cross: attempt fix default include path of c++ --- meta/recipes-devtools/gcc/gcc-configure-cross.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/meta/recipes-devtools/gcc/gcc-configure-cross.inc b/meta/recipes-devtools/gcc/gcc-configure-cross.inc index d2d9081..f42a6ee 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-cross.inc @@ -9,7 +9,7 @@ EXTRA_OECONF += " --enable-poison-system-directories \ INHIBIT_DEFAULT_DEPS = "1" -EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \ +EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET} \ --with-gxx-include-dir=${target_includedir}/c++ \ --with-sysroot=${STAGING_DIR_TARGET} \ --with-build-sysroot=${STAGING_DIR_TARGET}" -- 1.7.7.3