Skip to content

Change to cmake targets#314

Merged
jose-luis-rs merged 1 commit intoR3BRootGroup:devfrom
YanzhaoW:edwin_cmake
Jun 11, 2024
Merged

Change to cmake targets#314
jose-luis-rs merged 1 commit intoR3BRootGroup:devfrom
YanzhaoW:edwin_cmake

Conversation

@YanzhaoW
Copy link
Copy Markdown
Contributor

Use cmake targets to manage dependencies.

Fix the compilation errors in this PR.

Following warnings should be fix by Sofia developers:

/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:656:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  656 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:642:74: note: returned from ‘void* operator new [](std::size_t)’
  642 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:679:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  679 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:665:80: note: returned from ‘void* operator new [](std::size_t)’
  665 |             R3BSofTrimMappedData** mappedData = new R3BSofTrimMappedData*[nHits];
      |                                                                                ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:694:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  694 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:686:78: note: returned from ‘void* operator new [](std::size_t)’
  686 |             R3BCalifaMappedData** mappedData = new R3BCalifaMappedData*[nHits];
      |                                                                              ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:694:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  694 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:686:78: note: returned from ‘void* operator new [](std::size_t)’
  686 |             R3BCalifaMappedData** mappedData = new R3BCalifaMappedData*[nHits];
      |                                                                              ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:713:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  713 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:703:72: note: returned from ‘void* operator new [](std::size_t)’
  703 |             R3BAmsMappedData** mappedData = new R3BAmsMappedData*[nHits];
      |                                                                        ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:735:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  735 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:721:74: note: returned from ‘void* operator new [](std::size_t)’
  721 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:757:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  757 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:744:74: note: returned from ‘void* operator new [](std::size_t)’
  744 |             R3BTwimMappedData** mappedData = new R3BTwimMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:757:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  757 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:744:74: note: returned from ‘void* operator new [](std::size_t)’
  744 |             R3BTwimMappedData** mappedData = new R3BTwimMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:779:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  779 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:765:74: note: returned from ‘void* operator new [](std::size_t)’
  765 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:802:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  802 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:788:74: note: returned from ‘void* operator new [](std::size_t)’
  788 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:820:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  820 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:812:80: note: returned from ‘void* operator new [](std::size_t)’
  812 |             R3BSofTofWMappedData** mappedData = new R3BSofTofWMappedData*[nHits];
      |                                                                                ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:802:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  802 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:788:74: note: returned from ‘void* operator new [](std::size_t)’
  788 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:779:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  779 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:765:74: note: returned from ‘void* operator new [](std::size_t)’
  765 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:735:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  735 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:721:74: note: returned from ‘void* operator new [](std::size_t)’
  721 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:713:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  713 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:703:72: note: returned from ‘void* operator new [](std::size_t)’
  703 |             R3BAmsMappedData** mappedData = new R3BAmsMappedData*[nHits];
      |                                                                        ^
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:656:24: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  656 |                 delete mappedData;
      |                        ^~~~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofonline/R3BSofStatusOnlineSpectra.cxx:642:74: note: returned from ‘void* operator new [](std::size_t)’
  642 |             R3BMwpcMappedData** mappedData = new R3BMwpcMappedData*[nHits];
      |                                                                          ^
[88/124] Building CXX object sofia/tofwall/CMakeFiles/R3BSofTofW.dir/calibration/R3BSofTofWSingleTCal2Hit.cxx.o
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2Hit.cxx: In member function ‘virtual void R3BSofTofWSingleTCal2Hit::S455()’:
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2Hit.cxx:161:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  161 |         delete calDat;
      |                ^~~~~~
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2Hit.cxx:143:76: note: returned from ‘void* operator new [](std::size_t)’
  143 |     R3BSofTofWSingleTcalData** calDat = new R3BSofTofWSingleTcalData*[nHits];
      |                                                                            ^
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2Hit.cxx: In member function ‘virtual void R3BSofTofWSingleTCal2Hit::S467()’:
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2Hit.cxx:203:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  203 |         delete calDat;
      |                ^~~~~~
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2Hit.cxx:177:76: note: returned from ‘void* operator new [](std::size_t)’
  177 |     R3BSofTofWSingleTcalData** calDat = new R3BSofTofWSingleTcalData*[nHits];
      |                                                                            ^
[89/124] Building CXX object sofia/tofwall/CMakeFiles/R3BSofTofW.dir/calibration/R3BSofTofWSingleTCal2HitPar.cxx.o
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2HitPar.cxx: In member function ‘virtual void R3BSofTofWSingleTCal2HitPar::Exec(Option_t*)’:
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2HitPar.cxx:131:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  131 |         delete calData;
      |                ^~~~~~~
/u/yanwang/test/R3BRoot/sofia/tofwall/calibration/R3BSofTofWSingleTCal2HitPar.cxx:121:77: note: returned from ‘void* operator new [](std::size_t)’
  121 |     R3BSofTofWSingleTcalData** calData = new R3BSofTofWSingleTcalData*[nHits];
      |                                                                             ^
[117/124] Building CXX object sofia/sofana/CMakeFiles/R3BSofAna.dir/R3BSofFissionAnalysis.cxx.o
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx: In member function ‘virtual void R3BSofFissionAnalysis::Exec(Option_t*)’:
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:373:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  373 |         delete HitTwim;
      |                ^~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:253:60: note: returned from ‘void* operator new [](std::size_t)’
  253 |     R3BTwimHitData** HitTwim = new R3BTwimHitData*[nHitTwim];
      |                                                            ^
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:375:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  375 |         delete HitMwpc0;
      |                ^~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:252:62: note: returned from ‘void* operator new [](std::size_t)’
  252 |     R3BMwpcHitData** HitMwpc0 = new R3BMwpcHitData*[nHitMwpc0];
      |                                                              ^
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:377:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  377 |         delete HitMwpc1;
      |                ^~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:254:62: note: returned from ‘void* operator new [](std::size_t)’
  254 |     R3BMwpcHitData** HitMwpc1 = new R3BMwpcHitData*[nHitMwpc1];
      |                                                              ^
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:379:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  379 |         delete HitMwpc2;
      |                ^~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:255:62: note: returned from ‘void* operator new [](std::size_t)’
  255 |     R3BMwpcHitData** HitMwpc2 = new R3BMwpcHitData*[nHitMwpc2];
      |                                                              ^
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:381:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  381 |         delete HitMwpc3;
      |                ^~~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:256:62: note: returned from ‘void* operator new [](std::size_t)’
  256 |     R3BMwpcHitData** HitMwpc3 = new R3BMwpcHitData*[nHitMwpc3];
      |                                                              ^
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:383:16: warning: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  383 |         delete HitTofW;
      |                ^~~~~~~
/u/yanwang/test/R3BRoot/sofia/sofana/R3BSofFissionAnalysis.cxx:257:66: note: returned from ‘void* operator new [](std::size_t)’
  257 |     R3BSofTofWHitData** HitTofW = new R3BSofTofWHitData*[nHitTofW];
      |                                                                  ^
[124/124] Linking CXX shared library lib/libR3BSofAna.so


Checklist:

@YanzhaoW
Copy link
Copy Markdown
Contributor Author

@jose-luis-rs All checks passed. It's ready to be merged.

@jose-luis-rs jose-luis-rs merged commit f17a9f1 into R3BRootGroup:dev Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants