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

Compilation failure caused by JDK-8212780: Packaging Tool Implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 14
    • 14
    • tools
    • b27
    • generic
    • generic

        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

              herrick Andy Herrick (Inactive)
              rkennke Roman Kennke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: