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

Compilation failure caused by JDK-8212780: Packaging Tool Implementation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: tools
    • Labels:
    • Resolved In Build:
      b27
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        JDK-8212780 causes a compilation failure in our CI. It's using gcc 4.8.7 on RHEL 7.8.

        /home/jenkins/workspace/nightly/jdk-jdk/src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp: In member function 'bool IniFile::SaveToFile(TString, bool)':
        /home/jenkins/workspace/nightly/jdk-jdk/src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp:116:58: error: 'section' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                     std::list<TString> lines = section->GetLines();
                                                                  ^
        cc1plus: all warnings being treated as errors
        gmake[3]: *** [/home/jenkins/workspace/nightly/jdk-jdk/build/linux-x86_64-server-fastdebug/support/native/jdk.incubator.jpackage/libapplauncher/IniFile.o] Error 1
        gmake[3]: *** Waiting for unfinished jobs....
        gmake[2]: *** [jdk.incubator.jpackage-libs] Error 1
        gmake[2]: *** Waiting for unfinished jobs....

        ERROR: Build failed for target 'images' in configuration 'linux-x86_64-server-fastdebug' (exit code 2)
        Stopping sjavac server

        === Output from failing command(s) repeated here ===
        * For target support_native_jdk.incubator.jpackage_libapplauncher_IniFile.o:
        /home/jenkins/workspace/nightly/jdk-jdk/src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp: In member function 'bool IniFile::SaveToFile(TString, bool)':
        /home/jenkins/workspace/nightly/jdk-jdk/src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp:116:58: error: 'section' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                     std::list<TString> lines = section->GetLines();
                                                                  ^
        cc1plus: all warnings being treated as errors

        * All command lines available in /home/jenkins/workspace/nightly/jdk-jdk/build/linux-x86_64-server-fastdebug/make-support/failure-logs.
        === End of repeated output ===

        No indication of failed target found.
        Hint: Try searching the build log for '] Error'.
        Hint: See doc/building.html#troubleshooting for assistance.

        make[1]: *** [main] Error 1
        make: *** [images] Error 2

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  herrick Andy Herrick
                  Reporter:
                  rkennke Roman Kennke
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: