Error BITBAKE

Alessandro GARDICH gremlin at gremlin.it
Mon Mar 31 15:31:13 UTC 2008


emanuele bottegoni wrote:
> After applying your advices it starts well.
> After half an hour an error is occurred, like the follow:
> What has been happened?
>
> NOTE: Applying patch 'uboot-mokoversion.patch'
> ERROR: Error in executing: 
> ERROR: Exception:<class 'CmdError'> Message:Command Error: exit status: 1
>  Output:
> Applying patch uboot-mokoversion.patch
> patching file tools/setlocalversion
> Hunk #1 FAILED at 20.
> 1 out of 1 hunk FAILED -- rejects in file tools/setlocalversion
> Patch uboot-mokoversion.patch does not apply (enforce with -f)
> ERROR: Printing the environment of the function
> ERROR: Error in executing: 
> ERROR: Exception:<class 'CmdError'> Message:Command Error: exit status: 1
>  Output:
> Applying patch uboot-mokoversion.patch
> patching file tools/setlocalversion
> Hunk #1 FAILED at 20.
> 1 out of 1 hunk FAILED -- rejects in file tools/setlocalversion
> Patch uboot-mokoversion.patch does not apply (enforce with -f)
> ERROR: Printing the environment of the function
> ERROR: Error in executing: 
> ERROR: Exception:<class 'CmdError'> Message:Command Error: exit status: 1
>  Output:
> Applying patch uboot-mokoversion.patch
> patching file tools/setlocalversion
> Hunk #1 FAILED at 20.
> 1 out of 1 hunk FAILED -- rejects in file tools/setlocalversion
> Patch uboot-mokoversion.patch does not apply (enforce with -f)
> ERROR: Printing the environment of the function
> ERROR: Build of
> /stuff/org.openembedded.dev/packages/uboot/u-boot-mkimage-gta01-native_oe.bb
> do_patch failed
> Traceback (most recent call last):
>   File "/stuff/bitbake/bin/bitbake", line 117, in <module>
>     main()
>   File "/stuff/bitbake/bin/bitbake", line 113, in main
>     cooker.cook()
>   File "/stuff/bitbake/lib/bb/cooker.py", line 526, in cook
>     return self.buildTargets(pkgs_to_build)
>   File "/stuff/bitbake/lib/bb/cooker.py", line 440, in buildTargets
>     failures = rq.execute_runqueue()
>   File "/stuff/bitbake/lib/bb/runqueue.py", line 383, in execute_runqueue
>     self.execute_runqueue_internal()
>   File "/stuff/bitbake/lib/bb/runqueue.py", line 499, in
> execute_runqueue_internal
>     self.cooker.tryBuild(fn, False)
>   File "/stuff/bitbake/lib/bb/cooker.py", line 112, in tryBuild
>     return self.tryBuildPackage(fn, item, self.configuration.cmd,
> the_data, build_depends)
>   File "/stuff/bitbake/lib/bb/cooker.py", line 85, in tryBuildPackage
>     bb.build.exec_task('do_%s' % task, the_data)
>   File "/stuff/bitbake/lib/bb/build.py", line 292, in exec_task
>     execute(None, task)
>   File "/stuff/bitbake/lib/bb/build.py", line 281, in execute
>     exec_func(item, localdata)
>   File "/stuff/bitbake/lib/bb/build.py", line 98, in exec_func
>     exec_func_python(func, d)
>   File "/stuff/bitbake/lib/bb/build.py", line 117, in exec_func_python
>     utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
>   File "/stuff/bitbake/lib/bb/utils.py", line 144, in better_exec
>     exec code in context
>   File "do_patch", line 4, in <module>
>   File "do_patch", line 2, in do_patch
>   File "/stuff/bitbake/lib/bb/build.py", line 98, in exec_func
>     exec_func_python(func, d)
>   File "/stuff/bitbake/lib/bb/build.py", line 117, in exec_func_python
>     utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
>   File "/stuff/bitbake/lib/bb/utils.py", line 144, in better_exec
>     exec code in context
>   File "base_do_patch", line 4, in <module>
>   File "base_do_patch", line 2, in base_do_patch
>   File "/stuff/bitbake/lib/bb/build.py", line 98, in exec_func
>     exec_func_python(func, d)
>   File "/stuff/bitbake/lib/bb/build.py", line 117, in exec_func_python
>     utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
>   File "/stuff/bitbake/lib/bb/utils.py", line 144, in better_exec
>     exec code in context
>   File "patch_do_patch", line 98, in <module>
>   File "patch_do_patch", line 96, in patch_do_patch
>   File "<bb>", line 338, in Resolve
> __builtin__.CmdError: Command Error: exit status: 1  Output:
> Applying patch uboot-mokoversion.patch
> patching file tools/setlocalversion
> Hunk #1 FAILED at 20.
> 1 out of 1 hunk FAILED -- rejects in file tools/setlocalversion
> Patch uboot-mokoversion.patch does not apply (enforce with -f)
> ERROR: Task 478
> (/stuff/org.openembedded.dev/packages/uboot/u-boot-mkimage-gta01-native_oe.bb,
> do_patch) failed
> NOTE: Tasks Summary: Attempted 244 tasks of which 0 didn't need to be
> rerun and 1 failed.
> ERROR:
> '/stuff/org.openembedded.dev/packages/uboot/u-boot-mkimage-gta01-native_oe.bb'
> failed
>
>
>
> _______________________________________________
> Openembedded-users mailing list
> Openembedded-users at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users
>   
As suggested before please read some documentation, about OE+Bitbake I 
strongly suggest to read the OpenEmbedded User Manual at 
http://www.openembedded.org/user-manual, you can download it via 
monotone and generate ps or pdf file for easy reading it.

Now, reading you dump is easy to understand that a patch don't apply.

If you are using the devel repository (org.openembedded.devel) isn't so 
strange, it's a continuously work in progress repository. If you need 
something more reliable use the org.openembedded.stable repository for 
metadata.

In any case, please report your issue on our bugzilla 
(http://bugs.openembedded.org/)


-- 
 /-------------------------------------------------------------\
|           Alessandro Gardich : gremlin at gremlin.it             |
 >-------------------------------------------------------------<
|  I never saw a wild thing sorry for itself.                   |
|  A small bird will drop frozen dead from a bough              |
|  without ever having felt sorry for itself.                   |
 \-------------------------------------------------------------/





More information about the Openembedded-users mailing list