Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-28446

jlib compile error on GNU 12.2.0

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 8.10.6, 8.8.24
    • JLib
    • None

    Description

      Ubuntu 22.10 has
      The C compiler identification is GNU 12.2.0
      The CXX compiler identification is GNU 12.2.0

      Jlib compile error:
      00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:674:24: error: pointer may be used after ‘int fclose(FILE*)’ [-Werror=use-after-free]
      00:49:23 674 | if (in) fclose(in);
      00:49:23 | ~~~~~^~~
      00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:668:15: note: call to ‘int fclose(FILE*)’ here
      00:49:23 668 | fclose(in);
      00:49:23 | ~~~~~^~~
      00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:674:24: error: pointer may be used after ‘int fclose(FILE*)’ [-Werror=use-after-free]
      00:49:23 674 | if (in) fclose(in);
      00:49:23 | ~~~~~^~~
      00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:668:15: note: call to ‘int fclose(FILE*)’ here
      00:49:23 668 | fclose(in);
      00:49:23 | ~~~~~^~~
      00:49:24 cc1plus: all warnings being treated as errors
      00:49:24 make[2]: *** [system/jlib/CMakeFiles/jlib.dir/build.make:426: system/jlib/CMakeFiles/jlib.dir/jmisc.cpp.o] Error 1

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            xwang2713 Xiaoming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: