Subject: bug#35084: Mesa is not reproducible (tested on staging)

From: Maxim Cournoyer <[email-masked]>
Date: Tue, 02 Apr 2019 10:28:08 -0400

Hello,

Mesa doesn't build reproducibly. The diffoscope log is attached. Here's
an excerpt:

--8<---------------cut here---------------start------------->8---
│ │ ├── kms_swrast_dri.so
│ │ │ ├── /gnu/store/02iklp4swqs0ipxhg5x9b2shmj6b30h1-binutils-2.31.1/bin/readelf --wide --dynamic {}
│ │ │ │ @@ -21,19 +21,19 @@
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libelf.so.1]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libdrm_amdgpu.so.1]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libdrm_nouveau.so.2]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libglapi.so.0]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMX86Disassembler.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMX86CodeGen.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMX86Desc.so.7]
│ │ │ │ + 0x0000000000000001 (NEEDED)             Shared library: [libLLVMMCDisassembler.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMX86Info.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMMCJIT.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMExecutionEngine.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMRuntimeDyld.so.7]
│ │ │ │ - 0x0000000000000001 (NEEDED)             Shared library: [libLLVMMCDisassembler.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libLLVMMC.so.7]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
│ │ │ │   0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
│ │ │ │   0x000000000000000e (SONAME)             Library soname: [libgallium_dri.so]
│ │ │ ├── /gnu/store/02iklp4swqs0ipxhg5x9b2shmj6b30h1-binutils-2.31.1/bin/readelf --wide --decompress --hex-dump=.dynstr {}
│ │ │ │ @@ -662,42 +662,42 @@
│ │ │ │    0x00008340 70326600 73696e66 00636f73 66006472 p2f.sinf.cosf.dr
│ │ │ │    0x00008350 6d436f6d 6d616e64 52656164 00676e75 mCommandRead.gnu
│ │ │ │    0x00008360 5f646576 5f6d616a 6f720067 6e755f64 _dev_major.gnu_d
│ │ │ │    0x00008370 65765f6d 696e6f72 0070726f 6772616d ev_minor.program
│ │ │ │    0x00008380 5f696e76 6f636174 696f6e5f 73686f72 _invocation_shor
│ │ │ │    0x00008390 745f6e61 6d65006c 69626578 7061742e t_name.libexpat.
│ │ │ │    0x000083a0 736f2e31 006c6962 64726d2e 736f2e32 so.1.libdrm.so.2
│ │ │ │ -  0x000083b0 006c6962 4c4c564d 58383644 69736173 .libLLVMX86Disas
│ │ │ │ -  0x000083c0 73656d62 6c65722e 736f2e37 006c6962 sembler.so.7.lib
│ │ │ │ -  0x000083d0 4c4c564d 58383643 6f646547 656e2e73 LLVMX86CodeGen.s
│ │ │ │ -  0x000083e0 6f2e3700 6c69624c 4c564d58 38364465 o.7.libLLVMX86De
│ │ │ │ -  0x000083f0 73632e73 6f2e3700 6c69624c 4c564d58 sc.so.7.libLLVMX
│ │ │ │ -  0x00008400 3836496e 666f2e73 6f2e3700 6c69624c 86Info.so.7.libL
│ │ │ │ -  0x00008410 4c564d41 4d444750 55436f64 6547656e LVMAMDGPUCodeGen
│ │ │ │ -  0x00008420 2e736f2e 37006c69 624c4c56 4d414d44 .so.7.libLLVMAMD
│ │ │ │ -  0x00008430 47505541 736d5061 72736572 2e736f2e GPUAsmParser.so.
│ │ │ │ -  0x00008440 37006c69 624c4c56 4d414d44 47505544 7.libLLVMAMDGPUD
│ │ │ │ -  0x00008450 6573632e 736f2e37 006c6962 4c4c564d esc.so.7.libLLVM
│ │ │ │ -  0x00008460 414d4447 5055496e 666f2e73 6f2e3700 AMDGPUInfo.so.7.
│ │ │ │ -  0x00008470 6c69624c 4c564d69 706f2e73 6f2e3700 libLLVMipo.so.7.
│ │ │ │ -  0x00008480 6c69624c 4c564d53 63616c61 724f7074 libLLVMScalarOpt
│ │ │ │ -  0x00008490 732e736f 2e37006c 69624c4c 564d496e s.so.7.libLLVMIn
│ │ │ │ -  0x000084a0 7374436f 6d62696e 652e736f 2e37006c stCombine.so.7.l
│ │ │ │ -  0x000084b0 69624c4c 564d5472 616e7366 6f726d55 ibLLVMTransformU
│ │ │ │ -  0x000084c0 74696c73 2e736f2e 37006c69 624c4c56 tils.so.7.libLLV
│ │ │ │ -  0x000084d0 4d4d434a 49542e73 6f2e3700 6c69624c MMCJIT.so.7.libL
│ │ │ │ -  0x000084e0 4c564d45 78656375 74696f6e 456e6769 LVMExecutionEngi
│ │ │ │ -  0x000084f0 6e652e73 6f2e3700 6c69624c 4c564d54 ne.so.7.libLLVMT
│ │ │ │ -  0x00008500 61726765 742e736f 2e37006c 69624c4c arget.so.7.libLL
│ │ │ │ -  0x00008510 564d416e 616c7973 69732e73 6f2e3700 VMAnalysis.so.7.
│ │ │ │ -  0x00008520 6c69624c 4c564d52 756e7469 6d654479 libLLVMRuntimeDy
│ │ │ │ -  0x00008530 6c642e73 6f2e3700 6c69624c 4c564d43 ld.so.7.libLLVMC
│ │ │ │ -  0x00008540 6f72652e 736f2e37 006c6962 4c4c564d ore.so.7.libLLVM
│ │ │ │ -  0x00008550 4d434469 73617373 656d626c 65722e73 MCDisassembler.s
│ │ │ │ -  0x00008560 6f2e3700 6c69624c 4c564d4d 432e736f o.7.libLLVMMC.so
│ │ │ │ +  0x000083b0 006c6962 4c4c564d 414d4447 5055436f .libLLVMAMDGPUCo
│ │ │ │ +  0x000083c0 64654765 6e2e736f 2e37006c 69624c4c deGen.so.7.libLL
│ │ │ │ +  0x000083d0 564d414d 44475055 41736d50 61727365 VMAMDGPUAsmParse
│ │ │ │ +  0x000083e0 722e736f 2e37006c 69624c4c 564d414d r.so.7.libLLVMAM
│ │ │ │ +  0x000083f0 44475055 44657363 2e736f2e 37006c69 DGPUDesc.so.7.li
│ │ │ │ +  0x00008400 624c4c56 4d414d44 47505549 6e666f2e bLLVMAMDGPUInfo.
│ │ │ │ +  0x00008410 736f2e37 006c6962 4c4c564d 58383644 so.7.libLLVMX86D
│ │ │ │ +  0x00008420 69736173 73656d62 6c65722e 736f2e37 isassembler.so.7
│ │ │ │ +  0x00008430 006c6962 4c4c564d 58383643 6f646547 .libLLVMX86CodeG
│ │ │ │ +  0x00008440 656e2e73 6f2e3700 6c69624c 4c564d58 en.so.7.libLLVMX
│ │ │ │ +  0x00008450 38364465 73632e73 6f2e3700 6c69624c 86Desc.so.7.libL
│ │ │ │ +  0x00008460 4c564d4d 43446973 61737365 6d626c65 LVMMCDisassemble
│ │ │ │ +  0x00008470 722e736f 2e37006c 69624c4c 564d5838 r.so.7.libLLVMX8
│ │ │ │ +  0x00008480 36496e66 6f2e736f 2e37006c 69624c4c 6Info.so.7.libLL
│ │ │ │ +  0x00008490 564d6970 6f2e736f 2e37006c 69624c4c VMipo.so.7.libLL
│ │ │ │ +  0x000084a0 564d5363 616c6172 4f707473 2e736f2e VMScalarOpts.so.
│ │ │ │ +  0x000084b0 37006c69 624c4c56 4d496e73 74436f6d 7.libLLVMInstCom
│ │ │ │ +  0x000084c0 62696e65 2e736f2e 37006c69 624c4c56 bine.so.7.libLLV
│ │ │ │ +  0x000084d0 4d547261 6e73666f 726d5574 696c732e MTransformUtils.
│ │ │ │ +  0x000084e0 736f2e37 006c6962 4c4c564d 4d434a49 so.7.libLLVMMCJI
│ │ │ │ +  0x000084f0 542e736f 2e37006c 69624c4c 564d4578 T.so.7.libLLVMEx
│ │ │ │ +  0x00008500 65637574 696f6e45 6e67696e 652e736f ecutionEngine.so
│ │ │ │ +  0x00008510 2e37006c 69624c4c 564d5461 72676574 .7.libLLVMTarget
│ │ │ │ +  0x00008520 2e736f2e 37006c69 624c4c56 4d416e61 .so.7.libLLVMAna
│ │ │ │ +  0x00008530 6c797369 732e736f 2e37006c 69624c4c lysis.so.7.libLL
│ │ │ │ +  0x00008540 564d5275 6e74696d 6544796c 642e736f VMRuntimeDyld.so
│ │ │ │ +  0x00008550 2e37006c 69624c4c 564d4d43 2e736f2e .7.libLLVMMC.so.
│ │ │ │ +  0x00008560 37006c69 624c4c56 4d436f72 652e736f 7.libLLVMCore.so
│ │ │ │    0x00008570 2e37006c 69624c4c 564d5375 70706f72 .7.libLLVMSuppor
│ │ │ │    0x00008580 742e736f 2e37006c 69627a2e 736f2e31 t.so.7.libz.so.1
│ │ │ │    0x00008590 006c6962 646c2e73 6f2e3200 6c69626d .libdl.so.2.libm
│ │ │ │    0x000085a0 2e736f2e 36006c69 6264726d 5f726164 .so.6.libdrm_rad
│ │ │ │    0x000085b0 656f6e2e 736f2e31 006c6962 656c662e eon.so.1.libelf.
│ │ │ │    0x000085c0 736f2e31 006c6962 64726d5f 616d6467 so.1.libdrm_amdg
│ │ │ │    0x000085d0 70752e73 6f2e3100 6c696264 726d5f6e pu.so.1.libdrm_n
--8<---------------cut here---------------end--------------->8---

Maxim