Skip to contentSkip to conversation

How do you find a rev of OE that will build?

DISCUSSION Grant Edwards 2 participants 4 messages Dec 19, 2007 – Dec 21, 2007

lore
Share & tools
lore
#0 lore raw

How does one find a rev of OE that builds?

I've been following the GettingStarted page trying to build task-bask for about a week now, and I always hit errors due to failed patches. Here's the error du jour after doing a pull/update about a half hour ago:

[...]
NOTE: Running task 284 of 976 (ID: 650, /home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb, do_patch)
NOTE: package python-native-2.5.1: started
NOTE: package python-native-2.5.1-ml1: task do_patch: started
NOTE: Applying patch 'bindir-libdir.patch'
ERROR: Error in executing:
ERROR: Exception:__builtin__.CmdError Message:Command Error: exit status: 1 Output:
Applying patch bindir-libdir.patch
patching file Makefile.pre.in
Hunk #1 FAILED at 78.
1 out of 1 hunk FAILED -- rejects in file Makefile.pre.in
Patch bindir-libdir.patch can be reverse-applied
ERROR: Printing the environment of the function
ERROR: Error in executing:
ERROR: Exception:__builtin__.CmdError Message:Command Error: exit status: 1 Output:
Applying patch bindir-libdir.patch
patching file Makefile.pre.in
Hunk #1 FAILED at 78.
1 out of 1 hunk FAILED -- rejects in file Makefile.pre.in
Patch bindir-libdir.patch can be reverse-applied
ERROR: Printing the environment of the function
ERROR: Error in executing:
ERROR: Exception:__builtin__.CmdError Message:Command Error: exit status: 1 Output:
Applying patch bindir-libdir.patch
patching file Makefile.pre.in
Hunk #1 FAILED at 78.
1 out of 1 hunk FAILED -- rejects in file Makefile.pre.in
Patch bindir-libdir.patch can be reverse-applied
ERROR: Printing the environment of the function
ERROR: Build of /home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb do_patch failed Traceback (most recent call last):
File "/usr/bin/bitbake", line 134, in ?

    main()

File "/usr/bin/bitbake", line 131, in main
cooker.cook()
File "usr/lib/python2.4/site-packages/bb/cooker.py", line 552, in cook
File "usr/lib/python2.4/site-packages/bb/cooker.py", line 466, in buildTargets File "usr/lib/python2.4/site-packages/bb/runqueue.py", line 403, in execute_runqueue File "usr/lib/python2.4/site-packages/bb/runqueue.py", line 531, in execute_runqueue_internal File "usr/lib/python2.4/site-packages/bb/cooker.py", line 125, in tryBuild File "usr/lib/python2.4/site-packages/bb/cooker.py", line 98, in tryBuildPackage File "usr/lib/python2.4/site-packages/bb/build.py", line 292, in exec_task File "usr/lib/python2.4/site-packages/bb/build.py", line 281, in execute
File "usr/lib/python2.4/site-packages/bb/build.py", line 98, in exec_func
File "usr/lib/python2.4/site-packages/bb/build.py", line 117, in exec_func_python File "usr/lib/python2.4/site-packages/bb/utils.py", line 144, in better_exec File "do_patch", line 4, in ?
File "do_patch", line 2, in do_patch
File "usr/lib/python2.4/site-packages/bb/build.py", line 98, in exec_func
File "usr/lib/python2.4/site-packages/bb/build.py", line 117, in exec_func_python File "usr/lib/python2.4/site-packages/bb/utils.py", line 144, in better_exec File "base_do_patch", line 4, in ?
File "base_do_patch", line 2, in base_do_patch
File "usr/lib/python2.4/site-packages/bb/build.py", line 98, in exec_func
File "usr/lib/python2.4/site-packages/bb/build.py", line 117, in exec_func_python File "usr/lib/python2.4/site-packages/bb/utils.py", line 144, in better_exec File "patch_do_patch", line 100, in ?
File "patch_do_patch", line 98, in patch_do_patch
File "<bb>", line 339, in Resolve
__builtin__.CmdError: Command Error: exit status: 1 Output:
Applying patch bindir-libdir.patch
patching file Makefile.pre.in
Hunk #1 FAILED at 78.
1 out of 1 hunk FAILED -- rejects in file Makefile.pre.in
Patch bindir-libdir.patch can be reverse-applied

NOTE: Parsing finished. 4718 cached, 0 parsed, 218 skipped, 0 masked.
NOTE: build 200712181957: started

OE Build Configuration:

BB_VERSION     = "1.8.8"
OE_REVISION    = "6834c8854d34a28405ba69e170089d3a873e3d1a"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux"
MACHINE        = "collie"
DISTRO         = "angstrom"

DISTRO_VERSION = "2007.11RC1.2"
TARGET_FPU = "soft"

NOTE: Resolving missing task queue dependencies
NOTE: preferred version 2.5 of glibc not available (for item virtual/arm-angstrom-linux-libc-for-gcc)
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 284 of 976 (ID: 650, /home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb, do_patch)
ERROR: Task 650 (/home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb, do_patch) failed
NOTE: Tasks Summary: Attempted 283 tasks of which 283 didn't need to be rerun and 1 failed.
ERROR: '/home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb' failed

Signature · 2 lines
Grant Edwards
[email protected]
#1 lore raw
Quoted 5 lines · Grant Edwards

I've been following the GettingStarted page trying to build task-bask for about a week now, and I always hit errors due to failed patches. Here's the error du jour after doing a pull/update about a half hour ago:

Quoted 11 lines

[...]
NOTE: Running task 284 of 976 (ID: 650, /home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb, do_patch)
NOTE: package python-native-2.5.1: started
NOTE: package python-native-2.5.1-ml1: task do_patch: started
NOTE: Applying patch 'bindir-libdir.patch'
ERROR: Error in executing:
ERROR: Exception:__builtin__.CmdError Message:Command Error: exit status: 1 Output:
Applying patch bindir-libdir.patch
patching file Makefile.pre.in
Hunk #1 FAILED at 78.
1 out of 1 hunk FAILED -- rejects in file Makefile.pre.in

[...]

I updated today and tried again. No joy. python-native_2.5.1 still fails when applying patches with the same error.

Is there a way to tell bitbake to use an older version of the package -- presuming there are older versions that will build?

Are packages in the .dev branch normally unbuildable for extended periods of time? Should I not be trying to build using the .dev branch?

Signature · 3 lines
Grant Edwards                   grante             Yow! I smell a RANCID
                                  at               CORN DOG!
                               visi.com            
#2 lore raw

Hello Grant,

Quoted 23 lines · you
Quoted 5 lines · Grant Edwards

I've been following the GettingStarted page trying to build task-bask for about a week now, and I always hit errors due to failed patches. Here's the error du jour after doing a pull/update about a half hour ago:

Quoted 11 lines

[...]
NOTE: Running task 284 of 976 (ID: 650, /home/grante/quarq/oe/org.openembedded.dev/packages/python/python-native_2.5.1.bb, do_patch)
NOTE: package python-native-2.5.1: started
NOTE: package python-native-2.5.1-ml1: task do_patch: started
NOTE: Applying patch 'bindir-libdir.patch'
ERROR: Error in executing:
ERROR: Exception:__builtin__.CmdError Message:Command Error: exit status: 1 Output:
Applying patch bindir-libdir.patch
patching file Makefile.pre.in
Hunk #1 FAILED at 78.
1 out of 1 hunk FAILED -- rejects in file Makefile.pre.in

[...]

I updated today and tried again. No joy. python-native_2.5.1 still fails when applying patches with the same error.

Quoted 6 lines

Is there a way to tell bitbake to use an older version of the package -- presuming there are older versions that will build?

Are packages in the .dev branch normally unbuildable for extended periods of time? Should I not be trying to build using the .dev branch?

No, anything on critical path to build a common embedded system
image can't be broken and unnoticed for long. I rebuilt python-native for you:

NOTE: package python-native-2.5.1-ml1: task do_patch: started
NOTE: Applying patch 'bindir-libdir.patch'
NOTE: Applying patch 'cross-distutils.patch'
NOTE: Applying patch 'dont-modify-shebang-line.patch'
NOTE: Applying patch 'default-is-optimized.patch'
NOTE: package python-native-2.5.1-ml1: task do_patch: completed

Anyway, as you see, it's not some dark magic failing, but merely
a patch application. So, why don't you look closer and see what corrupts the data - your tar, a quilt built on your system, or your kernel? ;-) And the best place to continue this is the bugtracker.

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]
#3 lore raw
Quoted 11 lines · Paul Sokolovsky

No, anything on critical path to build a common embedded system
image can't be broken and unnoticed for long. I rebuilt python-native for you:

NOTE: package python-native-2.5.1-ml1: task do_patch: started
NOTE: Applying patch 'bindir-libdir.patch'
NOTE: Applying patch 'cross-distutils.patch'
NOTE: Applying patch 'dont-modify-shebang-line.patch'
NOTE: Applying patch 'default-is-optimized.patch'
NOTE: package python-native-2.5.1-ml1: task do_patch: completed

Quoted 4 lines

Anyway, as you see, it's not some dark magic failing, but merely a patch application. So, why don't you look closer and see what corrupts the data - your tar, a quilt built on your system, or your kernel? ;-)

OK. It just seems odd that 100+ other packages would build fine, but when one particular package fails it's not the package that's suspect but the tools that work fine for 100+ other OE packages and and entire Gentoo system build.

Quoted 1 line

And the best place to continue this is the bugtracker.

Thanks.

Signature · 4 lines
Grant Edwards                   grante             Yow!  Why is it that when
                                  at               you DIE, you can't take
                               visi.com            your HOME ENTERTAINMENT
                                                   CENTER with you??