Integrated: 8288399: MacOS debug symbol files not always deterministic in reproducible builds

Andrew Leonard aleonard at openjdk.java.net
Wed Jun 15 14:02:55 UTC 2022


On Wed, 15 Jun 2022 10:10:26 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:

> MacOS builds built with ENABLE_REPRODUCIBLE_BUILD enabled still contain full build paths in the
> debug symbol information. Linux gcc reproducible builds already uses -fdebug-prefix-map to make these deterministic,
> clang supports the same option, and testing with this for clang shows correct mapping.
> Similiarly for reproducible builds assembly source file debug declarations need to be relative, as is for Linux gcc. 
> 
> The compiler generated unique function symbols contain a random generated part, which if not deterministically
> seeded will be random. -frandom-seed provides a deterministic seed solution.
> 
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>

This pull request has now been integrated.

Changeset: 6633855c
Author:    Andrew Leonard <aleonard at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6633855ca78ff0f5f1213a2a1424436678a30e55
Stats:     17 lines in 2 files changed: 13 ins; 0 del; 4 mod

8288399: MacOS debug symbol files not always deterministic in reproducible builds

Reviewed-by: erikj

-------------

PR: https://git.openjdk.org/jdk/pull/9166



More information about the build-dev mailing list