Module 'stl' imported by AST file found in a different module map file

I compiled ROOT 6.16 with the following cmake command

cmake -Dcxx14=ON -Druntime_cxxmodules=ON -Dminuit2=ON -DCMAKE_INSTALL_PREFIX=/opt/root6.16 -Dpython=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.5 -Droot7=OFF …

The compilation ended successfully.

Yet, when I start “root”, I get this following error messages

root
/opt/root6.16/include/module.modulemap:134:8: fatal error: module ‘stl’ imported by AST file ‘/opt/root6.16/lib/Core.pcm’ found in a
different module map file (/opt/root6.16/include/stl.modulemap) than when
the importing AST file was built
(/home/pamputt/root-6.16.00/builddir/include/stl.modulemap)
module “Core” {
^
/opt/root6.16/include/module.modulemap:134:8: note: imported by module ‘Core’ in ‘/opt/root6.16/lib/Core.pcm’
Info in TCling::LoadModule: Module Core failed to load
Error in TCling::LoadModule: Module Core not found!
Info in TCling::LoadModule: Module RIO failed to load
Error in TCling::LoadModule: Module RIO not found!
Info in TCling::LoadModule: Module VMC failed to load
Error in TCling::LoadModule: Module VMC not found!
Info in TCling::LoadModule: Module Unfold failed to load
Error in TCling::LoadModule: Module Unfold not found!
Info in TCling::LoadModule: Module RHTTPSniff failed to load
Error in TCling::LoadModule: Module RHTTPSniff not found!
Info in TCling::LoadModule: Module Imt failed to load
Error in TCling::LoadModule: Module Imt not found!
Info in TCling::LoadModule: Module HistPainter failed to load
Error in TCling::LoadModule: Module HistPainter not found!
Info in TCling::LoadModule: Module PyMVA failed to load
Error in TCling::LoadModule: Module PyMVA not found!
Info in TCling::LoadModule: Module RDAVIX failed to load
Error in TCling::LoadModule: Module RDAVIX not found!
Info in TCling::LoadModule: Module RHTTP failed to load
Error in TCling::LoadModule: Module RHTTP not found!
Info in TCling::LoadModule: Module FitPanel failed to load
Error in TCling::LoadModule: Module FitPanel not found!
Info in TCling::LoadModule: Module ROOTVecOps failed to load
Error in TCling::LoadModule: Module ROOTVecOps not found!
Info in TCling::LoadModule: Module ProofDraw failed to load
Error in TCling::LoadModule: Module ProofDraw not found!
Info in TCling::LoadModule: Module Quadp failed to load
Error in TCling::LoadModule: Module Quadp not found!
Info in TCling::LoadModule: Module GeomPainter failed to load
Error in TCling::LoadModule: Module GeomPainter not found!
Info in TCling::LoadModule: Module Genetic failed to load
Error in TCling::LoadModule: Module Genetic not found!
Info in TCling::LoadModule: Module Eve failed to load
Error in TCling::LoadModule: Module Eve not found!
Info in TCling::LoadModule: Module TreeViewer failed to load
Error in TCling::LoadModule: Module TreeViewer not found!
Info in TCling::LoadModule: Module Physics failed to load
Error in TCling::LoadModule: Module Physics not found!
Info in TCling::LoadModule: Module EG failed to load
Error in TCling::LoadModule: Module EG not found!
Info in TCling::LoadModule: Module Tree failed to load
Error in TCling::LoadModule: Module Tree not found!
Info in TCling::LoadModule: Module HistFactory failed to load
Error in TCling::LoadModule: Module HistFactory not found!
Info in TCling::LoadModule: Module Spectrum failed to load
Error in TCling::LoadModule: Module Spectrum not found!
Info in TCling::LoadModule: Module Matrix failed to load
Error in TCling::LoadModule: Module Matrix not found!
Info in TCling::LoadModule: Module Html failed to load
Error in TCling::LoadModule: Module Html not found!
Info in TCling::LoadModule: Module Hist failed to load
Error in TCling::LoadModule: Module Hist not found!
Info in TCling::LoadModule: Module GuiHtml failed to load
Error in TCling::LoadModule: Module GuiHtml not found!
Info in TCling::LoadModule: Module Postscript failed to load
Error in TCling::LoadModule: Module Postscript not found!
Info in TCling::LoadModule: Module Gpad failed to load
Error in TCling::LoadModule: Module Gpad not found!
Info in TCling::LoadModule: Module TMVAGui failed to load
Error in TCling::LoadModule: Module TMVAGui not found!
Info in TCling::LoadModule: Module RGL failed to load
Error in TCling::LoadModule: Module RGL not found!
Info in TCling::LoadModule: Module Fumili failed to load
Error in TCling::LoadModule: Module Fumili not found!
Info in TCling::LoadModule: Module Net failed to load
Error in TCling::LoadModule: Module Net not found!
Info in TCling::LoadModule: Module Geom failed to load
Error in TCling::LoadModule: Module Geom not found!
Info in TCling::LoadModule: Module X3d failed to load
Error in TCling::LoadModule: Module X3d not found!
Info in TCling::LoadModule: Module SPlot failed to load
Error in TCling::LoadModule: Module SPlot not found!
Info in TCling::LoadModule: Module RooFit failed to load
Error in TCling::LoadModule: Module RooFit not found!
Info in TCling::LoadModule: Module GeomBuilder failed to load
Error in TCling::LoadModule: Module GeomBuilder not found!
Info in TCling::LoadModule: Module Rint failed to load
Error in TCling::LoadModule: Module Rint not found!
Info in TCling::LoadModule: Module XMLParser failed to load
Error in TCling::LoadModule: Module XMLParser not found!
Info in TCling::LoadModule: Module MultiProc failed to load
Error in TCling::LoadModule: Module MultiProc not found!
Info in TCling::LoadModule: Module RooStats failed to load
Error in TCling::LoadModule: Module RooStats not found!
Info in TCling::LoadModule: Module Proof failed to load
Error in TCling::LoadModule: Module Proof not found!
Info in TCling::LoadModule: Module FITSIO failed to load
Error in TCling::LoadModule: Module FITSIO not found!
Info in TCling::LoadModule: Module Ged failed to load
Error in TCling::LoadModule: Module Ged not found!
Info in TCling::LoadModule: Module Recorder failed to load
Error in TCling::LoadModule: Module Recorder not found!
Info in TCling::LoadModule: Module FFTW failed to load
Error in TCling::LoadModule: Module FFTW not found!
Info in TCling::LoadModule: Module GuiBld failed to load
Error in TCling::LoadModule: Module GuiBld not found!
Info in TCling::LoadModule: Module ROOTWebDisplay failed to load
Error in TCling::LoadModule: Module ROOTWebDisplay not found!
Info in TCling::LoadModule: Module RooFitCore failed to load
Error in TCling::LoadModule: Module RooFitCore not found!
Info in TCling::LoadModule: Module Gui failed to load
Error in TCling::LoadModule: Module Gui not found!
Info in TCling::LoadModule: Module SQLIO failed to load
Error in TCling::LoadModule: Module SQLIO not found!
Info in TCling::LoadModule: Module XMLIO failed to load
Error in TCling::LoadModule: Module XMLIO not found!
Info in TCling::LoadModule: Module GX11TTF failed to load
Error in TCling::LoadModule: Module GX11TTF not found!
Info in TCling::LoadModule: Module ProofPlayer failed to load
Error in TCling::LoadModule: Module ProofPlayer not found!
Info in TCling::LoadModule: Module ASImage failed to load
Error in TCling::LoadModule: Module ASImage not found!
Info in TCling::LoadModule: Module MathMore failed to load
Error in TCling::LoadModule: Module MathMore not found!
Info in TCling::LoadModule: Module Foam failed to load
Error in TCling::LoadModule: Module Foam not found!
Info in TCling::LoadModule: Module SpectrumPainter failed to load
Error in TCling::LoadModule: Module SpectrumPainter not found!
Info in TCling::LoadModule: Module Minuit2 failed to load
Error in TCling::LoadModule: Module Minuit2 not found!
Info in TCling::LoadModule: Module MLP failed to load
Error in TCling::LoadModule: Module MLP not found!
Info in TCling::LoadModule: Module ROOTDataFrame failed to load
Error in TCling::LoadModule: Module ROOTDataFrame not found!
Info in TCling::LoadModule: Module GenVector failed to load
Error in TCling::LoadModule: Module GenVector not found!
Info in TCling::LoadModule: Module RootAuth failed to load
Error in TCling::LoadModule: Module RootAuth not found!
Info in TCling::LoadModule: Module Minuit failed to load
Error in TCling::LoadModule: Module Minuit not found!
Info in TCling::LoadModule: Module TMVA failed to load
Error in TCling::LoadModule: Module TMVA not found!
Info in TCling::LoadModule: Module Graf3d failed to load
Error in TCling::LoadModule: Module Graf3d not found!
Info in TCling::LoadModule: Module ASImageGui failed to load
Error in TCling::LoadModule: Module ASImageGui not found!
Info in TCling::LoadModule: Module Graf failed to load
Error in TCling::LoadModule: Module Graf not found!
Info in TCling::LoadModule: Module GX11 failed to load
Error in TCling::LoadModule: Module GX11 not found!
Info in TCling::LoadModule: Module Gdml failed to load
Error in TCling::LoadModule: Module Gdml not found!
Info in TCling::LoadModule: Module ProofBench failed to load
Error in TCling::LoadModule: Module ProofBench not found!
Info in TCling::LoadModule: Module MathCore failed to load
Error in TCling::LoadModule: Module MathCore not found!
Info in TCling::LoadModule: Module Gviz3d failed to load
Error in TCling::LoadModule: Module Gviz3d not found!
Info in TCling::LoadModule: Module WebGui6 failed to load
Error in TCling::LoadModule: Module WebGui6 not found!
Info in TCling::LoadModule: Module TreePlayer failed to load
Error in TCling::LoadModule: Module TreePlayer not found!
Info in TCling::LoadModule: Module Smatrix failed to load
Error in TCling::LoadModule: Module Smatrix not found!
Info in TCling::LoadModule: Module PyROOT failed to load
Error in TCling::LoadModule: Module PyROOT not found!
Info in TCling::LoadModule: Module SessionViewer failed to load
Error in TCling::LoadModule: Module SessionViewer not found!
Info in TCling::LoadModule: Module Thread failed to load
Error in TCling::LoadModule: Module Thread not found!

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f2c905f346a in waitpid () from /usr/lib64/libc.so.6
#1 0x00007f2c9057514c in do_system () from /usr/lib64/libc.so.6
#2 0x00007f2c916f5708 in TUnixSystem::Exec (shellcmd=, this=0xeb2570) at /home/pamputt/root-6.16.00/core/unix/src/TUnixSystem.cxx:2119
#3 TUnixSystem::StackTrace (this=0xeb2570) at /home/pamputt/root-6.16.00/core/unix/src/TUnixSystem.cxx:2413
#4 0x00007f2c916f7de3 in TUnixSystem::DispatchSignals (this=0xeb2570, sig=kSigSegmentationViolation) at /home/pamputt/root-6.16.00/core/unix/src/TUnixSystem.cxx:3644
#5
#6 0x00007f2c8da310bd in clang::Sema::LookupQualifiedName(clang::LookupResult&, clang::DeclContext*, bool) [clone .part.1011] () from /opt/root6.16/lib/libCling.so
#7 0x00007f2c8c2dd650 in cling::EvaluateTSynthesizer::Initialize() () from /opt/root6.16/lib/libCling.so
#8 0x00007f2c8c2df205 in cling::EvaluateTSynthesizer::Transform(clang::Decl*) () from /opt/root6.16/lib/libCling.so
#9 0x00007f2c8c2d0e32 in cling::DeclCollector::TransformDecl(clang::Decl*) const () from /opt/root6.16/lib/libCling.so
#10 0x00007f2c8c2d0ff4 in cling::DeclCollector::Transform(clang::DeclGroupRef&) () from /opt/root6.16/lib/libCling.so
#11 0x00007f2c8c2d1163 in cling::DeclCollector::HandleTopLevelDecl(clang::DeclGroupRef) () from /opt/root6.16/lib/libCling.so
#12 0x00007f2c8c2b059c in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /opt/root6.16/lib/libCling.so
#13 0x00007f2c8c2b130c in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /opt/root6.16/lib/libCling.so
#14 0x00007f2c8c24d29e in cling::Interpreter::DeclareInternal(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cling::CompilationOptions const&, cling::Transaction**) const () from /opt/root6.16/lib/libCling.so
#15 0x00007f2c8c24d3f2 in cling::Interpreter::declare(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cling::Transaction**) () from /opt/root6.16/lib/libCling.so
#16 0x00007f2c8c20d083 in TClingCallbacks::TClingCallbacks (this=0x17c7c70, interp=) at /home/pamputt/root-6.16.00/core/metacling/src/TClingCallbacks.cxx:83
#17 0x00007f2c8c1d57aa in TCling::TCling (this=0xf24030, name=, title=, argv=) at /home/pamputt/root-6.16.00/core/metacling/src/TCling.cxx:1423
#18 0x00007f2c8c1d6e54 in CreateInterpreter (interpLibHandle=, argv=argv
entry=0x7ffc76154c10) at /home/pamputt/root-6.16.00/core/metacling/src/TCling.cxx:630
#19 0x00007f2c915266b3 in TROOT::InitInterpreter (this=0x7f2c919e0d80 ROOT::Internal::GetROOT1()::alloc) at /home/pamputt/root-6.16.00/core/base/src/TROOT.cxx:2113
#20 0x00007f2c91526bd6 in ROOT::Internal::GetROOT2 () at /home/pamputt/root-6.16.00/core/base/src/TROOT.cxx:387
#21 0x00007f2c915ab715 in TApplication::TApplication (this=0xeec020, appClassName=0x400b84 “Rint”, argc=0x7ffc76156e3c, argv=0x7ffc76156f38, numOptions=0) at /home/pamputt/root-6.16.00/core/base/src/TApplication.cxx:156
#22 0x00007f2c91a281a1 in TRint::TRint (this=0xeec020, appClassName=, argc=, argv=, options=, numOptions=, noLogo=false) at /home/pamputt/root-6.16.00/core/rint/src/TRint.cxx:146
#23 0x00000000004009be in main (argc=2, argv=0x7ffc76156f38) at /home/pamputt/root-6.16.00/main/src/rmain.cxx:27
===========================================================

The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum ROOT Forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at Sign in to GitHub · GitHub Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 0x00007f2c8da310bd in clang::Sema::LookupQualifiedName(clang::LookupResult&, clang::DeclContext*, bool) [clone .part.1011] () from /opt/root6.16/lib/libCling.so
#7 0x00007f2c8c2dd650 in cling::EvaluateTSynthesizer::Initialize() () from /opt/root6.16/lib/libCling.so
#8 0x00007f2c8c2df205 in cling::EvaluateTSynthesizer::Transform(clang::Decl*) () from /opt/root6.16/lib/libCling.so
#9 0x00007f2c8c2d0e32 in cling::DeclCollector::TransformDecl(clang::Decl*) const () from /opt/root6.16/lib/libCling.so
#10 0x00007f2c8c2d0ff4 in cling::DeclCollector::Transform(clang::DeclGroupRef&) () from /opt/root6.16/lib/libCling.so
#11 0x00007f2c8c2d1163 in cling::DeclCollector::HandleTopLevelDecl(clang::DeclGroupRef) () from /opt/root6.16/lib/libCling.so
#12 0x00007f2c8c2b059c in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /opt/root6.16/lib/libCling.so
#13 0x00007f2c8c2b130c in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /opt/root6.16/lib/libCling.so
#14 0x00007f2c8c24d29e in cling::Interpreter::DeclareInternal(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cling::CompilationOptions const&, cling::Transaction**) const () from /opt/root6.16/lib/libCling.so
#15 0x00007f2c8c24d3f2 in cling::Interpreter::declare(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cling::Transaction**) () from /opt/root6.16/lib/libCling.so
#16 0x00007f2c8c20d083 in TClingCallbacks::TClingCallbacks (this=0x17c7c70, interp=) at /home/pamputt/root-6.16.00/core/metacling/src/TClingCallbacks.cxx:83
#17 0x00007f2c8c1d57aa in TCling::TCling (this=0xf24030, name=, title=, argv=) at /home/pamputt/root-6.16.00/core/metacling/src/TCling.cxx:1423
#18 0x00007f2c8c1d6e54 in CreateInterpreter (interpLibHandle=, argv=argv
entry=0x7ffc76154c10) at /home/pamputt/root-6.16.00/core/metacling/src/TCling.cxx:630
#19 0x00007f2c915266b3 in TROOT::InitInterpreter (this=0x7f2c919e0d80 ROOT::Internal::GetROOT1()::alloc) at /home/pamputt/root-6.16.00/core/base/src/TROOT.cxx:2113
#20 0x00007f2c91526bd6 in ROOT::Internal::GetROOT2 () at /home/pamputt/root-6.16.00/core/base/src/TROOT.cxx:387
#21 0x00007f2c915ab715 in TApplication::TApplication (this=0xeec020, appClassName=0x400b84 “Rint”, argc=0x7ffc76156e3c, argv=0x7ffc76156f38, numOptions=0) at /home/pamputt/root-6.16.00/core/base/src/TApplication.cxx:156
#22 0x00007f2c91a281a1 in TRint::TRint (this=0xeec020, appClassName=, argc=, argv=, options=, numOptions=, noLogo=false) at /home/pamputt/root-6.16.00/core/rint/src/TRint.cxx:146
#23 0x00000000004009be in main (argc=2, argv=0x7ffc76156f38) at /home/pamputt/root-6.16.00/main/src/rmain.cxx:27
===========================================================

@yukatkh can you take a look please? :slight_smile:

Hello, thank you for the report. Did you source thisroot.sh from (/home/pamputt/root-6.16.00/builddir/bin/thisroot.sh) ? This is an error when ROOT finds multiple modulemaps in your paths.

Actually this is weird. If I source thisroot.sh from /home/pamputt/root-6.16.00/builddir/bin/thisroot.sh, ROOT starts successfully. But if I source from /opt/root6.16/bin/thisroot.sh, I get this crash. The thisroot.sh file is exactly the same.

You built ROOT in /home/pamputt/root-6.16.00/builddir/ and installed to /opt/root6.16, right? The problem was that module has a hardcoded path to build directory even if it’s installed. This is already fixed in master, and will be backported in 6.16.02. Meanwhile, could you please use ROOT from bulid directory when using runtime modules? Sorry for inconvinience, but I’m happy that someone is trying this feature out.

Yes, that’s it. So I will source from the build directory. Thanks for the explanation.

I checked on the github repository and I do not see which commit fixes this issue.


This one should fix your problem, it’ll be great if you could try it out!

Ok, I will try these changes and let you know. BTW, this code is not yet present in the 6.16 branch.

I just downloaded the latest version of the 6.16 branch (where the patch has been backported) and compiled it successfully. The problem is fixed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.