Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8323667

Library debug files contain non-reproducible full gcc include paths

    XMLWordPrintable

Details

    • b07
    • linux

    Backports

      Description

        Native library debug files contain the full gcc system include paths, which then results in the native library being non-reproducible (via the CRC bytes), if built with differing gcc include path location.
        This is especially noticeable when using a bespoke DevKit, with the intention of reproducible builds by using it, however the non-standard DevKit path to the includes immediately makes it non-reproducible.

        eg. strings dump of libnet.debuginfo:
        /home/andrew/jdk21u/build/devkit/result/aarch64-linux-gnu-to-aarch64-linux-gnu/aarch64-linux-gnu/sysroot/usr/include/sys
        /home/andrew/jdk21u/build/devkit/result/aarch64-linux-gnu-to-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/11.3.0/include

        Attachments

          Issue Links

            Activity

              People

                aleonard Andrew Leonard
                aleonard Andrew Leonard
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: