Hi, On Tue, Oct 08, 2024 at 01:30:47AM -0700, Aleksandar Nikolic via lists.yoctoproject.org wrote: > On Tue, Oct 8, 2024 at 01:25 AM, Dmitry Baryshkov wrote: > > > > > Consider using shared SSTATE, it saves you from all the rebuilds, > > while keeping Yocto internals intact and sane. > > We are using sstate cache, but if I am not mistaken it can happen that even > though a package is in the sstate cache, there's a cache miss and the package > gets rebuilt - and this is exactly what some coworkers would like to avoid, > cause it means a different binary is on the target than the one previously > built and tested. That's why I posted another question here (maybe 2 weeks > ago) if there's a way to force Yocto to only use sstate-cache and fail if a > package needs to be rebuilt or to print a list of packages which were built > from source. But there's no an "easy" way to do it.
Why is one compilation of the released recipe different from another? Who maintains the toolchains and dependencies? Yocto is for building from sources. It doesn't really have ABI checks and layers which would easily enable to freeze an ABI and integrate binaries on top of that. Every rebuild can change the ABIs in significant ways. The approach in bitbake is to rebuild full dependency tree if something changes. Compilers, glibc etc get updated all the time and it's important to know if something fails to compile, also to make sure that needed features are enabled, correct compile flags applied etc. It is possible to integrate binaries into yocto builds but then it must be understood that there are no ABI compatibility checks. The binary may start failing at any time. The recompilations may be costly but that's how yocto is. sstate cache helps but doesn't take away the full tree rebuilds when something e.g. native recipe changes. IMO it is tricky to fight against this and it's better to accept it. If developers want stable ABIs and integrate binaries then other distros could be better but they come with different problems. Debian is hard to optimize for the full stack, e.g. distro and machine features. OBS may help building only subset of packages from scratch, but even there ABI checks may not exist and user need to rely on test automation to detect breakage. Yocto can build an SDK which can be used to generate 'golden' binaries but again compatibility of different SDK builds needs to be checked to know when binaries may start breaking. At various points ABIs change so much that all binarees need to be recompiled. Think of a security update which brings a new openssl version with incompatible ABI. Cheers, -Mikko
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63959): https://lists.yoctoproject.org/g/yocto/message/63959 Mute This Topic: https://lists.yoctoproject.org/mt/108862936/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-