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

[CPP20] Cleanup BuildFile.xml for Alignment/OfflineValidation #44538

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

iarspider
Copy link
Contributor

PR description:

In CPP20 IBs, the following warning is emitted:

>> Compiling  src/Alignment/OfflineValidation/bin/Options.cc
c++ <...> src/Alignment/OfflineValidation/bin/Options.cc -o tmp/el8_amd64_gcc12/src/Alignment/OfflineValidation/bin/DMRmerge/Options.cc.o
In file included from /.../root/6.30.05-f5dcc69f8d11cd2c28768dbd60c84339/include/ROOT/RConfig.hxx:23,
                 from /.../root/6.30.05-f5dcc69f8d11cd2c28768dbd60c84339/include/RtypesCore.h:23,
                 from /.../root/6.30.05-f5dcc69f8d11cd2c28768dbd60c84339/include/Rtypes.h:23,
                 from /.../root/6.30.05-f5dcc69f8d11cd2c28768dbd60c84339/include/TString.h:26,
                 from src/Alignment/OfflineValidation/bin/DMRmerge.cc:16:
  /.../root/6.30.05-f5dcc69f8d11cd2c28768dbd60c84339/include/RConfigure.h:30:4: warning: #warning "The C++ standard in this build does not match ROOT configuration (202002L); this might cause unexpected issues" [-Wcpp]
    30 | #  warning "The C++ standard in this build does not match ROOT configuration (202002L); this might cause unexpected issues"
      |    ^~~~~~~

This PR removes explicit setting of C++ standard (as well as disabled debug symbols and duplicate -Wall flag)

PR validation:

Bot tests

@cmsbuild cmsbuild added this to the CMSSW_14_1_X milestone Mar 25, 2024
@iarspider
Copy link
Contributor Author

Please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 25, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44538/39671

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • Alignment/OfflineValidation (alca)

@consuegs, @perrotta, @saumyaphor4252 can you please review it and eventually sign? Thanks.
@adewit, @mmusich, @rsreds, @yuanchao, @tocheng, @tlampen this is something you requested to watch as well.
@rappoccio, @sextonkennedy, @antoniovilela you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38396/summary.html
COMMIT: b496190
CMSSW: CMSSW_14_1_CPP20_X_2024-03-22-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44538/38396/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38396/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38396/git-merge-result

Build

I found compilation error when building:

Copying tmp/el8_amd64_gcc12/src/Alignment/OfflineValidation/bin/GCPtrends/GCPtrends to productstore area:
>> Compiling  src/Alignment/OfflineValidation/bin/MTSmerge.cc
>> Compiling  src/Alignment/OfflineValidation/bin/Options.cc
In file included from src/Alignment/OfflineValidation/bin/MTSmerge.cc:20:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_14_1_CPP20_X_2024-03-22-1100/src/Alignment/OfflineValidation/macros/trackSplitPlot.C: In function 'TCanvas* trackSplitPlot(Int_t, TString*, TString*, TString, TString, Bool_t, Bool_t, Bool_t, TString, std::ostream&)':
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_14_1_CPP20_X_2024-03-22-1100/src/Alignment/OfflineValidation/macros/trackSplitPlot.C:390:68: error: reference to 'identity' is ambiguous
  390 |   if (type == Histogram && !pull && any_of(begin(used), end(used), identity)) {
      |                                                                    ^~~~~~~~
In file included from /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02829/el8_amd64_gcc12/external/gcc/12.3.1-40d504be6370b5a30e3947a6e575ca28/include/c++/12.3.1/bits/iterator_concepts.h:38,
                 from /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02829/el8_amd64_gcc12/external/gcc/12.3.1-40d504be6370b5a30e3947a6e575ca28/include/c++/12.3.1/bits/stl_iterator_base_types.h:71,
                 from /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02829/el8_amd64_gcc12/external/gcc/12.3.1-40d504be6370b5a30e3947a6e575ca28/include/c++/12.3.1/bits/stl_construct.h:61,


@iarspider
Copy link
Contributor Author

Please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44538/39675

  • This PR adds an extra 36KB to repository

@cmsbuild
Copy link
Contributor

Pull request #44538 was updated. @saumyaphor4252, @consuegs, @perrotta can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38406/summary.html
COMMIT: 96f3056
CMSSW: CMSSW_14_1_CPP20_X_2024-03-25-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44538/38406/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38406/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38406/git-merge-result

Comparison Summary

Summary:

  • You potentially added 2435 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 124 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3297537
  • DQMHistoTests: Total failures: 502
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3297015
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 202 log files, 165 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

This PR removes explicit setting of C++ standard (as well as disabled debug symbols and duplicate -Wall flag)

Well, the duplicated -Wall flag was not removed, actually: @iarspider do you plan to profit of this PR and do it?

And, just for my understanding: is it the -o3 flag that disables the debug symbols?

@@ -1,4 +1,4 @@
<flags CXXFLAGS="-g -Wall -O3 -Wall -std=c++17 -lASImage -lMultiProc" />
<flags CXXFLAGS="-Wall -O3 -Wall -lASImage -lMultiProc" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep the the debug symbols (and remove the duplicated -Wall).

@iarspider
Copy link
Contributor Author

Please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44538/39678

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

Pull request #44538 was updated. @saumyaphor4252, @consuegs, @perrotta can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38412/summary.html
COMMIT: b5fc309
CMSSW: CMSSW_14_1_CPP20_X_2024-03-25-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44538/38412/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38412/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d67027/38412/git-merge-result

Comparison Summary

Summary:

  • You potentially added 2428 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 126 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3297537
  • DQMHistoTests: Total failures: 502
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3297015
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 202 log files, 165 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@perrotta
Copy link
Contributor

+alca

@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 will now be reviewed by the release team before it's merged. @sextonkennedy, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@antoniovilela
Copy link
Contributor

+1

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.

5 participants