On Thu, Mar 20, 2025 at 09:57:23AM +0000, Richard W.M. Jones wrote:
> * mingw packages have irreproducible debug data.
> 
> Anything more information about this?  What is it about the "debug
> data" which is a problem, and can anything be done about it?
> 
> I assume this refers to files like
> /usr/lib/debug/usr/x86_64-w64-mingw32/sys-root/mingw/bin/zlib1.dll.debug
> which are actually PE files.

Basically, most mingw binaries show irreproducibilities. Random example:
$ diffoscope --text-color=always 
orig/liblerc-4.0.0-8.fc42/mingw64-liblerc-4.0.0-8.fc42.noarch.rpm 
rebuild/liblerc-4.0.0-8.fc42/rebuild/mingw64-liblerc-4.0.0-8.fc42.noarch.rpm

├── content
│ ├── ./usr/x86_64-w64-mingw32/sys-root/mingw/bin/libLerc-4.dll
│ │ ├── objdump
│ │ │ @@ -26,15 +26,15 @@
│ │ │  MajorImageVersion        0
│ │ │  MinorImageVersion        0
│ │ │  MajorSubsystemVersion    5
│ │ │  MinorSubsystemVersion    2
│ │ │  Win32Version             00000000
│ │ │  SizeOfImage              00594000
│ │ │  SizeOfHeaders            00000600
│ │ │ -CheckSum         005b5e09
│ │ │ +CheckSum         005bac94
│ │ │  Subsystem                00000003        (Windows CUI)
│ │ │  DllCharacteristics       00000160
│ │ │                                   HIGH_ENTROPY_VA
│ │ │                                   DYNAMIC_BASE
│ │ │                                   NX_COMPAT
│ │ │  SizeOfStackReserve       0000000000200000
│ │ │  SizeOfStackCommit        0000000000001000
│ │ │ @@ -5759,15 +5759,15 @@
│ │ │                    CONTENTS, ALLOC, LOAD, READONLY, DATA
│ │ │   11 .debug_aranges 000014b0  00000002dbe54000  00000002dbe54000  
0008be00  2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │   12 .debug_info   002eaad4  00000002dbe56000  00000002dbe56000  0008d400 
 2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │   13 .debug_abbrev 00009733  00000002dc141000  00000002dc141000  00378000 
 2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │ - 14 .debug_line   000914e2  00000002dc14b000  00000002dc14b000  00381800 
 2**0
│ │ │ + 14 .debug_line   000914d7  00000002dc14b000  00000002dc14b000  00381800 
 2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │   15 .debug_frame  0000b678  00000002dc1dd000  00000002dc1dd000  00412e00 
 2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │   16 .debug_str    00005ed6  00000002dc1e9000  00000002dc1e9000  0041e600 
 2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │   17 .debug_line_str 00003b6b  00000002dc1ef000  00000002dc1ef000  
00424600  2**0
│ │ │                    CONTENTS, READONLY, DEBUGGING
│ │ │ @@ -7098,15 +7098,15 @@
│ │ │  [1319](sec 19)(fl 0x00)(ty    0)(scl   3) (nx 1) 0x0000000000061463 
.debug_loclists
│ │ │  AUX scnlen 0x3a1b nreloc 623 nlnno 0
│ │ │  [1321](sec 12)(fl 0x00)(ty    0)(scl   3) (nx 1) 0x0000000000000810 
.debug_aranges
│ │ │  AUX scnlen 0xc0 nreloc 11 nlnno 0
│ │ │  [1323](sec 20)(fl 0x00)(ty    0)(scl   3) (nx 1) 0x000000000000f656 
.debug_rnglists
│ │ │  AUX scnlen 0xb7e nreloc 155 nlnno 0
│ │ │  [1325](sec 15)(fl 0x00)(ty    0)(scl   3) (nx 1) 0x000000000002e8ac 
.debug_line
│ │ │ -AUX scnlen 0x23fe nreloc 73 nlnno 0
│ │ │ +AUX scnlen 0x23f3 nreloc 72 nlnno 0
...

I haven't really looked into the details.
https://in.waw.pl/~zbyszek/fedora/builds-f42-after-mass-rebuild.amd64.txt
and https://in.waw.pl/~zbyszek/fedora/builds-f42-after-mass-rebuild.arm64.txt
have bunch of examples, search for "mingw".
The two rpms are at
https://in.waw.pl/~zbyszek/fedora/mingw64-liblerc-4.0.0-8.fc42.noarch.orig.rpm
https://in.waw.pl/~zbyszek/fedora/mingw64-liblerc-4.0.0-8.fc42.noarch.rebuilt.rpm
in case you want to take a look.

Zbyszek
-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to