[oe] OSError: [Errno 2] No such file or directory

Khem Raj raj.khem at gmail.com
Tue Jun 15 14:35:53 UTC 2010


On Mon, Jun 14, 2010 at 7:12 AM, nikunj badjatya
<nikunjbadjatya at gmail.com> wrote:
>  File "/home/nikunj/ope/bitbake/lib/bb/build.py", line 141, in
> exec_func_python
>    utils.better_exec(comp, g, tmp, bbfile)
>  File "/home/nikunj/ope/bitbake/lib/bb/utils.py", line 185, in better_exec
>    exec code in context
>  File "relocatable_binaries_preprocess", line 4, in <module>
>  File "relocatable_binaries_preprocess", line 2, in
> relocatable_binaries_preprocess
>  File "<bb>", line 7, in rpath_replace
>  File "<bb>", line 35, in process_dir
>  File "/opt/python2.6/lib/python2.6/subprocess.py", line 633, in __init__
>    errread, errwrite)
>  File "/opt/python2.6/lib/python2.6/subprocess.py", line 1139, in
> _execute_child
>    raise child_exception
> OSError: [Errno 2] No such file or directory
> ERROR: Task 100 (/home/nikunj/ope/openembedded/recipes/coreutils/
> coreutils-native_8.5.bb, do_populate_sysroot) failed
> NOTE: Tasks Summary: Attempted 20 tasks of which 0 didn't need to be rerun
> and 1 failed.
> ERROR: '/home/nikunj/ope/openembedded/recipes/coreutils/
> coreutils-native_8.5.bb' failed
>

It dies in process_dir while trying to do os.access I think. my guess
is that you are
passing it host paths like /usr/lib /lib etc which are under root
permissions and can
not be modified by normal user.

You have to debug it. uncomment the

#bb.note("Testing %s for relocatability" % fpath)

in classes/relocatable.bbclass line 28

and check what paths are passed to it when you do

bitbake -b coreutils-native_8.5.bb

-Khem




More information about the Openembedded-devel mailing list