Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10843

[-Werror=stringop-overflow=] building with GCC 10.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Linux 5.4.43-rt25-MANJARO

      GCC 10.1

      ninja 1.10

    • Development:

      Description

      Build command:

      cmake -GNinja -Ddev=ON -DCMAKE_CXX_STANDARD=11 -Dtesting=ON -Droottest=ON ../root
      

      Error:

      FAILED: io/io/CMakeFiles/RIO.dir/src/TGenCollectionStreamer.cxx.o
       
      /usr/bin/c++ -I/home/vincenzo/Programs/rootproject/root/io/io/inc -I/home/vincenzo/Programs/rootproject/root/io/io/res -I/home/vincenzo/Programs/rootproject/root/core/unix/inc -I/home/vincenzo/Programs/rootproject/root/core/clingutils/inc -I/home/vincenzo/Programs/rootproject/root/core/textinput/inc -I/home/vincenzo/Programs/rootproject/root/core/thread/inc -I/home/vincenzo/Programs/rootproject/root/core/zip/inc -I/home/vincenzo/Programs/rootproject/root/core/rint/inc -I/home/vincenzo/Programs/rootproject/root/core/clib/inc -I/home/vincenzo/Programs/rootproject/root/core/meta/inc -I/home/vincenzo/Programs/rootproject/root/core/gui/inc -I/home/vincenzo/Programs/rootproject/root/core/cont/inc -I/home/vincenzo/Programs/rootproject/root/core/foundation/inc -I/home/vincenzo/Programs/rootproject/root/core/base/inc -Iginclude -I/home/vincenzo/Programs/rootproject/root/core/clib/res -fdiagnostics-color=always -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -Werror -gsplit-dwarf -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG -fPIC -std=c++11 -MD -MT io/io/CMakeFiles/RIO.dir/src/TGenCollectionStreamer.cxx.o -MF io/io/CMakeFiles/RIO.dir/src/TGenCollectionStreamer.cxx.o.d -o io/io/CMakeFiles/RIO.dir/src/TGenCollectionStreamer.cxx.o -c /home/vincenzo/Programs/rootproject/root/io/io/src/TGenCollectionStreamer.cxx
       
      In function ‘void ConvertArray(TGenCollectionProxy::StreamHelper*, TGenCollectionProxy::StreamHelper*, int) [with From = char; To = char]’,
       inlined from ‘void DispatchConvertArray(int, TGenCollectionProxy::StreamHelper*, TGenCollectionProxy::StreamHelper*, int) [with From = char]’ at /home/vincenzo/Programs/rootproject/root/io/io/src/TGenCollectionStreamer.cxx:163:35:
       
      /home/vincenzo/Programs/rootproject/root/io/io/src/TGenCollectionStreamer.cxx:151:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
       151 | w[i] = (To)r[i];
       | ~~~~~^~~~~~~~
      
      

      And many more occurences of [-Werror=stringop-overflow=] in TGenCollectionStreamer.cxx

      This warning is associated sometimes with regressions and false positives in gcc

      But is blocking the build nonetheless. What do you think?
      Cheers,
      Vincenzo

        Attachments

          Activity

            People

            Assignee:
            pcanal Philippe Canal
            Reporter:
            vpadulan Vincenzo Eduardo Padulano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: