<wojci>
I tried to generate my images with "-C rootfs" but /etc/buildinfo is not changed.
<wojci>
Any clues as how to get an updated /etc/buildinfo for each build? I need this for my CI system.,
Lihis has quit [Quit: Quitting]
brrm has joined #yocto
Lihis has joined #yocto
<brrm>
If I do not set `PV` in my recipe it is set according to the repice's file name? e.g. for my-app_1.2.3.bb, `PV = 1.2.3`?
rfuentess has joined #yocto
florian has joined #yocto
Daanct12 has quit [Ping timeout: 252 seconds]
ablu has quit [Ping timeout: 252 seconds]
ablu has joined #yocto
Daanct12 has joined #yocto
leon-anavi has joined #yocto
kanavin has quit [Remote host closed the connection]
<alcroito>
JPEW: good to know, thanks. I'm personally a spdx-python user, so i'm hoping that gets updated in the near future
kanavin has joined #yocto
ptsneves has joined #yocto
EduOter has joined #yocto
<mcfrisk>
sigh, running out of disk space with selftests, then also leaking qemu system and cooker processes. without killing those very odd results from testing..
<EduOter>
Hi everyone. It is my first time joining this channel. I was wondering if I could get some support from the Yocto community on a few technical questions. I am a Yocto-beginner user. Is this general chat the right place where to ask for questions?
<EduOter>
:]
<qschulz>
EduOter: yes, though this is a channel based on volunteering
<mcfrisk>
EduOter: yes, just post questions
vThor has quit [Remote host closed the connection]
EduOter has quit [Quit: Client closed]
vThor has joined #yocto
vThor has joined #yocto
EduOter has joined #yocto
mbulut has quit [Ping timeout: 252 seconds]
<EduOter>
qschulz and mcfrisk for your answers. I will try my best to ask a clear question, apologize in advance if I do not make it clear enough at first.
<EduOter>
I am using kirkstone as the POKY reference distribution. I am creating a recipe to generate a package containing a binary from my RUST project. My target architecture is an aarch64, and my build system architecture is x86_64. I am using as build dependencies: "DEPENDS = "cargo-cross-canadian-${TARGET_ARCH} rust-cross-canadian-${TARGET_ARCH}".
<EduOter>
Unfortunately, I am facing an issue where the my Yocto build is not succeeding at building the rust-cross-canadian-aarch64-1.50.0-r0 recipe, below you may find a bit of the error logs:
<EduOter>
rust-cross-canadian-aarch64-1.59.0-r0 do_package_qa: QA Issue: /opt/phytec-danux/4.0.13/sysroots/x86_64-phytecsdk-linux/usr/lib/aarch64-phytec-linux/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata contained in package rust-cross-canadian-rustlib-host-aarch64 requires libstdc++.so.6(GLIBCXX_3.4.30)(64bit), but no providers found in
<EduOter>
NOTE: recipe imx-boot-phytec-1.0-r0: task do_compile: Started
<EduOter>
ERROR: rust-cross-canadian-aarch64-1.59.0-r0 do_package_qa: QA Issue: /opt/phytec-danux/4.0.13/sysroots/x86_64-phytecsdk-linux/usr/lib/librustc_driver-92c76897ed912123.so contained in package rust-cross-canadian-aarch64 requires libstdc++.so.6(GLIBCXX_3.4.30)(64bit), but no providers found in RDEPENDS:rust-cross-canadian-aarch64? [file-rdeps]
<EduOter>
Could I get some guidelines on what should I proceed? I though that the rust-cross-canadian recipe is part of Poky<meta<recipes-devtools, and that Yocto build will handle building that recipe behind the scenes without extra configuration from the user (me in this case)?
ptsneves has quit [Remote host closed the connection]
<mcfrisk>
EduOter: first, start with master branch if you see issues with really old LTS or abandoned branches.
ptsneves1 has joined #yocto
<mcfrisk>
EduOter: then for the rust tooling, I would look at cargo.bbclass or rust.bbclass how to get the tooling into recipe workspace. that should be enough.
ptsneves1 is now known as ptsneves
<EduOter>
mcfrisk Thanks for the answer mcfrisk. To be sure I understood your suggestion. I should pull master branch from for POKY repository and attempt to build again? Would not that be too much difference if I am currently using "kirkstone"?
<mcfrisk>
EduOter: kirkstone is several years old and rust support has been developing fast so it is much better to use poky master branch. Then check the cargo.bbclass and rust.bbclass docs how to setup the recipe build environment. There should be good examples too
<EduOter>
@macfrisk Thanks for the answers mcfrisk. I want to update to the latest "scargath" distro reference but this is something it may cause some problems on other recipes... but it is in my roadmap to do it. I will read the cargo.bbclas and rust.bbclass docs. I think in my recipe, which DEPENDS on cargo-cross-canadian and rust-cross-canadian, I am only
<EduOter>
inheriting from cargo "inherit cargo". I will read more from the link you sent me.
<kanavin>
EduOter, cross-canadian recipes are intended for making SDKs, not for being used directly for cross-compiling
<kanavin>
EduOter, I'd suggest you look at existing example recipes using cargo/rust, e.g. rust-helloworld
<kanavin>
you can also build them with bitbake first and inspect logs and build directory to get a better feel of what happens and how pieces fit together.
<kanavin>
if your component is built with cargo, then you only need to inherit that class
<qschulz>
EduOter: what kanavin and mcfrisk said. You typically only need native versions of recipes when you need to run binaries on the host, even for generating binaries for the target. So likely something like cargo-native, rust-native would be better suited. And that should hopefully already be handled by some class, likely cargo.bbclass or something like that where some sane defaults are provided
<qschulz>
(including dependencies for using cargo))
* mcfrisk
wonders why .wks files are not in checksummed or checked for timestamp changes. image recipes lack SRC_URI but surely wks file changes should trigger image rebuilds somehow..
<EduOter>
kanavin and qschulz thanks a lot for your time and answer. I will go through them :-)
<qschulz>
mcfrisk: mmmmm, WKS_FILE_CHECKSUM?
<qschulz>
it seems like there's something in place
ptsneves has quit [Read error: Connection reset by peer]
ptsneves1 has joined #yocto
ptsneves1 is now known as ptsneves
savolla has quit [Quit: WeeChat 4.4.3]
savolla has joined #yocto
savolla has quit [Quit: WeeChat 4.4.3]
savolla has joined #yocto
florian has quit [Ping timeout: 246 seconds]
cyxae has joined #yocto
Daanct12 has joined #yocto
florian has joined #yocto
eduter has joined #yocto
tgamblin has quit [Remote host closed the connection]
tgamblin has joined #yocto
Daanct12 has quit [Quit: WeeChat 4.5.2]
wojci has quit [Ping timeout: 252 seconds]
grma has quit [Ping timeout: 252 seconds]
ptsneves has quit [Ping timeout: 276 seconds]
Knogle has joined #yocto
Knogle has quit [Ping timeout: 248 seconds]
wojci has joined #yocto
<rburton>
qschulz: BUILDROOT?!
bjoekel has joined #yocto
wojci has quit [Ping timeout: 252 seconds]
<qschulz>
rburton: don't know what you're talking about :))))
* qschulz
hides
* rburton
adds qschulz to ignorelist
goliath has quit [Quit: SIGSEGV]
<bjoekel>
Hey Folks,
<bjoekel>
I was trying to build an image on basis the `scarthgap` branch for an RPi cm4 on Debian 6.1.129-1 (2025-03-06) x86_64 GNU/Linux. Unfortunately after roughly 40% an error pops up at:
<bjoekel>
/home/stephan/yocto/poky/build/downloads/git2/github.com.raspberrypi.linux.git --progress failed with exit code 128, see logfile for output
<bjoekel>
ERROR: linux-raspberrypi-1_6.6.63+git-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-6.6.y;protocol=https')
<bjoekel>
ERROR: Logfile of failure stored in: /home/stephan/yocto/poky/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/temp/log.do_fetch.1291400
<bjoekel>
ERROR: Task (/home/stephan/yocto/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_6.6.bb:do_fetch) failed with exit code '1'
<bjoekel>
```
<bjoekel>
Searching for the repository alone results in success:
<bjoekel>
I really don't know, why bitbake can't fetch the repository, am I forgetting something here? This is my process:
<bjoekel>
bitbake core-image-minimal
<bjoekel>
```
<bjoekel>
This is my first build and I am really confused.
eduter55 has joined #yocto
eduter55 has quit [Client Quit]
mbulut has joined #yocto
eduter has quit [Ping timeout: 240 seconds]
enok has joined #yocto
<rburton>
if /home/stephan/yocto/poky/build/downloads/git2/github.com.raspberrypi.linux.git exists, cd into it and run git fetch
<rburton>
bjoekel: ^^^
<bjoekel>
will look into it... just a minute
<bjoekel>
I unfortunately cleaned up the directory so I need to start everything again
florian has quit [Quit: Ex-Chat]
mbulut_ has joined #yocto
alessio has quit [Quit: alessio]
druppy has joined #yocto
<bjoekel>
While running `bitbake` right now, there are a couple of warnings already which I don't really get, because if I try to access them from that very machine, they ARE available :/
<bjoekel>
```
<bjoekel>
WARNING: pkgconfig-native-0.29.2+git-r0 do_fetch: Failed to fetch URL git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master;protocol=https, attempting MIRRORS if available
<bjoekel>
WARNING: rpm-native-1_4.19.1.1-r0 do_fetch: Failed to fetch URL git://github.com/rpm-software-management/rpm;branch=rpm-4.19.x;protocol=https, attempting MIRRORS if available
<bjoekel>
WARNING: zstd-native-1.5.5-r0 do_fetch: Failed to fetch URL git://github.com/facebook/zstd.git;branch=release;protocol=https, attempting MIRRORS if available
<bjoekel>
I will now try to fetch it manually. Maybe there are just too many processes running on my machine that are trying to fetch. Wouldn't make sense to me, but what do I know.
<fray>
correct, and it's expected to last until next week (the gitlab.freedesktop.org migration)
<rburton>
bjoekel: github is somewhat notorious for killing connections if it thinks your DoSing. you might have more luck just doing a bitbake on just linux-raspberrypi
savolla has joined #yocto
starblue has quit [Ping timeout: 252 seconds]
<bjoekel>
The directory `poky/build/downloads/git2/github.com.raspberrypi.linux.git` doesn't exist yet. Can I create it manually by cloning it into that dir and then restarting bitbake?
<bjoekel>
I am running `bitbake linux-raspberrypi` now. The fetch process resums at the 25%.
<bjoekel>
How does it calculate the 25% if the directory doesn't exist?
<bjoekel>
It actually runs with 1.04 MiB/s now.
<bjoekel>
Now it crashed again :(
<bjoekel>
This is really frustrating.
<bjoekel>
Is there a possibility to manually select a mirror before running `bitbake`?
<rburton>
try cloning manually, you'll need --bare too
druppy has quit [Ping timeout: 244 seconds]
<bjoekel>
I am running `git clone --bare https://github.com/raspberrypi/linux.git --branch rpi-6.6.y github.com.raspberrypi.linux.git` now, from three different machines in different locations right now.
<bjoekel>
DE Frankfurt runs with 9.76 MiB/s
<bjoekel>
DE Falkenstein runs with 30.39 MiB/s
<bjoekel>
DE Bochum runs with 1.06 MiB/s
<bjoekel>
It looks like `bitbake` just terminated the process if it's running too long. Does that make sense?
<bjoekel>
Hope it finishes now on one of the machines. Maybe I'll just `scp` into the correct directory. It's seems just to fail due to speed.
<bjoekel>
Thanks for the help rburton!
<rburton>
you'll need to touch a .done file too, but you can see the pattern of the files that exist
florian has joined #yocto
<rburton>
bitbake won't terminate, no.
<bjoekel>
hm. wild.
<bjoekel>
Thanks for the advice with the `.done` file!
<bjoekel>
Saw them for all the other dependencies but probably would've forgotten it anyways :D
leon-anavi has quit [Remote host closed the connection]
frieder has quit [Remote host closed the connection]
ChristosG has joined #yocto
rfuentess has quit [Remote host closed the connection]
jmiehe has joined #yocto
jmiehe has quit [Client Quit]
mbulut_ has quit [Remote host closed the connection]
mbulut_ has joined #yocto
starblue has joined #yocto
ChristosG has quit [Quit: Client closed]
ChristosG has joined #yocto
alessio has joined #yocto
alessio has quit [Client Quit]
enok has quit [Quit: enok]
enok71 has joined #yocto
enok71 is now known as enok
ChristosG has quit [Quit: Client closed]
ChristosG has joined #yocto
ChristosG has quit [Quit: Client closed]
<bjoekel>
Okay, after it took me a long while to download everything by hand it finally compiled.
<bjoekel>
Now comes the most stupid question:
<bjoekel>
Which files do I have to copy now to an SD card for my RPi :D