RFR: 8288399: MacOS debug symbol files not always deterministic in reproducible builds
Andrew Leonard
aleonard at openjdk.java.net
Wed Jun 15 13:15:57 UTC 2022
On Wed, 15 Jun 2022 11:03:36 GMT, Erik Joelsson <erikj 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).
thanks @erikj79
-------------
PR: https://git.openjdk.org/jdk/pull/9166
More information about the build-dev
mailing list