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

gcc devkit doesn't have lto-plugin where needed

XMLWordPrintable

      The gcc devkit contains (for example)

      ./x86_64-linux-gnu-to-x86_64-linux-gnu/libexec/gcc/x86_64-linux-gnu/13.2.0/liblto_plugin.so

      but an LTO-enabled build (--enable-jvm-feature-link-time-opt) needs

      ./x86_64-linux-gnu-to-x86_64-linux-gnu/lib/bfd-plugins/liblto_plugin.so

      Presumably the latter should be a symlink to the former. Manually making such a symlink in my installed devkit seemed to work.

      Without this I get a build warning message during the build: "plugin needed to handle lto object", and later the build fails with a ton of undefined references.

      See also this gcc bug about the same issue:
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70345

            Unassigned Unassigned
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: