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
DataFormats/Common : Changes needed to compile with macOS clang and libc++ #17348
DataFormats/Common : Changes needed to compile with macOS clang and libc++ #17348
Conversation
A new Pull Request was created by @gartung (Patrick Gartung) for CMSSW_9_0_X. It involves the following packages: DataFormats/Common @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here #13028 |
@@ -78,6 +77,9 @@ namespace edm { | |||
/// to use only comparators provided with CMSSW release. | |||
template<typename CMP> | |||
range get(ID id, CMP comparator) const { | |||
#ifndef _LIBCPP_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we try removing this all together to see if it was needed at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it gets used in the main cpp file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please try rebuilding without this using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Probably needs to be merged at the same time as |
Pull request #17348 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
-1 Tested at: 498136e You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build ClangBuild
I found an error when building: >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testOneToManyAssociation.cc >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testAssociationVector.cc In file included from /cvmfs/cms-ib.cern.ch/nweek-02458/slc6_amd64_gcc530/external/gcc/5.3.0/include/c++/5.3.0/cassert:43:0, from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testBoostRange.cpp:9: /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testBoostRange.cpp: In function 'void test_sort(R)': /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testBoostRange.cpp:99:13: error: 'is_sorted' is not a member of '__gnu_cxx' assert(!__gnu_cxx::is_sorted(r.begin(), r.end(), DummySorter())); ^ /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testBoostRange.cpp:99:13: note: suggested alternative: In file included from /cvmfs/cms-ib.cern.ch/nweek-02458/slc6_amd64_gcc530/external/gcc/5.3.0/include/c++/5.3.0/algorithm:62:0, from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/interface/OrphanHandleBase.h:25,
I found a compilation error while trying to compile with clang: Selected class -> edm::Wrapper for ROOT: edm::Wrapper> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testRangeMap.cc >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testSortedCollection.cc >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testIDVectorMap.cc >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/ref_t.cppunit.cc >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/DetSetRefVector_t.cppunit.cc /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2017-02-06-2300/src/DataFormats/Common/test/testBoostRange.cpp:99:13: error: no member named 'is_sorted' in namespace '__gnu_cxx'; did you mean 'std::is_sorted'? assert(!__gnu_cxx::is_sorted(r.begin(), r.end(), DummySorter())); ^~~~~~~~~~~~~~~~~~~~ std::is_sorted /usr/include/assert.h:89:5: note: expanded from macro 'assert' ((expr) \ |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
Try replacing |
Pull request #17348 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar |
+1 |
@davidlange6 whitespace was a remnant of a merge. Pardon my spaces... |
No description provided.