0

我正在尝试通过 bitbake 构建uclibc架构arm7a,但我得到以下输出

user@ubuntu:~/stuff$ bitbake -b uclibc
ERROR: Unable to match uclibc (19 matches found):
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_git.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.30.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.30.2.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/bfin-uclibc_svn.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.31.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.30.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.29.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.30.2.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.31.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.29.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_git.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.28.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.30.1.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.30.3.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.28.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc++/uclibc++_git.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/elf2flt_svn.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc-initial_0.9.30.1.bb
ERROR:     /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.30.3.bb
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/user/stuff/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/home/user/stuff/bitbake/lib/bb/command.py", line 190, in buildFile
    command.cooker.buildFile(bfile, task)
  File "/home/user/stuff/bitbake/lib/bb/cooker.py", line 608, in buildFile
    buildfile = self.matchFile(fn)
  File "/home/user/stuff/bitbake/lib/bb/cooker.py", line 591, in matchFile
    raise MultipleMatches
MultipleMatches

我也在尝试建立一个特定的食谱(我做错了吗?)但我明白了

user@ubuntu:~/stuff$ bitbake -b /home/user/stuff/openembedded/recipes/uclibc/uclibc_0.9.31.bb 
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/user/stuff/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/home/user/stuff/bitbake/lib/bb/command.py", line 190, in buildFile
    command.cooker.buildFile(bfile, task)
  File "/home/user/stuff/bitbake/lib/bb/cooker.py", line 618, in buildFile
    self.status.add_from_recipeinfo(vfn, info)
  File "/home/user/stuff/bitbake/lib/bb/cache.py", line 583, in add_from_recipeinfo
    for provide in info.provides:
TypeError: 'NoneType' object is not iterable

谢谢

4

1 回答 1

0

我回答我自己的问题是因为我在搜索这个论点时发现的信息不足。我希望这不是不合适的。所以..

首先,bitbake应该在没有-b选项的情况下调用以计算包依赖关系

bitbake package

然后,无需uclibc直接构建,因为 bitbake 在必要时会自动构建它(因为您必须在bitbake没有-b选项的情况下使用)。此时它还没有完成,因为对于我的 Angstrom 发行版 (2010.x) 版本,uclibc 不是由 bitbake 构建的默认库,而是构建了 eglibc。所以你必须添加到你的stuff/build/conf/local.conf这一行:ANGSTROMLIBC = "uclibc",在这个常见问题解答中找到

最后,您可以在您的stuff/tmp/deploy/uclibc.

于 2012-05-21T20:58:36.410 回答