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

[GCC14] template-id not allowed for constructor in C++20 #47265

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

iarspider
Copy link
Contributor

PR description:

GCC14 complains that template-id is not allowed for constructor:

    In file included from src/DataFormats/TrackSoA/interface/alpaka/TracksSoACollection.h:9,
                     from src/RecoVertex/PixelVertexFinding/plugins/alpaka/PixelVertexProducerAlpaka.cc:17:
    src/DataFormats/TrackSoA/interface/TracksDevice.h:31:46: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
       31 |   explicit TracksDevice<TrackerTraits, TDev>(TQueue& queue)
          |                                              ^~~~~~
    src/DataFormats/TrackSoA/interface/TracksDevice.h:31:46: note: remove the '< >'
    In file included from src/DataFormats/TrackSoA/interface/alpaka/TracksSoACollection.h:10:
    src/DataFormats/TrackSoA/interface/TracksHost.h:32:38: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
       32 |   explicit TracksHost<TrackerTraits>(TQueue& queue)
          |                                      ^~~~~~
    src/DataFormats/TrackSoA/interface/TracksHost.h:32:38: note: remove the '< >'

This PR fixes this warning.

PR validation:

Bot tests.

@iarspider
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47265/43565

  • There are other open Pull requests which might conflict with changes you have proposed:

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47265/43566

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

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

It involves the following packages:

  • DataFormats/TrackSoA (reconstruction, heterogeneous)

@cmsbuild, @fwyzard, @jfernan2, @makortel, @mandrenguyen can you please review it and eventually sign? Thanks.
@VinInn, @VourMa, @gpetruc, @missirol, @mmusich, @mtosi, @rovere this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@iarspider
Copy link
Contributor Author

please test

@fwyzard
Copy link
Contributor

fwyzard commented Feb 5, 2025

+heterogeneous

@iarspider
Copy link
Contributor Author

please test for el8_amd64_gcc14

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f990e7/44208/summary.html
COMMIT: a85a3f6
CMSSW: CMSSW_15_0_X_2025-02-01-1100/el8_amd64_gcc14
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/47265/44208/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-f990e7/44208/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f990e7/44208/git-merge-result

Build

I found compilation error when building:

Copying tmp/el8_amd64_gcc14/src/RecoLocalCalo/EcalRecProducers/plugins/RecoLocalCaloEcalRecProducersPluginsPortableROCmAsync/libRecoLocalCaloEcalRecProducersPluginsPortableROCmAsync_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc14/src/RecoLocalCalo/HGCalRecAlgos/plugins/RecoLocalCaloHGCalRecAlgosPluginsPortableROCmAsync/libRecoLocalCaloHGCalRecAlgosPluginsPortableROCmAsync_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc14/src/RecoLocalCalo/HGCalRecProducers/plugins/RecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync/libRecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync_rocm.a to productstore area:
cp: cannot stat 'tmp/el8_amd64_gcc14/src/RecoLocalCalo/HGCalRecProducers/plugins/RecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync/libRecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync_rocm.a': No such file or directory
>> Deleted: tmp/el8_amd64_gcc14/src/RecoLocalCalo/HGCalRecProducers/plugins/RecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync/libRecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync_rocm.a
gmake: *** [config/SCRAM/GMake/Makefile.rules:1886: tmp/el8_amd64_gcc14/src/RecoLocalCalo/HGCalRecProducers/plugins/RecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync/libRecoLocalCaloHGCalRecProducersPluginsPortableROCmAsync_rocm.a] Error 1
Copying tmp/el8_amd64_gcc14/src/RecoLocalCalo/HcalRecProducers/plugins/RecoLocalCaloHcalRecProducersPluginsPortableROCmAsync/libRecoLocalCaloHcalRecProducersPluginsPortableROCmAsync_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc14/src/RecoLocalTracker/SiPixelClusterizer/plugins/RecoLocalTrackerSiPixelClusterizerPluginsPortableROCmAsync/libRecoLocalTrackerSiPixelClusterizerPluginsPortableROCmAsync_rocm.a to productstore area:
Copying tmp/el8_amd64_gcc14/src/RecoLocalTracker/SiPixelRecHits/plugins/RecoLocalTrackerSiPixelRecHitsPluginsPortableROCmAsync/libRecoLocalTrackerSiPixelRecHitsPluginsPortableROCmAsync_rocm.a to productstore area:
cp: cannot stat 'tmp/el8_amd64_gcc14/src/RecoLocalTracker/SiPixelRecHits/plugins/RecoLocalTrackerSiPixelRecHitsPluginsPortableROCmAsync/libRecoLocalTrackerSiPixelRecHitsPluginsPortableROCmAsync_rocm.a': No such file or directory
>> Deleted: tmp/el8_amd64_gcc14/src/RecoLocalTracker/SiPixelRecHits/plugins/RecoLocalTrackerSiPixelRecHitsPluginsPortableROCmAsync/libRecoLocalTrackerSiPixelRecHitsPluginsPortableROCmAsync_rocm.a


@iarspider
Copy link
Contributor Author

Build failures for gcc14 is expected - some will be fixed by #47266.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

+1

Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f990e7/44204/summary.html
COMMIT: a85a3f6
CMSSW: CMSSW_15_0_X_2025-02-04-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/47265/44204/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-f990e7/44204/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f990e7/44204/git-merge-result

Comparison Summary

Summary:

@jfernan2
Copy link
Contributor

jfernan2 commented Feb 5, 2025

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2025

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. @mandrenguyen, @antoniovilela, @sextonkennedy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 3152dc7 into cms-sw:master Feb 5, 2025
12 of 13 checks passed
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