Bug 13925

Summary: lz4 reproducibility problem
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Alexander Kanavin <alex.kanavin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: alex.kanavin, meta.mr.watcher, meta.watcher
Version: 3.1   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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