gpt4 book ai didi

linux - 如何将 BitBake 配方指向本地文件/Yocto 构建无法获取 libtalloc 的源代码

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

我正在尝试使用控制台图像为 Raspberry Pi3 构建 Yocto,它给了我一些构建错误,大多数我已经能够解决

bitbake -c cleansstate libname
bitbake libname

但是,现在它到达了 libtalloc,它不能 do_fetch 源文件。

我转到源的 URL,我能够下载它试图获取的确切 tar.gz 存档。即 http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz

我什至将它放入/build/downloads 文件夹中。

但是当我尝试 bitbake 时,它​​总是给我同样的错误

有没有一种方法可以将构建过程配置为始终使用 http 或 wget 获取,似乎这些脚本都已损坏,因为它无法获取存在的文件。

谢谢,

这是完整的打印输出:

WARNING: libtalloc-2.1.8-r0 do_fetch: Failed to fetch URL http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz, attempting MIRRORS if available
ERROR: libtalloc-2.1.8-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ATqIt180d4"; export SSH_AUTH_SOCK="/run/user/1000/keyring-Ubo22d/ssh"; export PATH="/home/dmitry/rpi/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/bin/python-native:/home/dmitry/poky-morty/scripts:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/dmitry/rpi/build/tmp/sysroots/raspberrypi2/usr/bin/crossscripts:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/bin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/sbin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/bin:/home/dmitry/poky-morty/scripts:/home/dmitry/poky-morty/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/dmitry"; /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/dmitry/rpi/build/downloads 'http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz' --progress=dot -v failed with exit code 4, output:
--2017-01-24 12:35:19-- http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz
Resolving samba.org (samba.org)... 144.76.82.156, 2a01:4f8:192:486::443:2
Connecting to samba.org (samba.org)|144.76.82.156|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2017-01-24 12:35:20-- (try: 2) http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz
Connecting to samba.org (samba.org)|144.76.82.156|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Giving up.


ERROR: libtalloc-2.1.8-r0 do_fetch: Fetcher failure for URL: 'http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz'. Unable to fetch URL from any source.
ERROR: libtalloc-2.1.8-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/dmitry/rpi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/libtalloc/2.1.8-r0/temp/log.do_fetch.80102
ERROR: Task (/home/dmitry/poky-morty/meta-openembedded/meta-networking/recipes-support/libtalloc/libtalloc_2.1.8.bb:do_fetch) failed with exit code '1'

最佳答案

Is there a way I can configure the build process to always fetch with http or wget, it seems that the these scripts are all broken, because it cant fetch a file that exists.

脚本已经使用了 wget 和 http。它们也并没有真正损坏,维护 samba 下载服务器的人员在过去一周刚刚改变了几件事:我相信 libtalloc 食谱主要 SRC_URI 只需要更改为 https://download.samba.org/pub/talloc/talloc-${PV}.tar.gz(当前规范的 samba 下载服务器)。

如果确实如此,我相信 meta-oe 维护者会很感激补丁。

关于linux - 如何将 BitBake 配方指向本地文件/Yocto 构建无法获取 libtalloc 的源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41838772/

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