Print

Print


I am trying to build xrootd on CentOS Linux release 7.9.2009 (Core). I hope this is the right forum, if not please point me to the right one (I was not able to find it). Below is the dump:
```
[ 28%] Building CXX object src/XrdCl/CMakeFiles/XrdCl.dir/XrdClFileStateHandler.cc.o
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc: In member function ‘XrdCl::XRootDStatus XrdCl::FileStateHandler::PgWrite(uint6                                                                                                                              4_t, uint32_t, const void*, std::vector<unsigned int>&, XrdCl::ResponseHandler*, uint16_t)’:
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1448:48: error: parameter declared ‘auto’
     auto h = ResponseHandler::Wrap( [=]( auto* s, auto* r ) mutable
                                                ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1448:57: error: parameter declared ‘auto’
     auto h = ResponseHandler::Wrap( [=]( auto* s, auto* r ) mutable
                                                         ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc: In lambda function:
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1450:46: error: ‘r’ was not declared in this scope
           std::unique_ptr<AnyObject> scoped( r );
                                              ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1453:16: error: ‘s’ was not declared in this scope
           if( !s->IsOK() )
                ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1464:31: error: ‘s’ was not declared in this scope
             pgwrt->SetStatus( s );
                               ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1467:18: error: ‘s’ was not declared in this scope
           delete s;
                  ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1484:56: error: parameter declared ‘auto’
             auto h = ResponseHandler::Wrap( [=]( auto *s, auto *r ) mutable
                                                        ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1484:65: error: parameter declared ‘auto’
             auto h = ResponseHandler::Wrap( [=]( auto *s, auto *r ) mutable
                                                                 ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc: In lambda function:
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1493:26: error: type ‘<type error>’ argument given to ‘delete’, expected pointe                                                                                                                              r
                   delete s;
                          ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc: In member function ‘XrdCl::XRootDStatus XrdCl::FileStateHandler::PgWrite(uint6                                                                                                                              4_t, uint32_t, const void*, std::vector<unsigned int>&, XrdCl::ResponseHandler*, uint16_t)’:
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1516:11: error: no matching function for call to ‘XrdCl::ResponseHandler::Wrap(                                                                                                                              XrdCl::FileStateHandler::PgWrite(uint64_t, uint32_t, const void*, std::vector<unsigned int>&, XrdCl::ResponseHandler*, uint16_t)::__lambda0)’
         } );
           ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1516:11: note: candidates are:
In file included from /global/homes/i/iraklic/xrootd/src/./XrdCl/XrdClFileStateHandler.hh:28:0,
                 from /global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:25:
/global/homes/i/iraklic/xrootd/src/./XrdCl/XrdClXRootDResponses.hh:1158:31: note: static XrdCl::ResponseHandler* XrdCl::ResponseHandler::Wrap(std                                                                                                                              ::function<void(XrdCl::XRootDStatus&, XrdCl::AnyObject&)>)
       static ResponseHandler* Wrap( std::function<void(XRootDStatus&, AnyObject&)> func );
                               ^
/global/homes/i/iraklic/xrootd/src/./XrdCl/XrdClXRootDResponses.hh:1158:31: note:   no known conversion for argument 1 from ‘XrdCl::FileStateHand                                                                                                                              ler::PgWrite(uint64_t, uint32_t, const void*, std::vector<unsigned int>&, XrdCl::ResponseHandler*, uint16_t)::__lambda0’ to ‘std::function<void(X                                                                                                                              rdCl::XRootDStatus&, XrdCl::AnyObject&)>’
/global/homes/i/iraklic/xrootd/src/./XrdCl/XrdClXRootDResponses.hh:1166:31: note: static XrdCl::ResponseHandler* XrdCl::ResponseHandler::Wrap(std                                                                                                                              ::function<void(XrdCl::XRootDStatus*, XrdCl::AnyObject*)>)
       static ResponseHandler* Wrap( std::function<void(XRootDStatus*, AnyObject*)> func );
                               ^
/global/homes/i/iraklic/xrootd/src/./XrdCl/XrdClXRootDResponses.hh:1166:31: note:   no known conversion for argument 1 from ‘XrdCl::FileStateHand                                                                                                                              ler::PgWrite(uint64_t, uint32_t, const void*, std::vector<unsigned int>&, XrdCl::ResponseHandler*, uint16_t)::__lambda0’ to ‘std::function<void(X                                                                                                                              rdCl::XRootDStatus*, XrdCl::AnyObject*)>’
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1522:14: error: type ‘<type error>’ argument given to ‘delete’, expected pointe                                                                                                                              r
       delete h;
              ^
/global/homes/i/iraklic/xrootd/src/XrdCl/XrdClFileStateHandler.cc:1525:3: error: control reaches end of non-void function [-Werror=return-type]
   }
   ^
cc1plus: all warnings being treated as errors
make[2]: *** [src/XrdCl/CMakeFiles/XrdCl.dir/XrdClFileStateHandler.cc.o] Error 1
make[1]: *** [src/XrdCl/CMakeFiles/XrdCl.dir/all] Error 2
make: *** [all] Error 2
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1524
########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1