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

Build with GNU GCC 9

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Ubuntu 19.10 will be released on Oct 17, 2019 which has GNU 9.2.

      1)
      Currentl HPCC Platform master branch build with GNU 9.2 fails with following erros:
      ^[[91m/hpcc-dev/HPCC-Platform/system/jlib/jutil.cpp: In function 'void doStackProbe()':
      /hpcc-dev/HPCC-Platform/system/jlib/jutil.cpp:1687:53: error: array subscript -4096 is outside array bounds of 'byte [1]'

      {aka 'unsigned char [1]'}

      [-Werror=array-bounds]
      1687 | byte forceload _attribute_((unused)) = x[-4096];

      ~~~~~~~^
      /hpcc-dev/HPCC-Platform/system/jlib/jutil.cpp:1685:10: note: while referencing 'local'
      1685
      byte local;
      ^~~~~
      [[0m[[91mcc1plus: all warnings being treated as errors
      [[0m[[91mmake[2]: *** [system/jlib/CMakeFiles/jlib.dir/build.make:635: system/jlib/CMakeFiles/jlib.dir/jutil.cpp.o] Error 1

      2)
      /hpcc-dev/HPCC-Platform/plugins/cassandra/cpp-driver/src/execution_profile.hpp:27:7: error: implicitly-declared 'cass::Vector<std::_cxx11::basic_string<char, std::char_traits<char>, cass::Allocator<char> > >& cass::Vector<std::cxx11::basic_string<char, std::char_traits<char>, cass::Allocator<char> > >::operator=(const cass::Vector<std::_cxx11::basic_string<char, std::char_traits<char>, cass::Allocator<char> > >&)' is deprecated [-Werror=deprecated-copy]
      27 | class ExecutionProfile {

      /hpcc-dev/HPCC-Platform/plugins/cassandra/cpp-driver/src/vector.hpp:28:3: note: because 'cass::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, cass::Allocator<char> > >' has user-provided 'cass::Vector<T>::Vector(const cass::Vector<T>&) [with T = std::__cxx11::basic_string<char, std::char_traits<char>, cass::Allocator<char> >]'
      28 | Vector(const Vector& other)

      ^~~~~~

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              xwang2713 Xiaoming Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: