Skip to content

Conversation

@Teemperor
Copy link
Contributor

@Teemperor Teemperor commented Nov 29, 2017

Refactored LoadCoreModules that it now prints a warning if a module isn't found. Also fixes some nullptr-derefs from the old code where we accessed pointers before checking if they're null.

@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 ubuntu14/native.
See console output.

Errors:

  • /mnt/vdb/lsf/workspace/root-pullrequests-build/root/core/metacling/src/TCling.cxx:1130:11: error: ‘CI’ was not declared in this scope

@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'

@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

@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

@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

@Teemperor Teemperor force-pushed the RemoveLoadCoreModules branch from fdaf551 to 5b3c6d5 Compare November 29, 2017 10:52
@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:

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 setDict:
  • 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 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 multimap2Dict:
  • 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 listDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module vectorDict:

And 7 more

Failing tests:

And 274 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:

  • 295/1653 Test documentation: fix legacy definition name #190: tutorial-dataframe-tdf013_InspectAnalysis .........................................................***Failed Error regular expression found in output. Regex=[: error:] 1.52 sec
  • 545/1653 Test [TDF] Add ranges to user guide + a little bit of code formatting #449: tutorial-math-quasirandom .........................................................................***Failed Error regular expression found in output. Regex=[: error:] 0.92 sec
  • 573/1653 Test Fixes to 10 coverity defect reports #480: tutorial-multicore-mtbb201_parallelHistoFill ......................................................***Failed Error regular expression found in output. Regex=[: error:] 3.46 sec
  • 687/1653 Test Utilize git submodules for roottest #599: tutorial-roostats-Zbi_Zgamma ......................................................................***Failed Error regular expression found in output. Regex=[: error:] 1.66 sec
  • 699/1653 Test Resolve warnings reported by -Wnon-virtual-dtor #611: tutorial-roostats-rs_numbercountingutils ..........................................................***Failed Error regular expression found in output. Regex=[: error:] 1.35 sec
  • 734/1653 Test Fix buffer overflow. #651: tutorial-tmva-keras-LaunchClasGUI .................................................................***Failed Error regular expression found in output. Regex=[: error:] 2.20 sec
  • 736/1653 Test Increased tolerance #652: tutorial-tmva-keras-LaunchMultiGUI ................................................................***Failed Error regular expression found in output. Regex=[: error:] 7.07 sec
  • 737/1653 Test Make cling build again on Windows (following the recent changes). To … #653: tutorial-tmva-keras-LaunchRegGUI ..................................................................***Failed Error regular expression found in output. Regex=[: error:] 7.17 sec
  • 777/1653 Test cling PR 162 #702: tutorial-dataframe-tdf002_dataModel-py ............................................................***Failed Error regular expression found in output. Regex=[: error:] 2.13 sec

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 map2Dict:
  • 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 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 multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module setDict:
  • 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 multimapDict:

And 7 more

Failing tests:

And 274 more

@Teemperor Teemperor force-pushed the RemoveLoadCoreModules branch from 9dd4fec to a49e8db Compare November 30, 2017 09:03
@Teemperor Teemperor requested a review from amadio as a code owner November 30, 2017 09:03
@Teemperor Teemperor changed the title [cxxmodules] Refactor LoadCoreModules. [testing][cxxmodules] Refactor LoadCoreModules. Nov 30, 2017
@Teemperor Teemperor force-pushed the RemoveLoadCoreModules branch from a49e8db to ff9a4ad Compare November 30, 2017 09:05
@Teemperor
Copy link
Contributor Author

Teemperor commented Nov 30, 2017

Uff, clang format doesn't like the RegisterModule way of doing code formatting...

@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

@Teemperor Teemperor force-pushed the RemoveLoadCoreModules branch from ff9a4ad to bb286fe Compare November 30, 2017 09: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.

Errors:

  • 297/1653 Test documentation: fix legacy definition name #190: tutorial-dataframe-tdf013_InspectAnalysis .........................................................***Failed Error regular expression found in output. Regex=[: error:] 1.26 sec
  • 549/1653 Test [TDF] Add ranges to user guide + a little bit of code formatting #449: tutorial-math-quasirandom .........................................................................***Failed Error regular expression found in output. Regex=[: error:] 1.65 sec
  • 573/1653 Test Fixes to 10 coverity defect reports #480: tutorial-multicore-mtbb201_parallelHistoFill ......................................................***Failed Error regular expression found in output. Regex=[: error:] 4.49 sec
  • 687/1653 Test Utilize git submodules for roottest #599: tutorial-roostats-Zbi_Zgamma ......................................................................***Failed Error regular expression found in output. Regex=[: error:] 1.83 sec
  • 700/1653 Test Resolve warnings reported by -Wnon-virtual-dtor #611: tutorial-roostats-rs_numbercountingutils ..........................................................***Failed Error regular expression found in output. Regex=[: error:] 1.72 sec
  • 734/1653 Test Fix buffer overflow. #651: tutorial-tmva-keras-LaunchClasGUI .................................................................***Failed Error regular expression found in output. Regex=[: error:] 0.91 sec
  • 736/1653 Test Increased tolerance #652: tutorial-tmva-keras-LaunchMultiGUI ................................................................***Failed Error regular expression found in output. Regex=[: error:] 0.91 sec
  • 738/1653 Test Make cling build again on Windows (following the recent changes). To … #653: tutorial-tmva-keras-LaunchRegGUI ..................................................................***Failed Error regular expression found in output. Regex=[: error:] 2.03 sec
  • 777/1653 Test cling PR 162 #702: tutorial-dataframe-tdf002_dataModel-py ............................................................***Failed Error regular expression found in output. Regex=[: error:] 2.02 sec

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 listDict:
  • 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 valarrayDict:
  • 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 vectorDict:
  • 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 setDict:
  • 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_multimapDict:

And 7 more

Failing tests:

And 48 more

@Teemperor
Copy link
Contributor Author

Teemperor commented Dec 4, 2017

Additional runtime modules failures are because of the (legitimate) warning that we can't find modules sometimes. Will be fixed in a future PR where we add more paths to clang's PrebuiltModulePaths.

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.

LGTM!

Teemperor and others added 2 commits December 13, 2017 17:08
If we generate a dictionary with a C++ module with rootcling we
should write in the payload that we generated a C++ module.
This way we can actually print a *reliable* warning when we fail
to load the C++ module during runtime. Without this we can only
speculate if a missing C++ module is intentional.
This refactors the LoadCoreModules function into a LoadModule
function that centralizes the loading/diagnosing module loading
in TCling. It also now prints out warnings when a module can't
be found, which brings diagnostic to the module loading in
`RegisterModule`.
@Teemperor Teemperor force-pushed the RemoveLoadCoreModules branch from 97fbd59 to 76d87f1 Compare December 13, 2017 16:57
@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 changed the title [testing][cxxmodules] Refactor LoadCoreModules. [cxxmodules] Refactor LoadCoreModules. Dec 13, 2017
@Teemperor
Copy link
Contributor Author

@phsft-bot build just on slc6/clang_gcc62 with flags -Dcxxmodules=Off -Druntime_cxxmodules=On -Dctest_test_exclude_none=on

@phsft-bot
Copy link

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

@phsft-bot
Copy link

Build failed on slc6/clang_gcc62.
See console output.

@Teemperor
Copy link
Contributor Author

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

@phsft-bot
Copy link

Starting build on centos7/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 centos7/gcc62.
See console output.

@Teemperor
Copy link
Contributor Author

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

@phsft-bot
Copy link

Starting build on centos7/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 centos7/gcc62.
See console output.

@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

@Teemperor
Copy link
Contributor Author

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

@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 -Droofit=Off
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 -Droofit=Off

@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 -Droofit=Off
How to customize builds

@phsft-bot
Copy link

Build failed on slc6/gcc62.
See console output.

Errors:

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 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 unordered_multisetDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module multimap2Dict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module map2Dict:
  • 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_mapDict:
  • Warning in <GenerateModule>: warning: Couldn't find the following specified headers in the module setDict:

And 7 more

Failing tests:

And 55 more

@amadio
Copy link
Member

amadio commented Jan 29, 2018

What is the status here? Should this be updated and merged, or closed?

@Teemperor
Copy link
Contributor Author

Well, it mostly just exposes a bug more visible (the lack of codegen when loading code with LoadModule) which causes more tests to fail. And fixing codegen problems isn't very straightforward :)

@vgvassilev
Copy link
Member

@Teemperor can you rebase or shall I?

@vgvassilev
Copy link
Member

That's PR #1665.

@vgvassilev vgvassilev closed this Feb 23, 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