gpt4 book ai didi

linux - 如何使用 bitbake 使用 uclibc 构建包 - Bitbake 在尝试构建 uclibc 时引发 MultipleMatches 异常

转载 作者:太空宇宙 更新时间:2023-11-04 04:24:04 24 4
gpt4 key购买 nike

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

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

谢谢

最佳答案

我回答我自己的问题,因为我发现搜索这个论点的信息缺乏。我希望这没有什么不妥当的。所以..

首先,应该在不使用 -b 选项的情况下调用 bitbake 来计算包依赖项

bitbake package

然后,无需直接构建 uclibc,因为 bitbake 会在必要时自动构建它(为此,您必须使用不带 -b 选项的 bitbake)。此时它还没有完成,因为对于我的 Angstrom 发行版(2010.x)版本,uclibc 不是 bitbake 构建的默认库,而是构建了eglibc。因此,您必须将这一行添加到您的 stuff/build/conf/local.conf 中:ANGSTROMLIBC = "uclibc",位于 this faq

最后,您可以在 stuff/tmp/deploy/uclibc 中找到所有 ipk 软件包和源代码。

关于linux - 如何使用 bitbake 使用 uclibc 构建包 - Bitbake 在尝试构建 uclibc 时引发 MultipleMatches 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10687750/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com