Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimTracker : fix gcc700 warning: class has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] #18923

Merged
merged 1 commit into from May 27, 2017
Merged

Conversation

gartung
Copy link
Member

@gartung gartung commented May 24, 2017

Fixes warnings like these by adding virtual destructor with default constructor.

/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/d36af6c2d5d322e52932978c6b2c4857/opt/cmssw/slc6_amd64_gcc700/cms/cmssw-patch/CMSSW_9_2_X_2017-05-23-2300/src/SimTracker/SiPhase2Digitizer/plugins/Phase2TrackerDigitizerAlgorithm.h:45:7: warning: 'class Phase2TrackerDigitizerAlgorithm' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]

/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/d36af6c2d5d322e52932978c6b2c4857/opt/cmssw/slc6_amd64_gcc700/cms/cmssw-patch/CMSSW_9_2_X_2017-05-23-2300/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.h:10:7: warning: base class 'class Phase2TrackerDigitizerAlgorithm' has accessible non-virtual destructor [-Wnon-virtual-dtor]

/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/d36af6c2d5d322e52932978c6b2c4857/opt/cmssw/slc6_amd64_gcc700/cms/cmssw-patch/CMSSW_9_2_X_2017-05-23-2300/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.h:10:7: warning: 'class PSPDigitizerAlgorithm' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]

/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/d36af6c2d5d322e52932978c6b2c4857/opt/cmssw/slc6_amd64_gcc700/cms/cmssw-patch/CMSSW_9_2_X_2017-05-23-2300/src/SimTracker/SiPhase2Digitizer/plugins/SSDigitizerAlgorithm.h:10:7: warning: 'class SSDigitizerAlgorithm' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/d36af6c2d5d322e52932978c6b2c4857/opt/cmssw/slc6_amd64_gcc700/cms/cmssw-patch/CMSSW_9_2_X_2017-05-23-2300/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.h:10:7: warning: 'class PSPDigitizerAlgorithm' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @gartung (Patrick Gartung) for master.

It involves the following packages:

SimTracker/SiPhase2Digitizer

@cmsbuild, @civanch, @mdhildreth, @kpedro88, @davidlange6 can you please review it and eventually sign? Thanks.
@makortel, @sdevissc, @GiacomoSguazzoni, @rovere, @VinInn, @ebrondol, @threus, @dgulhan this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@kpedro88
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 24, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/20079/console Started: 2017/05/25 00:20

@gartung gartung changed the title fix gcc700 warning: class has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] SimTracker : fix gcc700 warning: class has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] May 24, 2017
@cmsbuild
Copy link
Contributor

-1

Tested at: fc4f487

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
09f887d
1cb2dec
14591b1
c58ba64
6b37f47
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18923/20079/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18923/20079/git-merge-result

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18923/20079/summary.html

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

I found an error when building:

>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/Phase2TrackerDigitizer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/Phase2TrackerDigitizerAlgorithm.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PixelDigitizerAlgorithm.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PSSDigitizerAlgorithm.cc 
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.cc:47:1: error: definition of explicitly-defaulted 'PSPDigitizerAlgorithm::~PSPDigitizerAlgorithm()'
 PSPDigitizerAlgorithm::~PSPDigitizerAlgorithm() {
 ^
In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.cc:4:0:
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.h:13:11: error: 'virtual PSPDigitizerAlgorithm::~PSPDigitizerAlgorithm()' explicitly defaulted here
   virtual ~PSPDigitizerAlgorithm() = default;

  • Clang:

I found a compilation error while trying to compile with clang:
I used this command:
scram b vclean && scram build -k -j 16 USER_CXXFLAGS='-fsyntax-only' COMPILER='llvm compile'

       ^
/cvmfs/cms-ib.cern.ch/nweek-02473/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_9_2_X_2017-05-24-1100/src/FWCore/Framework/interface/EDAnalyzer.h:80:18: note: hidden overloaded virtual function 'edm::EDAnalyzer::endJob' declared here: different number of parameters (0 vs 2)
    virtual void endJob(){}
                 ^
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/test/Phase2TrackerMonitorDigi.cc 
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/plugins/PSPDigitizerAlgorithm.cc:47:24: error: definition of explicitly defaulted destructor
PSPDigitizerAlgorithm::~PSPDigitizerAlgorithm() {
                       ^
1 warning generated.
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-1100/src/SimTracker/SiPhase2Digitizer/test/TBeamTest.cc 
1 warning generated.


The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
09f887d
1cb2dec
14591b1
c58ba64
6b37f47
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18923/20079/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18923/20079/git-merge-result

@cmsbuild
Copy link
Contributor

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

@gartung
Copy link
Member Author

gartung commented May 24, 2017

@Dr15Jones this pattern produced an error. Did I do something wrong?
virtual ~PSPDigitizerAlgorithm() = default;

@kpedro88
Copy link
Contributor

The problem is that there's a definition of the destructor in the .cc file, which means it can't be default.

@gartung
Copy link
Member Author

gartung commented May 24, 2017

Yes I think I was only supposed to do that in base classes. The other pull requests will likely fail.

@gartung gartung closed this May 24, 2017
@gartung gartung reopened this May 24, 2017
@cmsbuild
Copy link
Contributor

Pull request #18923 was updated. @cmsbuild, @civanch, @mdhildreth, @kpedro88, @davidlange6 can you please check and sign again.

@gartung
Copy link
Member Author

gartung commented May 25, 2017

@Dr15Jones

@Dr15Jones
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 25, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/20122/console Started: 2017/05/25 20:29

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18923/20122/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 1710 differences found in the comparisons
  • DQMHistoTests: Total files compared: 24
  • DQMHistoTests: Total histograms compared: 1833592
  • DQMHistoTests: Total failures: 56997
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1776415
  • DQMHistoTests: Total skipped: 180
  • DQMHistoTests: Total Missing objects: 0
  • Checked 98 log files, 14 edm output root files, 24 DQM output files

@civanch
Copy link
Contributor

civanch commented May 26, 2017

+1

@kpedro88
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit d857f0c into cms-sw:master May 27, 2017
@gartung gartung deleted the SimTracker-gcc700-dtor-warning-fix branch May 30, 2017 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants