Bug 14845

Summary: llvm non reproducible (host pygments and pyyaml leak in)
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Luca Ceresoli <luca.ceresoli>
Component: devtools / tool chainAssignee: Luca Ceresoli <luca.ceresoli>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 4.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Luca Ceresoli 2022-06-22 12:24:45 UTC
LLVM reproducible builds failed on opensuse154-ty-1:

https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/1043/steps/13/logs/stdio

The reason is the llvm CMake configuration detects the pygments and pyyaml modules installed on the host, and those are present on some workers, but not all.

Here is the code detecting these modules (thanks to Richard for finding it): https://github.com/llvm/llvm-project/blob/main/llvm/cmake/config-ix.cmake#L693

The result is a difference in the computed LLVM_HAVE_OPT_VIEWER_MODULES value: http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20220621-s2cncw_b/packages/diff-html/
Comment 2 Luca Ceresoli 2022-08-09 06:53:21 UTC
Applied to master, commit 78b6a08db4e8eb3b4e1d52fcdb39a5b3415f5a3f