Bug 13925 - lz4 reproducibility problem
Summary: lz4 reproducibility problem
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.1
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-06-01 00:17 UTC by Richard Purdie
Modified: 2020-06-04 07:42 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2020-06-01 00:17:32 UTC
The lz4-staticdev package appears to have a reproducibility problem:

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20200601-zehtv2nq/packages/

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20200601-3fuztlc7/packages/

it could be a symbol ordering issue?
Comment 1 Alexander Kanavin 2020-06-01 04:05:31 UTC
lz4 is using shell wildcards to supply the list of .o files:

ifeq ($(BUILD_STATIC),yes)  # can be disabled on command line
        @echo compiling static library
        $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $^
        $(Q)$(AR) rcs $@ *.o
endif


I guess '*.o' is non-deterministic about the file order? I guess we can just disable the static lib, I'll send a patch.
Comment 2 Alexander Kanavin 2020-06-01 04:14:08 UTC
Patch: https://lists.openembedded.org/g/openembedded-core/message/139022