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

Fix lazy loading of template specializations #13139

Merged
merged 6 commits into from Jul 4, 2023

Conversation

hahnjo
Copy link
Member

@hahnjo hahnjo commented Jun 30, 2023

No description provided.

@hahnjo hahnjo self-assigned this Jun 30, 2023
@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@github-actions
Copy link

github-actions bot commented Jun 30, 2023

Test Results

         9 files           9 suites   1d 20h 55m 10s ⏱️
  2 472 tests   2 472 ✔️ 0 💤 0
21 147 runs  21 147 ✔️ 0 💤 0

Results for commit 40cef5e.

♻️ This comment has been updated with latest results.

@hahnjo

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@vgvassilev
Copy link
Member

Build failed on mac13/cxx20. Running on macphsft21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build See console output.

Failing tests:

* [projectroot.roottest.python.distrdf.common.roottest_python_distrdf_common_test_all](https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/178636/testReport/projectroot.roottest.python.distrdf/common/roottest_python_distrdf_common_test_all/)

* [projectroot.roottest.python.distrdf.dask.roottest_python_distrdf_dask_test_all](https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/178636/testReport/projectroot.roottest.python.distrdf/dask/roottest_python_distrdf_dask_test_all/)

* [projectroot.roottest.python.distrdf.spark.roottest_python_distrdf_spark_test_all](https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/178636/testReport/projectroot.roottest.python.distrdf/spark/roottest_python_distrdf_spark_test_all/)

I believe we need to put a cling::Interpreter::PushTransactionRAII in cling::ParseProto::Parse because with the new patch we might trigger a deserialization.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@vgvassilev vgvassilev mentioned this pull request Jul 3, 2023
1 task
@phsft-bot

This comment was marked as outdated.

@hahnjo
Copy link
Member Author

hahnjo commented Jul 3, 2023

I believe we need to put a cling::Interpreter::PushTransactionRAII in cling::ParseProto::Parse because with the new patch we might trigger a deserialization.

Ok, not sure I fully understand what you propose... Can you add this change before the final "fixup" commit? You can push to the PR, right, or do I need to enable this somehow?

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-debian10-i386/soversion.
Running on pcepsft11.dyndns.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@hahnjo
Copy link
Member Author

hahnjo commented Jul 3, 2023

@phsft-bot build just on mac11/cxx17, mac11arm/cxx17, mac12/cxx17, mac12arm/cxx17, mac13/cxx20, mac13arm/cxx20 with flags -DCTEST_TEST_EXCLUDE_NONE=ON

@phsft-bot
Copy link
Collaborator

Starting build on mac11/cxx17, mac11arm/cxx17, mac12/cxx17, mac12arm/cxx17, mac13/cxx20, mac13arm/cxx20 with flags -DCTEST_TEST_EXCLUDE_NONE=ON
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac13arm/cxx20.
Running on macphsft28.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac11arm/cxx17.
Running on macphsft24.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2023-07-03T12:52:21.831Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TKDTree<int, double> const*)' from file 'math/mathcore/CMakeFiles/G__MathCore.dir/G__MathCore.cxx.o' to global weak symbol 'typeinfo for TKDTree<int, double>' from file 'math/mathcore/CMakeFiles/MathCore.dir/src/TKDTree.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:21.831Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TKDTree<int, double> const*)' from file 'math/mathcore/CMakeFiles/G__MathCore.dir/G__MathCore.cxx.o' to global weak symbol 'typeinfo for TKDTree<int, double>' from file 'math/mathcore/CMakeFiles/MathCore.dir/src/TKDTree.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:21.831Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TKDTree<int, float> const*)' from file 'math/mathcore/CMakeFiles/G__MathCore.dir/G__MathCore.cxx.o' to global weak symbol 'typeinfo for TKDTree<int, float>' from file 'math/mathcore/CMakeFiles/MathCore.dir/src/TKDTree.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:21.831Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TKDTree<int, float> const*)' from file 'math/mathcore/CMakeFiles/G__MathCore.dir/G__MathCore.cxx.o' to global weak symbol 'typeinfo for TKDTree<int, float>' from file 'math/mathcore/CMakeFiles/MathCore.dir/src/TKDTree.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:31.604Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TMatrixTBase<float> const*)' from file 'math/matrix/CMakeFiles/G__Matrix.dir/G__Matrix.cxx.o' to global weak symbol 'typeinfo for TMatrixTBase<float>' from file 'math/matrix/CMakeFiles/Matrix.dir/src/TMatrixTBase.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:31.604Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TMatrixTBase<float> const*)' from file 'math/matrix/CMakeFiles/G__Matrix.dir/G__Matrix.cxx.o' to global weak symbol 'typeinfo for TMatrixTBase<float>' from file 'math/matrix/CMakeFiles/Matrix.dir/src/TMatrixTBase.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:31.604Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TMatrixTBase<double> const*)' from file 'math/matrix/CMakeFiles/G__Matrix.dir/G__Matrix.cxx.o' to global weak symbol 'typeinfo for TMatrixTBase<double>' from file 'math/matrix/CMakeFiles/Matrix.dir/src/TMatrixTBase.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:31.604Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TMatrixTBase<double> const*)' from file 'math/matrix/CMakeFiles/G__Matrix.dir/G__Matrix.cxx.o' to global weak symbol 'typeinfo for TMatrixTBase<double>' from file 'math/matrix/CMakeFiles/Matrix.dir/src/TMatrixTBase.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:31.604Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TVectorT<float> const*)' from file 'math/matrix/CMakeFiles/G__Matrix.dir/G__Matrix.cxx.o' to global weak symbol 'typeinfo for TVectorT<float>' from file 'math/matrix/CMakeFiles/Matrix.dir/src/TVectorT.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  • [2023-07-03T12:52:31.604Z] ld: warning: direct access in function 'ROOT::GenerateInitInstanceLocal(TVectorT<float> const*)' from file 'math/matrix/CMakeFiles/G__Matrix.dir/G__Matrix.cxx.o' to global weak symbol 'typeinfo for TVectorT<float>' from file 'math/matrix/CMakeFiles/Matrix.dir/src/TVectorT.cxx.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

And 126 more

Failing tests:

@hahnjo
Copy link
Member Author

hahnjo commented Jul 3, 2023

@phsft-bot build with flags -Druntime_cxxmodules=OFF -DCTEST_TEST_EXCLUDE_NONE=ON

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/cxx14 with flags -Druntime_cxxmodules=OFF -DCTEST_TEST_EXCLUDE_NONE=ON
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/cxx17.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac12arm/cxx20.
Running on macphsft26.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac11/noimt.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/cxx14
How to customize builds

Copy link
Member

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

That's really a great job, @hahnjo!

hahnjo and others added 6 commits July 4, 2023 15:27
For hashing, we should not differentiate between templates and qualified
templates and only look at the underlying name.

See also https://reviews.llvm.org/D153003
This avoids deserialization if necessary, for example in DeclUnloader.

See also https://reviews.llvm.org/D154328
Due to hash collisions, it can happen that we load another template
specialization with the same hash. This is fine, as long as the next
call to findSpecializationImpl does not find a matching Decl for the
template arguments.
The LLVM 13 port of the patch missed to adapt findSpecialization of
ClassTemplateDecl and VarTemplateDecl. During the upgrade, we only
noticed and fixed FunctionTemplateDecl::findSpecialization.
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac11/noimt.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants