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

Compile object files once for both static and dynamic builds

XMLWordPrintable

      GHA experiences a couple of such cases:

      1. https://bugs.openjdk.org/browse/JDK-8349399?focusedId=14749789&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14749789
        Building fastdebug static-jdk-image fails in GHA due to space issue.

      2. https://github.com/openjdk/jdk/blob/53db57648a09c4c380064eea11fcdb680011d741/.github/workflows/build-linux.yml#L137
        GHA linux jobs cannot include static-libs-bundles in non-release builds.

      We have also experiences the similar issue in other build environments where there is no unlimited build resources.

      I think for all these issues, one of the fundamental causes is compiling the same C/C++ source file twice and creating two different `.o` files for static and non-static, due to STATIC_BUILD difference. This was briefly in JDK-8303796 description/comments.

            ihse Magnus Ihse Bursie
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: