Skip to content

Conversation

@Teemperor
Copy link
Contributor

ROOT can't autoparse classes inside namespaces with the rootmap
system (as the loading callbacks don't correctly land where
they are supposed to land with our injected namespaces). As this
turns out to be a feature of some kind, let's preload
TMVA/TreePlayer/Graf to fix all failing tests that are related
to this feature/bug with modules enabled.

This commit can be dropped if we solve on of those problems:

  1. figure out how to fix this bug in the rootmap-based loading
    without regressin in performance.

  2. replace the rootmap system with something else like attaching
    all C++ modules on startup.

Note that we already do something like this in normal ROOT by
including these packages into the PCH which also makes those
decls available in the normal clang lookup.

This PR depends on #1394

@phsft-bot
Copy link

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, slc6/gcc62, ubuntu14/native, ubuntu14/native, windows10/vc15 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@Teemperor Teemperor mentioned this pull request Nov 29, 2017
@phsft-bot
Copy link

Build failed on centos7/gcc49.
See console output.

Errors:

  • ../root/core/metacling/src/TCling.cxx:1130:11: error: ‘CI’ was not declared in this scope
  • ../root/core/metacling/src/TCling.cxx:1379:60: error: invalid initialization of reference of type ‘cling::Interpreter&’ from expression of type ‘cling::Interpreter*’

@phsft-bot
Copy link

Build failed on mac1012/native.
See console output.

Errors:

  • /Volumes/MacintoshHD/build/jenkins/workspace/root-pullrequests-build/root/core/metacling/src/TCling.cxx:1130:11: error: use of undeclared identifier 'CI'
  • /Volumes/MacintoshHD/build/jenkins/workspace/root-pullrequests-build/root/core/metacling/src/TCling.cxx:1379:4: error: no matching function for call to 'LoadModules'

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • ../root/core/metacling/src/TCling.cxx:1130:11: error: ‘CI’ was not declared in this scope
  • ../root/core/metacling/src/TCling.cxx:1379:48: error: invalid initialization of reference of type ‘cling::Interpreter&’ from expression of type ‘cling::Interpreter*’

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • ../root/core/metacling/src/TCling.cxx:1379:48: error: invalid initialization of reference of type ‘cling::Interpreter&’ from expression of type ‘cling::Interpreter*’

@phsft-bot
Copy link

Build failed on slc6/gcc49.
See console output.

Errors:

  • ../root/core/metacling/src/TCling.cxx:1130:11: error: ‘CI’ was not declared in this scope
  • ../root/core/metacling/src/TCling.cxx:1379:60: error: invalid initialization of reference of type ‘cling::Interpreter&’ from expression of type ‘cling::Interpreter*’

@Teemperor Teemperor force-pushed the PreloadTMVATreePlayerGraf branch from ae109af to 7588a8a Compare November 29, 2017 10:53
@phsft-bot
Copy link

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, slc6/gcc62, ubuntu14/native, ubuntu14/native, windows10/vc15 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@Teemperor
Copy link
Contributor Author

@phsft-bot build just on slc6/gcc62 with flags -Druntime_cxxmodules=On -Dctest_test_exclude_none=on

@phsft-bot
Copy link

Starting build on slc6/gcc62 with flags -Dvc=OFF -Dimt=ON -Dccache=ON -Druntime_cxxmodules=On -Dctest_test_exclude_none=on
How to customize builds

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • ../root/core/metacling/src/TCling.cxx:1377:48: error: invalid initialization of reference of type ‘cling::Interpreter&’ from expression of type ‘cling::Interpreter*’

Warnings:

  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module Core:

@Teemperor Teemperor force-pushed the PreloadTMVATreePlayerGraf branch from 7588a8a to 0911233 Compare November 29, 2017 13:42
@phsft-bot
Copy link

Starting build on slc6/gcc62 with flags -Dvc=OFF -Dimt=ON -Dccache=ON -Druntime_cxxmodules=On -Dctest_test_exclude_none=on
How to customize builds

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • Error in <TCling::LoadModule>: Module TMVA not found!
  • Error: Error loading the default header files.

Warnings:

  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module Core:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module dequeDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module vectorDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module valarrayDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_setDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multimapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module mapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_multimapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_multisetDict:

And 7 more

@phsft-bot
Copy link

Starting build on slc6/gcc62 with flags -Dvc=OFF -Dimt=ON -Dccache=ON -Druntime_cxxmodules=On -Dctest_test_exclude_none=on
How to customize builds

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • ../root/core/metacling/src/TCling.cxx:1377:48: error: invalid initialization of reference of type ‘cling::Interpreter&’ from expression of type ‘cling::Interpreter*’

Warnings:

  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module Core:

@Teemperor Teemperor force-pushed the PreloadTMVATreePlayerGraf branch from a7e0a6d to b375f37 Compare November 30, 2017 13:50
@phsft-bot
Copy link

Starting build on slc6/gcc62 with flags -Dvc=OFF -Dimt=ON -Dccache=ON -Druntime_cxxmodules=On -Dctest_test_exclude_none=on
How to customize builds

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • Error: *** Datamember TWebFile::fFullCache: no size indication!
  • Error: *** Datamember TWebFile::fFullCache: pointer to fundamental type (need manual intervention)
  • Error: *** Datamember TKeyXML::fKeyNode: no size indication!
  • Error: *** Datamember TKeyXML::fKeyNode: pointer to fundamental type (need manual intervention)
  • Error: *** Datamember TXMLFile::fDoc: no size indication!
  • Error: *** Datamember TXMLFile::fDoc: pointer to fundamental type (need manual intervention)
  • Error: *** Datamember TXMLFile::fStreamerInfoNode: no size indication!
  • Error: *** Datamember TXMLFile::fStreamerInfoNode: pointer to fundamental type (need manual intervention)

Warnings:

  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module Core:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multimapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module mapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module dequeDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module listDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module valarrayDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_setDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module vectorDict:

And 7 more

@Teemperor Teemperor force-pushed the PreloadTMVATreePlayerGraf branch from b375f37 to 3e75e26 Compare November 30, 2017 15:19
@phsft-bot
Copy link

Starting build on slc6/gcc62 with flags -Dvc=OFF -Dimt=ON -Dccache=ON -Druntime_cxxmodules=On -Dctest_test_exclude_none=on
How to customize builds

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Warnings:

  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module Core:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module valarrayDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module listDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module vectorDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_setDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module unordered_multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multimapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module dequeDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module map2Dict:

And 7 more

@Teemperor Teemperor force-pushed the PreloadTMVATreePlayerGraf branch from 3e75e26 to 0761be8 Compare November 30, 2017 19:36
vgvassilev and others added 21 commits December 3, 2017 22:39
NFC beside fixing the nullptr deref's in the previous
LoadCoreModules implementation.
ROOT can't autoparse classes inside namespaces with the rootmap
system (as the loading callbacks don't correctly land where
they are supposed to land with our injected namespaces). As this
turns out to be a feature of some kind, let's preload
TMVA/TreePlayer/Graf to fix all failing tests that are related
to this feature/bug with modules enabled.

This commit can be dropped if we solve on of those problems:

1. figure out how to fix this bug in the rootmap-based loading
without regressin in performance.

2. replace the rootmap system with something else like attaching
all C++ modules on startup.

Note that we already do something like this in normal ROOT by
including these packages into the PCH which also makes those
decls available in the normal clang lookup.
@Teemperor Teemperor force-pushed the PreloadTMVATreePlayerGraf branch from 95c31ae to c8311df Compare December 19, 2017 08:39
@phsft-bot
Copy link

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, slc6/gcc62, ubuntu14/native, ubuntu14/native, windows10/vc15 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@phsft-bot
Copy link

Build failed on windows10/vc15.
See console output.

Errors:

  • ERROR: Error fetching remote repo 'origin'
  • error: RPC failed; curl 18 transfer closed with outstanding read data remaining
  • ERROR: Error fetching remote repo 'origin'

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

  • ERROR: Timeout after 10 minutes
  • ERROR: Error fetching remote repo 'origin'
  • stderr: error: RPC failed; result=18, HTTP code = 200
  • ERROR: Error fetching remote repo 'origin'

@phsft-bot
Copy link

Build failed on ubuntu14/native.
See console output.

Errors:

  • ERROR: Error fetching remote repo 'origin'
  • stderr: error: RPC failed; result=18, HTTP code = 200
  • ERROR: Error fetching remote repo 'origin'

@etejedor
Copy link
Collaborator

Still depending on #1394

@vgvassilev
Copy link
Member

Rebased in PR #1697.

@vgvassilev vgvassilev closed this Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants