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

Compilation with builtin XRootD fails with GCC 7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.08/06
    • Fix Version/s: 6.10/00, 6.08/08
    • Component/s: None
    • Labels:
      None
    • Environment:

      SLC6 and Centos7

      Description

      Compilation fails with GCC 7.1

      cmake ... -Dbuiltin_xrootd=ON ...
      make 

      results in

      [I] No git repository info found. Trying to interpret VERSION_INFO
      [I] src/XrdVersion.hh successfully generated
      /build/XROOTD-prefix/src/XROOTD/src/XrdSys/XrdSysError.cc: In member function ¿int XrdSysError::Emsg(const char*, int, const char*, const char*)¿:
      /build/XROOTD-prefix/src/XROOTD/src/XrdSys/XrdSysError.cc:95:5: error: ¿%d¿ directive output truncated writing between 1 and 11 bytes into a region of size 0 [-Werror=format-truncation=]
       int XrdSysError::Emsg(const char *esfx, int ecode, const char *txt1,
           ^~~~~~~~~~~
      /build/XROOTD-prefix/src/XROOTD/src/XrdSys/XrdSysError.cc:103:17: note: ¿snprintf¿ output between 19 and 29 bytes into a destination of size 16
              {snprintf(ebuff, sizeof(ebuff), "reason unknown (%d)", ecode);
               ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1plus: all warnings being treated as errors
      make[5]: *** [src/CMakeFiles/XrdUtils.dir/XrdSys/XrdSysError.cc.o] Error 1
      make[4]: *** [src/CMakeFiles/XrdUtils.dir/all] Error 2
      make[3]: *** [all] Error 2

      XRootD version 4.6.1 compiles well with GCC 7.
      Please update version of shipped XRootD to be compatible with GCC 7

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              mpetric Marko Petric
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: