Details
-
Bug
-
Status: Closed (View Workflow)
-
Medium
-
Resolution: Fixed
-
6.08/06
-
None
-
None
-
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