| Summary: |
Debug files contain absolute build host paths for non-x86 archs |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Juro Bystricky <juro.bystricky> |
| Component: |
core | Assignee: |
Richard Purdie <richard.purdie> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Medium+
|
CC: |
hongxu.jia, meta.mr.watcher, meta.watcher, raj.khem, randy.macleod
|
| Version: |
5.99 | |
|
| Target Milestone: |
2.6 M3 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
Don't know
|
| Attachments: |
|
Created attachment 4300 [details] diffoscope output demonstrating the bug. For some architectures, the reproducibility is not as good as for x86. In particular arm, arm64, MIPS and MIPS64 do not build as many binary reproducible packages as x86. For example, for ARM/ARM64 core-image-minimal we get about 780 packages that are binary different (out of about 4000), vs x86 two. The numbers for MIPS are a bit better. Typical build scenario, built in two different folders: INHERIT+="reproducible_build" MACHINE="qemuarm" $ bitbake core-image-minimal In spite of all of these differences, I believe there is only a single problem that needs to be addressed. It is the presence absolute of ABS·<build host workdir>/recipe-sysroot/usr/lib/crti.o and ABS·<build host workdir>/recipe-sysroot/usr/lib/crtn.o in debug symbols of in debug packages. This percolates to non-debug packages, as the .gnu_debuglink checksum will be affected. ${DEBUG_PREFIX_MAP} -fdebug-prefix-map somehow did not apply when the files crti.o and/or crtn.o were compiled.