Re: Reproducible builds not working with musl?

Alexander Kanavin

On Mon, 21 Nov 2022 at 15:31, Kenth Eriksson
<kenth.eriksson@...> wrote:

Having trouble with reproducible builds in yocto on dunfell release with musl as libc. E.g. I can see that the build path for musl crti assembler file is leaking through and becomes visible when I do strings on libraries and binaries.

$ strings /opt/infn-xr/1.0/sysroots/aarch64-xr-linux-musl/usr/lib64/.debug/ | grep crt[a-z]\.o

Is this a known issue? Yocto passes -fmacro-prefix-map and -fdebug-prefix-map as part of DEBUG_PREFIX_MAP to eliminate paths to WORKDIR. But it looks as that fails for the musl assembler file?
Testing reproducibility properly is a heavy exercise (you need to
build everything from scratch, then compare), and so we do it only for

There have been recent fixes and tests to check that host paths do not
leak into target files, but dunfell probably has neither the fix nor
the test.


Join to automatically receive all group messages.