All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc-cross-initial patching fails
@ 2012-02-22 20:13 Andreas Müller
  2012-02-22 20:15 ` McClintock Matthew-B29882
  2012-02-22 20:56 ` Andreas Müller
  0 siblings, 2 replies; 16+ messages in thread
From: Andreas Müller @ 2012-02-22 20:13 UTC (permalink / raw)
  To: openembedded-devel

At build from scratch I get

ERROR: Command Error: exit status: 1  Output:
Applying patch gcc45-no-add-needed.patch
patching file gcc/config/alpha/elf.h
patching file gcc/config/ia64/linux.h
patching file gcc/config/linux.h
Hunk #1 succeeded at 89 (offset -12 lines).
patching file gcc/config/rs6000/sysv4.h
Hunk #1 FAILED at 908.
1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in:
/home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
ERROR: Task 2829
(/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
do_patch) failed with exit code '1'

git log does not help me much -  what goes wrong?

Andreas



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

* Re: gcc-cross-initial patching fails
  2012-02-22 20:13 gcc-cross-initial patching fails Andreas Müller
@ 2012-02-22 20:15 ` McClintock Matthew-B29882
  2012-02-22 21:18   ` Khem Raj
  2012-02-22 20:56 ` Andreas Müller
  1 sibling, 1 reply; 16+ messages in thread
From: McClintock Matthew-B29882 @ 2012-02-22 20:15 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Feb 22, 2012 at 2:13 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> At build from scratch I get
>
> ERROR: Command Error: exit status: 1  Output:
> Applying patch gcc45-no-add-needed.patch
> patching file gcc/config/alpha/elf.h
> patching file gcc/config/ia64/linux.h
> patching file gcc/config/linux.h
> Hunk #1 succeeded at 89 (offset -12 lines).
> patching file gcc/config/rs6000/sysv4.h
> Hunk #1 FAILED at 908.
> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
> ERROR: Function failed: patch_do_patch
> ERROR: Logfile of failure stored in:
> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
> ERROR: Task 2829
> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
> do_patch) failed with exit code '1'
>
> git log does not help me much -  what goes wrong?

Which actual patch is it failing on? Is there a conflict between
oe-core and meta-oe patch set against gcc?

-M



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

* Re: gcc-cross-initial patching fails
  2012-02-22 20:13 gcc-cross-initial patching fails Andreas Müller
  2012-02-22 20:15 ` McClintock Matthew-B29882
@ 2012-02-22 20:56 ` Andreas Müller
  2012-02-22 20:57   ` Andreas Müller
  1 sibling, 1 reply; 16+ messages in thread
From: Andreas Müller @ 2012-02-22 20:56 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Feb 22, 2012 at 9:13 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> At build from scratch I get
>
> ERROR: Command Error: exit status: 1  Output:
> Applying patch gcc45-no-add-needed.patch
> patching file gcc/config/alpha/elf.h
> patching file gcc/config/ia64/linux.h
> patching file gcc/config/linux.h
> Hunk #1 succeeded at 89 (offset -12 lines).
> patching file gcc/config/rs6000/sysv4.h
> Hunk #1 FAILED at 908.
> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
> ERROR: Function failed: patch_do_patch
> ERROR: Logfile of failure stored in:
> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
> ERROR: Task 2829
> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
> do_patch) failed with exit code '1'
>
> git log does not help me much -  what goes wrong?
>
After looking around a bit I think this one is better on oe-core list.
Maybe it is related to the last two patches:

commit 6546096d068b51cc9cf4557cdb35aee6f62838d5
Author: Lianhao Lu <lianhao.lu@intel.com>
Date:   Tue Feb 14 10:57:52 2012 +0800

    gcc: Excluding the DATE/SRCDATE from do_patch dependency.

    Corrected the error introduced by commit afb400e of dropping
    DATE/SRCDATE out of the vardepsexlude list of do_patch.

    Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>

diff --git a/meta/recipes-devtools/gcc/gcc-common.inc
b/meta/recipes-devtools/gcc/gcc-common.inc
index 57668f9..df6021a 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -109,4 +109,4 @@ do_headerfix[vardepvalue] = "PATH"
 # We need to ensure that for the shared work directory, the do_patch
singatures match
 # The real WORKDIR location isn't a dependency for the shared workdir.
 src_patches[vardepsexclude] = "WORKDIR"
-should_apply[vardepsexclude] = "PN"
+should_apply[vardepsexclude] += "PN"

commit afb400e9c3ddac604906bde44df5da29a6c134d9
Author: Lianhao Lu <lianhao.lu@intel.com>
Date:   Fri Feb 10 11:42:18 2012 +0800

    gcc: Ensure same sstate hashes for shared soruce directory

    Ensure do_patch have the same sstate hashes for nativesdk variants of
    gcc family recipes, since they share the same source directory.

    Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>

diff --git a/meta/recipes-devtools/gcc/gcc-common.inc
b/meta/recipes-devtools/gcc/gcc-common.inc
index e89a7c0..57668f9 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -109,3 +109,4 @@ do_headerfix[vardepvalue] = "PATH"
 # We need to ensure that for the shared work directory, the do_patch
singatures match
 # The real WORKDIR location isn't a dependency for the shared workdir.
 src_patches[vardepsexclude] = "WORKDIR"
+should_apply[vardepsexclude] = "PN"

Andreas



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

* Re: gcc-cross-initial patching fails
  2012-02-22 20:56 ` Andreas Müller
@ 2012-02-22 20:57   ` Andreas Müller
  0 siblings, 0 replies; 16+ messages in thread
From: Andreas Müller @ 2012-02-22 20:57 UTC (permalink / raw)
  To: openembedded-core

On Wed, Feb 22, 2012 at 9:56 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 22, 2012 at 9:13 PM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
>> At build from scratch I get
>>
>> ERROR: Command Error: exit status: 1  Output:
>> Applying patch gcc45-no-add-needed.patch
>> patching file gcc/config/alpha/elf.h
>> patching file gcc/config/ia64/linux.h
>> patching file gcc/config/linux.h
>> Hunk #1 succeeded at 89 (offset -12 lines).
>> patching file gcc/config/rs6000/sysv4.h
>> Hunk #1 FAILED at 908.
>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>> ERROR: Function failed: patch_do_patch
>> ERROR: Logfile of failure stored in:
>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>> ERROR: Task 2829
>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>> do_patch) failed with exit code '1'
>>
>> git log does not help me much -  what goes wrong?
>>
> After looking around a bit I think this one is better on oe-core list.
> Maybe it is related to the last two patches:
>
> commit 6546096d068b51cc9cf4557cdb35aee6f62838d5
> Author: Lianhao Lu <lianhao.lu@intel.com>
> Date:   Tue Feb 14 10:57:52 2012 +0800
>
>    gcc: Excluding the DATE/SRCDATE from do_patch dependency.
>
>    Corrected the error introduced by commit afb400e of dropping
>    DATE/SRCDATE out of the vardepsexlude list of do_patch.
>
>    Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
>
> diff --git a/meta/recipes-devtools/gcc/gcc-common.inc
> b/meta/recipes-devtools/gcc/gcc-common.inc
> index 57668f9..df6021a 100644
> --- a/meta/recipes-devtools/gcc/gcc-common.inc
> +++ b/meta/recipes-devtools/gcc/gcc-common.inc
> @@ -109,4 +109,4 @@ do_headerfix[vardepvalue] = "PATH"
>  # We need to ensure that for the shared work directory, the do_patch
> singatures match
>  # The real WORKDIR location isn't a dependency for the shared workdir.
>  src_patches[vardepsexclude] = "WORKDIR"
> -should_apply[vardepsexclude] = "PN"
> +should_apply[vardepsexclude] += "PN"
>
> commit afb400e9c3ddac604906bde44df5da29a6c134d9
> Author: Lianhao Lu <lianhao.lu@intel.com>
> Date:   Fri Feb 10 11:42:18 2012 +0800
>
>    gcc: Ensure same sstate hashes for shared soruce directory
>
>    Ensure do_patch have the same sstate hashes for nativesdk variants of
>    gcc family recipes, since they share the same source directory.
>
>    Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
>
> diff --git a/meta/recipes-devtools/gcc/gcc-common.inc
> b/meta/recipes-devtools/gcc/gcc-common.inc
> index e89a7c0..57668f9 100644
> --- a/meta/recipes-devtools/gcc/gcc-common.inc
> +++ b/meta/recipes-devtools/gcc/gcc-common.inc
> @@ -109,3 +109,4 @@ do_headerfix[vardepvalue] = "PATH"
>  # We need to ensure that for the shared work directory, the do_patch
> singatures match
>  # The real WORKDIR location isn't a dependency for the shared workdir.
>  src_patches[vardepsexclude] = "WORKDIR"
> +should_apply[vardepsexclude] = "PN"
>

AArgh wrong list - sorry

Andreas



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

* Re: gcc-cross-initial patching fails
  2012-02-22 20:15 ` McClintock Matthew-B29882
@ 2012-02-22 21:18   ` Khem Raj
  2012-02-22 21:31     ` Gary Thomas
  2012-02-22 21:39       ` Andreas Müller
  0 siblings, 2 replies; 16+ messages in thread
From: Khem Raj @ 2012-02-22 21:18 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
<B29882@freescale.com> wrote:
>> Applying patch gcc45-no-add-needed.patch
>> patching file gcc/config/alpha/elf.h
>> patching file gcc/config/ia64/linux.h
>> patching file gcc/config/linux.h
>> Hunk #1 succeeded at 89 (offset -12 lines).
>> patching file gcc/config/rs6000/sysv4.h
>> Hunk #1 FAILED at 908.
>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>> ERROR: Function failed: patch_do_patch
>> ERROR: Logfile of failure stored in:
>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>> ERROR: Task 2829
>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>> do_patch) failed with exit code '1'
>>
>> git log does not help me much -  what goes wrong?
>
> Which actual patch is it failing on? Is there a conflict between
> oe-core and meta-oe patch set against gcc?

gcc45-no-add-needed.patch is the patch in question. I dont see
anything wrong with it.
Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
gcc-cross-initial -cpatch ?



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

* Re: gcc-cross-initial patching fails
  2012-02-22 21:18   ` Khem Raj
@ 2012-02-22 21:31     ` Gary Thomas
  2012-02-22 21:39       ` Andreas Müller
  1 sibling, 0 replies; 16+ messages in thread
From: Gary Thomas @ 2012-02-22 21:31 UTC (permalink / raw)
  To: openembedded-devel

On 2012-02-22 14:18, Khem Raj wrote:
> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
> <B29882@freescale.com>  wrote:
>>> Applying patch gcc45-no-add-needed.patch
>>> patching file gcc/config/alpha/elf.h
>>> patching file gcc/config/ia64/linux.h
>>> patching file gcc/config/linux.h
>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>> patching file gcc/config/rs6000/sysv4.h
>>> Hunk #1 FAILED at 908.
>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>> ERROR: Function failed: patch_do_patch
>>> ERROR: Logfile of failure stored in:
>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>> ERROR: Task 2829
>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>> do_patch) failed with exit code '1'
>>>
>>> git log does not help me much -  what goes wrong?
>>
>> Which actual patch is it failing on? Is there a conflict between
>> oe-core and meta-oe patch set against gcc?
>
> gcc45-no-add-needed.patch is the patch in question. I dont see
> anything wrong with it.
> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
> gcc-cross-initial -cpatch ?

I saw this as well after updating today but not a totally clean build tree.
I'm building now totally from scratch (no build tree) and it seems
to no longer have the issue.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



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

* Re: [oe] gcc-cross-initial patching fails
  2012-02-22 21:18   ` Khem Raj
@ 2012-02-22 21:39       ` Andreas Müller
  2012-02-22 21:39       ` Andreas Müller
  1 sibling, 0 replies; 16+ messages in thread
From: Andreas Müller @ 2012-02-22 21:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-core

On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
> <B29882@freescale.com> wrote:
>>> Applying patch gcc45-no-add-needed.patch
>>> patching file gcc/config/alpha/elf.h
>>> patching file gcc/config/ia64/linux.h
>>> patching file gcc/config/linux.h
>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>> patching file gcc/config/rs6000/sysv4.h
>>> Hunk #1 FAILED at 908.
>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>> ERROR: Function failed: patch_do_patch
>>> ERROR: Logfile of failure stored in:
>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>> ERROR: Task 2829
>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>> do_patch) failed with exit code '1'
>>>
>>> git log does not help me much -  what goes wrong?
>>
>> Which actual patch is it failing on? Is there a conflict between
>> oe-core and meta-oe patch set against gcc?
>
> gcc45-no-add-needed.patch is the patch in question. I dont see
> anything wrong with it.
> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
> gcc-cross-initial -cpatch ?
>
FYI: I removed the line which came in by the commits I mentioned above

should_apply[vardepsexclude] += "PN"

in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc

and build from scratch works without issues.

Andreas



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

* Re: gcc-cross-initial patching fails
@ 2012-02-22 21:39       ` Andreas Müller
  0 siblings, 0 replies; 16+ messages in thread
From: Andreas Müller @ 2012-02-22 21:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-core

On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
> <B29882@freescale.com> wrote:
>>> Applying patch gcc45-no-add-needed.patch
>>> patching file gcc/config/alpha/elf.h
>>> patching file gcc/config/ia64/linux.h
>>> patching file gcc/config/linux.h
>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>> patching file gcc/config/rs6000/sysv4.h
>>> Hunk #1 FAILED at 908.
>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>> ERROR: Function failed: patch_do_patch
>>> ERROR: Logfile of failure stored in:
>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>> ERROR: Task 2829
>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>> do_patch) failed with exit code '1'
>>>
>>> git log does not help me much -  what goes wrong?
>>
>> Which actual patch is it failing on? Is there a conflict between
>> oe-core and meta-oe patch set against gcc?
>
> gcc45-no-add-needed.patch is the patch in question. I dont see
> anything wrong with it.
> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
> gcc-cross-initial -cpatch ?
>
FYI: I removed the line which came in by the commits I mentioned above

should_apply[vardepsexclude] += "PN"

in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc

and build from scratch works without issues.

Andreas



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

* Re: gcc-cross-initial patching fails
  2012-02-22 21:39       ` Andreas Müller
  (?)
@ 2012-02-23 10:11       ` Andreas Müller
  2012-02-23 17:50         ` Andreas Müller
  -1 siblings, 1 reply; 16+ messages in thread
From: Andreas Müller @ 2012-02-23 10:11 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Feb 22, 2012 at 10:39 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
>> <B29882@freescale.com> wrote:
>>>> Applying patch gcc45-no-add-needed.patch
>>>> patching file gcc/config/alpha/elf.h
>>>> patching file gcc/config/ia64/linux.h
>>>> patching file gcc/config/linux.h
>>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>>> patching file gcc/config/rs6000/sysv4.h
>>>> Hunk #1 FAILED at 908.
>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>>> ERROR: Function failed: patch_do_patch
>>>> ERROR: Logfile of failure stored in:
>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>>> ERROR: Task 2829
>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>>> do_patch) failed with exit code '1'
>>>>
>>>> git log does not help me much -  what goes wrong?
>>>
>>> Which actual patch is it failing on? Is there a conflict between
>>> oe-core and meta-oe patch set against gcc?
>>
>> gcc45-no-add-needed.patch is the patch in question. I dont see
>> anything wrong with it.
>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
>> gcc-cross-initial -cpatch ?
>>
> FYI: I removed the line which came in by the commits I mentioned above
>
> should_apply[vardepsexclude] += "PN"
>
> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
>
> and build from scratch works without issues.
>
Strange: On my other build machine the described error does not occur...

Andreas



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

* Re: gcc-cross-initial patching fails
  2012-02-23 10:11       ` Andreas Müller
@ 2012-02-23 17:50         ` Andreas Müller
  0 siblings, 0 replies; 16+ messages in thread
From: Andreas Müller @ 2012-02-23 17:50 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Feb 23, 2012 at 11:11 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 22, 2012 at 10:39 PM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
>> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
>>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
>>> <B29882@freescale.com> wrote:
>>>>> Applying patch gcc45-no-add-needed.patch
>>>>> patching file gcc/config/alpha/elf.h
>>>>> patching file gcc/config/ia64/linux.h
>>>>> patching file gcc/config/linux.h
>>>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>>>> patching file gcc/config/rs6000/sysv4.h
>>>>> Hunk #1 FAILED at 908.
>>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>>>> ERROR: Function failed: patch_do_patch
>>>>> ERROR: Logfile of failure stored in:
>>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>>>> ERROR: Task 2829
>>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>>>> do_patch) failed with exit code '1'
>>>>>
>>>>> git log does not help me much -  what goes wrong?
>>>>
>>>> Which actual patch is it failing on? Is there a conflict between
>>>> oe-core and meta-oe patch set against gcc?
>>>
>>> gcc45-no-add-needed.patch is the patch in question. I dont see
>>> anything wrong with it.
>>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
>>> gcc-cross-initial -cpatch ?
>>>
>> FYI: I removed the line which came in by the commits I mentioned above
>>
>> should_apply[vardepsexclude] += "PN"
>>
>> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
>>
>> and build from scratch works without issues.
>>
> Strange: On my other build machine the described error does not occur...
>
Sorry for the noise but now also this machine seems affected:

Applying patch gcc-4.5-linaro-r99502.patch
patching file gcc/combine.c
Hunk #1 succeeded at 2928 (offset -11 lines).
Hunk #2 FAILED at 2964.
1 out of 2 hunks FAILED -- rejects in file gcc/combine.c
patching file gcc/simplify-rtx.c
Hunk #1 succeeded at 2417 (offset 4 lines).
patching file gcc/testsuite/gcc.target/arm/unsigned-extend-1.c
patching file gcc/testsuite/gcc.target/arm/xor-and.c
Patch gcc-4.5-linaro-r99502.patch does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch

This time it could not be fixed by

should_apply[vardepsexclude] += "PN"

in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc

as mentioned above. Seems being sporadic issue only causing fallout on
my machines...

Andreas



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

* Re: [oe] gcc-cross-initial patching fails
  2012-02-22 21:39       ` Andreas Müller
@ 2012-02-23 19:18         ` Koen Kooi
  -1 siblings, 0 replies; 16+ messages in thread
From: Koen Kooi @ 2012-02-23 19:18 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: openembedded-devel


Op 22 feb. 2012, om 22:39 heeft Andreas Müller het volgende geschreven:

> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
>> <B29882@freescale.com> wrote:
>>>> Applying patch gcc45-no-add-needed.patch
>>>> patching file gcc/config/alpha/elf.h
>>>> patching file gcc/config/ia64/linux.h
>>>> patching file gcc/config/linux.h
>>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>>> patching file gcc/config/rs6000/sysv4.h
>>>> Hunk #1 FAILED at 908.
>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>>> ERROR: Function failed: patch_do_patch
>>>> ERROR: Logfile of failure stored in:
>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>>> ERROR: Task 2829
>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>>> do_patch) failed with exit code '1'
>>>> 
>>>> git log does not help me much -  what goes wrong?
>>> 
>>> Which actual patch is it failing on? Is there a conflict between
>>> oe-core and meta-oe patch set against gcc?
>> 
>> gcc45-no-add-needed.patch is the patch in question. I dont see
>> anything wrong with it.
>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
>> gcc-cross-initial -cpatch ?
>> 
> FYI: I removed the line which came in by the commits I mentioned above
> 
> should_apply[vardepsexclude] += "PN"
> 
> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
> 
> and build from scratch works without issues.

I received reports of the same problem and I handed your fix to them, I'm waiting to hear back.

regards,

Koen


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

* Re: [OE-core] gcc-cross-initial patching fails
@ 2012-02-23 19:18         ` Koen Kooi
  0 siblings, 0 replies; 16+ messages in thread
From: Koen Kooi @ 2012-02-23 19:18 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: openembedded-devel


Op 22 feb. 2012, om 22:39 heeft Andreas Müller het volgende geschreven:

> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
>> <B29882@freescale.com> wrote:
>>>> Applying patch gcc45-no-add-needed.patch
>>>> patching file gcc/config/alpha/elf.h
>>>> patching file gcc/config/ia64/linux.h
>>>> patching file gcc/config/linux.h
>>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>>> patching file gcc/config/rs6000/sysv4.h
>>>> Hunk #1 FAILED at 908.
>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>>> ERROR: Function failed: patch_do_patch
>>>> ERROR: Logfile of failure stored in:
>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>>> ERROR: Task 2829
>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>>> do_patch) failed with exit code '1'
>>>> 
>>>> git log does not help me much -  what goes wrong?
>>> 
>>> Which actual patch is it failing on? Is there a conflict between
>>> oe-core and meta-oe patch set against gcc?
>> 
>> gcc45-no-add-needed.patch is the patch in question. I dont see
>> anything wrong with it.
>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
>> gcc-cross-initial -cpatch ?
>> 
> FYI: I removed the line which came in by the commits I mentioned above
> 
> should_apply[vardepsexclude] += "PN"
> 
> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
> 
> and build from scratch works without issues.

I received reports of the same problem and I handed your fix to them, I'm waiting to hear back.

regards,

Koen


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

* Re: [oe] gcc-cross-initial patching fails
  2012-02-23 19:18         ` [OE-core] " Koen Kooi
  (?)
@ 2012-02-27 11:37         ` Andreas Müller
  2012-02-27 12:19           ` Richard Purdie
  -1 siblings, 1 reply; 16+ messages in thread
From: Andreas Müller @ 2012-02-27 11:37 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Feb 23, 2012 at 8:18 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> Op 22 feb. 2012, om 22:39 heeft Andreas Müller het volgende geschreven:
>
>> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
>>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
>>> <B29882@freescale.com> wrote:
>>>>> Applying patch gcc45-no-add-needed.patch
>>>>> patching file gcc/config/alpha/elf.h
>>>>> patching file gcc/config/ia64/linux.h
>>>>> patching file gcc/config/linux.h
>>>>> Hunk #1 succeeded at 89 (offset -12 lines).
>>>>> patching file gcc/config/rs6000/sysv4.h
>>>>> Hunk #1 FAILED at 908.
>>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>>>>> ERROR: Function failed: patch_do_patch
>>>>> ERROR: Logfile of failure stored in:
>>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>>>>> ERROR: Task 2829
>>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>>>>> do_patch) failed with exit code '1'
>>>>>
>>>>> git log does not help me much -  what goes wrong?
>>>>
>>>> Which actual patch is it failing on? Is there a conflict between
>>>> oe-core and meta-oe patch set against gcc?
>>>
>>> gcc45-no-add-needed.patch is the patch in question. I dont see
>>> anything wrong with it.
>>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
>>> gcc-cross-initial -cpatch ?
>>>
>> FYI: I removed the line which came in by the commits I mentioned above
>>
>> should_apply[vardepsexclude] += "PN"
>>
>> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
>>
>> and build from scratch works without issues.
>
> I received reports of the same problem and I handed your fix to them, I'm waiting to hear back.
>
Having some experience to this problem now, I have the feeling that
there is some race condition on patching. I think gcc-cross-initial /
gcc-cross-intermediate / gcc-runtime share same source directory -
correct me if I am wrong. In case all start patching about the same
time, the patches don't match for those being late. This theory is
encouraged by the fact that the following sequence helps when building
from scratch:

1. bitbake gcc-cross-initial
2. bitbake gcc-cross-intermediate
3. bitbake gcc-runtime
4. bitbake <my-image>

Cheers

Andreas



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

* Re: [oe] gcc-cross-initial patching fails
  2012-02-27 11:37         ` [oe] " Andreas Müller
@ 2012-02-27 12:19           ` Richard Purdie
  2012-02-27 13:31             ` Andreas Müller
  0 siblings, 1 reply; 16+ messages in thread
From: Richard Purdie @ 2012-02-27 12:19 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-02-27 at 12:37 +0100, Andreas Müller wrote:
> On Thu, Feb 23, 2012 at 8:18 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> >
> > Op 22 feb. 2012, om 22:39 heeft Andreas Müller het volgende geschreven:
> >
> >> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
> >>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
> >>> <B29882@freescale.com> wrote:
> >>>>> Applying patch gcc45-no-add-needed.patch
> >>>>> patching file gcc/config/alpha/elf.h
> >>>>> patching file gcc/config/ia64/linux.h
> >>>>> patching file gcc/config/linux.h
> >>>>> Hunk #1 succeeded at 89 (offset -12 lines).
> >>>>> patching file gcc/config/rs6000/sysv4.h
> >>>>> Hunk #1 FAILED at 908.
> >>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
> >>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
> >>>>> ERROR: Function failed: patch_do_patch
> >>>>> ERROR: Logfile of failure stored in:
> >>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
> >>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
> >>>>> ERROR: Task 2829
> >>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
> >>>>> do_patch) failed with exit code '1'
> >>>>>
> >>>>> git log does not help me much -  what goes wrong?
> >>>>
> >>>> Which actual patch is it failing on? Is there a conflict between
> >>>> oe-core and meta-oe patch set against gcc?
> >>>
> >>> gcc45-no-add-needed.patch is the patch in question. I dont see
> >>> anything wrong with it.
> >>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
> >>> gcc-cross-initial -cpatch ?
> >>>
> >> FYI: I removed the line which came in by the commits I mentioned above
> >>
> >> should_apply[vardepsexclude] += "PN"
> >>
> >> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
> >>
> >> and build from scratch works without issues.
> >
> > I received reports of the same problem and I handed your fix to them, I'm waiting to hear back.
> >
> Having some experience to this problem now, I have the feeling that
> there is some race condition on patching. I think gcc-cross-initial /
> gcc-cross-intermediate / gcc-runtime share same source directory -
> correct me if I am wrong. In case all start patching about the same
> time, the patches don't match for those being late. This theory is
> encouraged by the fact that the following sequence helps when building
> from scratch:
> 
> 1. bitbake gcc-cross-initial
> 2. bitbake gcc-cross-intermediate
> 3. bitbake gcc-runtime
> 4. bitbake <my-image>

Does gcc-4.5 have different patch sets for any of the above?

Its now being assumed there is one good patch set shared by all the
recipes (since we're sharing the source directory). If that were not the
case it would explain the issues some people are reporting...

Cheers,

Richard




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

* Re: [oe] gcc-cross-initial patching fails
  2012-02-27 12:19           ` Richard Purdie
@ 2012-02-27 13:31             ` Andreas Müller
  2012-02-27 17:09               ` Khem Raj
  0 siblings, 1 reply; 16+ messages in thread
From: Andreas Müller @ 2012-02-27 13:31 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Feb 27, 2012 at 1:19 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Mon, 2012-02-27 at 12:37 +0100, Andreas Müller wrote:
>> On Thu, Feb 23, 2012 at 8:18 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> >
>> > Op 22 feb. 2012, om 22:39 heeft Andreas Müller het volgende geschreven:
>> >
>> >> On Wed, Feb 22, 2012 at 10:18 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> >>> On Wed, Feb 22, 2012 at 12:15 PM, McClintock Matthew-B29882
>> >>> <B29882@freescale.com> wrote:
>> >>>>> Applying patch gcc45-no-add-needed.patch
>> >>>>> patching file gcc/config/alpha/elf.h
>> >>>>> patching file gcc/config/ia64/linux.h
>> >>>>> patching file gcc/config/linux.h
>> >>>>> Hunk #1 succeeded at 89 (offset -12 lines).
>> >>>>> patching file gcc/config/rs6000/sysv4.h
>> >>>>> Hunk #1 FAILED at 908.
>> >>>>> 1 out of 1 hunk FAILED -- rejects in file gcc/config/rs6000/sysv4.h
>> >>>>> Patch gcc45-no-add-needed.patch does not apply (enforce with -f)
>> >>>>> ERROR: Function failed: patch_do_patch
>> >>>>> ERROR: Logfile of failure stored in:
>> >>>>> /home/Superandy/tmp/oe-core-eglibc/work-shared/gcc-4.5-r45+svnr181733/temp/log.do_patch.5367
>> >>>>> NOTE: package gcc-cross-initial-4.5-r45+svnr181733: task do_patch: Failed
>> >>>>> ERROR: Task 2829
>> >>>>> (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/gcc/gcc-cross-initial_4.5.bb,
>> >>>>> do_patch) failed with exit code '1'
>> >>>>>
>> >>>>> git log does not help me much -  what goes wrong?
>> >>>>
>> >>>> Which actual patch is it failing on? Is there a conflict between
>> >>>> oe-core and meta-oe patch set against gcc?
>> >>>
>> >>> gcc45-no-add-needed.patch is the patch in question. I dont see
>> >>> anything wrong with it.
>> >>> Can you do bitbake -ccleanall gcc-cross-initial and redo bitbake
>> >>> gcc-cross-initial -cpatch ?
>> >>>
>> >> FYI: I removed the line which came in by the commits I mentioned above
>> >>
>> >> should_apply[vardepsexclude] += "PN"
>> >>
>> >> in openembedded-core/meta/recipes-devtools/gcc/gcc-common.inc
>> >>
>> >> and build from scratch works without issues.
>> >
>> > I received reports of the same problem and I handed your fix to them, I'm waiting to hear back.
>> >
>> Having some experience to this problem now, I have the feeling that
>> there is some race condition on patching. I think gcc-cross-initial /
>> gcc-cross-intermediate / gcc-runtime share same source directory -
>> correct me if I am wrong. In case all start patching about the same
>> time, the patches don't match for those being late. This theory is
>> encouraged by the fact that the following sequence helps when building
>> from scratch:
>>
>> 1. bitbake gcc-cross-initial
>> 2. bitbake gcc-cross-intermediate
>> 3. bitbake gcc-runtime
>> 4. bitbake <my-image>
>
> Does gcc-4.5 have different patch sets for any of the above?
>
> Its now being assumed there is one good patch set shared by all the
> recipes (since we're sharing the source directory). If that were not the
> case it would explain the issues some people are reporting...
>
meta-oe gcc-runtime_4.5 says:

SRC_URI_append = "file://fortran-cross-compile-hack.patch"

Is this a possible culprit?

Andreas



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

* Re: [oe] gcc-cross-initial patching fails
  2012-02-27 13:31             ` Andreas Müller
@ 2012-02-27 17:09               ` Khem Raj
  0 siblings, 0 replies; 16+ messages in thread
From: Khem Raj @ 2012-02-27 17:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Feb 27, 2012 at 5:31 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
>
>
> SRC_URI_append = "file://fortran-cross-compile-hack.patch"
>
> Is this a possible culprit?

it definitely should not be there. Move this patching of SRC_URI to
gcc-4.5.inc and test it out in your environment



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

end of thread, other threads:[~2012-02-27 17:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 20:13 gcc-cross-initial patching fails Andreas Müller
2012-02-22 20:15 ` McClintock Matthew-B29882
2012-02-22 21:18   ` Khem Raj
2012-02-22 21:31     ` Gary Thomas
2012-02-22 21:39     ` [oe] " Andreas Müller
2012-02-22 21:39       ` Andreas Müller
2012-02-23 10:11       ` Andreas Müller
2012-02-23 17:50         ` Andreas Müller
2012-02-23 19:18       ` [oe] " Koen Kooi
2012-02-23 19:18         ` [OE-core] " Koen Kooi
2012-02-27 11:37         ` [oe] " Andreas Müller
2012-02-27 12:19           ` Richard Purdie
2012-02-27 13:31             ` Andreas Müller
2012-02-27 17:09               ` Khem Raj
2012-02-22 20:56 ` Andreas Müller
2012-02-22 20:57   ` Andreas Müller

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.