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

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

Merged
merged 1 commit into from May 30, 2017

Conversation

gartung
Copy link
Member

@gartung gartung commented May 25, 2017

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

/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8fa3f79dab694f86b12f10b4e4cceb97/opt/cmssw/slc6_amd64_gcc700/cms/cmssw/CMSSW_9_2_X_2017-05-21-2300/src/Alignment/CommonAlignmentAlgorithm/interface/AlignmentIO.h:19:7: warning: 'class AlignmentIO' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]

/build/cmsbld/jenkins-workarea/workspace/build-any-ib/w/tmp/BUILDROOT/8fa3f79dab694f86b12f10b4e4cceb97/opt/cmssw/slc6_amd64_gcc700/cms/cmssw/CMSSW_9_2_X_2017-05-21-2300/src/Alignment/CommonAlignmentAlgorithm/interface/AlignmentIORoot.h:16:7: warning: base class 'class AlignmentIO' has 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:

Alignment/CommonAlignmentAlgorithm

@ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @davidlange6 can you please review it and eventually sign? Thanks.
@ghellwig, @pakhotin, @tocheng, @tlampen, @mschrode, @mmusich this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@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/20098/console Started: 2017/05/25 17:37

@cmsbuild
Copy link
Contributor

-1

Tested at: 715b56c

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

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

I found an error when building:

>> Compiling  /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/AlignableDataIO.cc 
Entering library rule at src/Alignment/MillePedeAlignmentAlgorithm/plugins
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/plugins/SiPixelLorentzAngleCalibration.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/plugins/ApeSettingAlgorithm.cc 
In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/AlignmentIORoot.cc:6:0:
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/interface/AlignmentIORoot.h:20:26: error: expected class-name before '(' token
   virtual ~AlignmentIORoo() = default;
                          ^
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/plugins/SiStripLorentzAngleCalibration.cc 
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/plugins/SiStripBackplaneCalibration.cc 
gmake: *** [tmp/slc6_amd64_gcc530/src/Alignment/CommonAlignmentAlgorithm/src/AlignmentCommonAlignmentAlgorithm/AlignmentIORoot.o] Error 1

  • 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'

>> Compiling  /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/AlignmentIORoot.cc 
>> Compiling  /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/IntegratedCalibrationBase.cc 
>> Compiling  /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/AlignmentAlgorithmPluginFactory.cc 
>> Compiling  /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/AlignableDataIO.cc 
In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/src/AlignmentIORoot.cc:6:
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/interface/AlignmentIORoot.h:20:12: error: expected the class name after '~' to name a destructor
  virtual ~AlignmentIORoo() = default;
           ^~~~~~~~~~~~~~
           AlignmentIORoot
>> Compiling edm plugin /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-05-24-2300/src/Alignment/CommonAlignmentAlgorithm/plugins/SiPixelLorentzAngleCalibration.cc 
1 error generated.


@cmsbuild
Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

Pull request #18933 was updated. @ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @davidlange6 can you please check and sign again.

@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/20112/console Started: 2017/05/25 18:17

@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-18933/20112/summary.html

Comparison Summary:

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

@arunhep
Copy link
Contributor

arunhep commented May 29, 2017

+1
no change in plots as expected. technical update only.

@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 12a8208 into cms-sw:master May 30, 2017
@gartung gartung deleted the Align-gcc700-dtor-warning-fix branch May 30, 2017 15:20
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

5 participants