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

nikunj badjatya nikunjbadjatya at gmail.com
Thu Jun 17 12:39:45 UTC 2010


Khem,
I have uncommented the required line.
It gives me the following output.

*$ bitbake -b coreutils-native_8.5.bb 2>&1 | tee
../../daily-work/logs_17.06.10/coreutils-native.bb.log
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 1 of 17 (ID: 6,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_setscene)
sh: stage-manager-ipkg: command not found
NOTE: Running task 2 of 17 (ID: 5,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_fetch)
NOTE: Running task 3 of 17 (ID: 0,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_unpack)
NOTE: Unpacking ../../sources/coreutils-8.5.tar.gz to
tmp/work/i686-linux/coreutils-native-8.5-r0/
NOTE: Running task 4 of 17 (ID: 1,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_patch)
NOTE: Running task 5 of 17 (ID: 7,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_configure)
NOTE: Running task 6 of 17 (ID: 8,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_qa_configure)
NOTE: Gettext required but not in DEPENDS for file
/home/nikunj/ope/build/tmp/work/i686-linux/coreutils-native-8.5-r0/coreutils-8.5/
configure.ac.
Missing inherit gettext?
NOTE: Running task 7 of 17 (ID: 9,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_compile)
NOTE: Running task 8 of 17 (ID: 2,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_install)
NOTE: Running task 9 of 17 (ID: 12,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_package)
NOTE: Running task 10 of 17 (ID: 16,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_package_write_ipk)
NOTE: Running task 11 of 17 (ID: 11,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_package_write)
NOTE: Running task 12 of 17 (ID: 3,
/home/nikunj/ope/openembedded/recipes/coreutils/coreutils-native_8.5.bb,
do_populate_sysroot)
NOTE: Testing
/home/nikunj/ope/build/tmp/work/i686-linux/coreutils-native-8.5-r0/sysroot-destdir///home/nikunj/ope/build/tmp/sysroots/i686-linux/usr/bin/sleep
for relocatability
ERROR: Error in executing: /home/nikunj/ope/openembedded/recipes/coreutils/
coreutils-native_8.5.bb
ERROR: Exception:exceptions.OSError Message:[Errno 2] No such file or
directory
ERROR: Printing the environment of the function
ERROR: Error in executing: /home/nikunj/ope/openembedded/recipes/coreutils/
coreutils-native_8.5.bb
ERROR: Exception:exceptions.OSError Message:[Errno 2] No such file or
directory
ERROR: Printing the environment of the function
ERROR: Build of /home/nikunj/ope/openembedded/recipes/coreutils/
coreutils-native_8.5.bb do_populate_sysroot failed
Traceback (most recent call last):
  File "/home/nikunj/ope/bitbake/bin/bitbake", line 143, in ?
    main()
  File "/home/nikunj/ope/bitbake/bin/bitbake", line 140, in main
    cooker.cook()
  File "/home/nikunj/ope/bitbake/lib/bb/cooker.py", line 608, in cook
    if not self.buildFile(self.configuration.buildfile):
  File "/home/nikunj/ope/bitbake/lib/bb/cooker.py", line 510, in buildFile
    failures = rq.execute_runqueue()
  File "/home/nikunj/ope/bitbake/lib/bb/runqueue.py", line 841, in
execute_runqueue
    self.execute_runqueue_internal()
  File "/home/nikunj/ope/bitbake/lib/bb/runqueue.py", line 950, in
execute_runqueue_internal
    self.cooker.tryBuild(fn)
  File "/home/nikunj/ope/bitbake/lib/bb/cooker.py", line 136, in tryBuild
    return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data)
  File "/home/nikunj/ope/bitbake/lib/bb/cooker.py", line 110, in
tryBuildPackage
    bb.build.exec_task('do_%s' % task, the_data)
  File "/home/nikunj/ope/bitbake/lib/bb/build.py", line 283, in exec_task
    exec_func(task, localdata)
  File "/home/nikunj/ope/bitbake/lib/bb/build.py", line 120, in exec_func
    exec_func_python(func, d)
  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 "do_populate_sysroot", line 49, in ?
  File "do_populate_sysroot", line 42, in do_populate_sysroot
  File "/home/nikunj/ope/bitbake/lib/bb/build.py", line 120, in exec_func
    exec_func_python(func, d)
  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 ?
  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 "/usr/lib/python2.4/subprocess.py", line 550, in __init__
    errread, errwrite)
  File "/usr/lib/python2.4/subprocess.py", line 993, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
ERROR: Task 3 (/home/nikunj/ope/openembedded/recipes/coreutils/
coreutils-native_8.5.bb, do_populate_sysroot) failed
NOTE: Tasks Summary: Attempted 11 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
*

-------------------------------------------------------------
*$ rpm -qa \*gettext\**
gettext-0.14.6-4.el5


Kindly Kindly help.!

Thanks,
Nikunj



On Tue, Jun 15, 2010 at 8:05 PM, Khem Raj <raj.khem at gmail.com> wrote:

> 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
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list