RFR: 8288399: MacOS debug symbol files not always deterministic in reproducible builds
Erik Joelsson
erikj at openjdk.java.net
Wed Jun 15 11:05:39 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>
Marked as reviewed by erikj (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/9166
More information about the build-dev
mailing list