Installation Issues

Hello,

I installed Visual Studio 2017 and then used the Windows installer for version 6.14.00. When I attempt to run the root executable from a terminal window, I get the following errors.

RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
input_line_1:1:10: fatal error: ‘new’ file not found
#include
^~~~~
Assertion failed: OldBuilder->DeferredDeclsToEmit.empty() && “Should have emitted all decls deferred to emit.”, file C:\build\release\BUILDTYPE\Release\sources\root-6.14.00\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

I cannot figure out what the issue is. Do I need some additional tools beyond the standard installation of Visual Studio 2017?

Best regards,
Ashley


_ROOT Version: root_v6.14.00
_Platform: Windows 10
Compiler: Not Provided


Hi Ashley,

The first thing to try is to run ROOT from a x86 Native Tools Command Prompt for VS 2017, that should at least fix the problem of RegQueryValueEx: returned 2: The system cannot find the file specified.
One possible other issue would be a different version of Visual Studio between yours and the one used to build ROOT. If it is the case, then you could try to build ROOT from source…

Cheers, Bertrand.

Thanks Bertrand,

I used the VS 2017 command prompt this time. I received fewer errors, but it still does not work.

RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
input_line_1:1:10: fatal error: ‘new’ file not found
#include
^~~~~
Assertion failed: OldBuilder->DeferredDeclsToEmit.empty() && “Should have emitted all decls deferred to emit.”, file C:\build\release\BUILDTYPE\Release\sources\root-6.14.00\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

Thanks,
Ashley

OK, so you could try to build ROOT from source using CMake. For example something like:

cmake -G "Visual Studio 15 2017" /path/to/source/dir
cmake --build . --config [Release|Debug]

See also building root.

I tried a different approach and set up ROOT in an Ubuntu 18 Windows subsystem with all of the required packages. I can actually open ROOT now and do some basic math functions. However, I get errors when I try to run the demo. To alleviate the first error, I tried installing the libtbb-dev package, but it says it cannot be found. Same thing if I try libtbb2. I guess I am getting closer…

cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory
root [0] .demo
cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory
IncrementalExecutor::executeFunction: symbol ‘_ZN11TControlBarC1EPKcS1_ii’ unresolved while linking function ‘_GLOBAL__sub_I_cling_module_6’!
You are probably missing the definition of TControlBar::TControlBar(char const*, char const*, int, int)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZN11TControlBar9AddButtonEPKcS1_S1_S1’ unresolved while linking function ‘_GLOBAL__sub_I_cling_module_6’!
You are probably missing the definition of TControlBar::AddButton(char const*, char const*, char const*, char const*)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘_ZN11TControlBar4ShowEv’ unresolved while linking function ‘_GLOBAL__sub_I_cling_module_6’!
You are probably missing the definition of TControlBar::Show()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘_ZN11TControlBar14SetButtonWidthEj’ unresolved while linking function ‘_GLOBAL__sub_I_cling_module_6’!
You are probably missing the definition of TControlBar::SetButtonWidth(unsigned int)
Maybe you need to load the corresponding shared library?
Generating stack trace…
0x00007fcd4f4e7adf in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) + 0x1df from /home/ashbat/root/lib/libCling.so
0x00007fcd4f4e82c7 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cling::Value*, cling::Transaction**, bool) + 0x177 from /home/ashbat/root/lib/libCling.so
0x00007fcd4f59997f in cling::MetaProcessor::readInputFromFile(llvm::StringRef, cling::Value*, unsigned long, bool) + 0xf5f from /home/ashbat/root/lib/libCling.so
0x00007fcd4f451d14 in from /home/ashbat/root/lib/libCling.so
0x00007fcd4f443e97 in from /home/ashbat/root/lib/libCling.so
0x00007fcd548fa5a8 in TApplication::ExecuteFile(char const*, int*, bool) + 0x508 from /home/ashbat/root/lib/libCore.so
0x00007fcd548f9d65 in TApplication::ProcessLine(char const*, bool, int*) + 0xa25 from /home/ashbat/root/lib/libCore.so
0x00007fcd548f9781 in TApplication::ProcessLine(char const*, bool, int*) + 0x441 from /home/ashbat/root/lib/libCore.so
0x00007fcd54de0722 in TRint::ProcessLineNr(char const*, char const*, int*) + 0x62 from /home/ashbat/root/lib/libRint.so
0x00007fcd54de0b14 in TRint::HandleTermInput() + 0x214 from /home/ashbat/root/lib/libRint.so
0x00007fcd54a4d860 in TUnixSystem::CheckDescriptors() + 0x1c0 from /home/ashbat/root/lib/libCore.so
0x00007fcd54a4f1f8 in TUnixSystem::DispatchOneEvent(bool) + 0x508 from /home/ashbat/root/lib/libCore.so
0x00007fcd54964cc1 in TSystem::Run() + 0xe1 from /home/ashbat/root/lib/libCore.so
0x00007fcd548f798f in TApplication::Run(bool) + 0x1f from /home/ashbat/root/lib/libCore.so
0x00007fcd54de21f3 in TRint::Run(bool) + 0x3a3 from /home/ashbat/root/lib/libRint.so
0x00007fcd55600a6c in from /home/ashbat/root/bin/root.exe
0x00007fcd53d71b97 in __libc_start_main + 0xe7 from /lib/x86_64-linux-gnu/libc.so.6
0x00007fcd55600aca in _start + 0x2a from /home/ashbat/root/bin/root.exe
Error in TRint::HandleTermInput(): cling::InvalidDerefException caught: Trying to dereference null pointer or trying to call routine taking non-null arguments

Thanks,
Ashley

Well, how did you configure ROOT? you have choice to disable imt (imt=OFF), or enable imt (imt=ON) and use builtin_tbb=ON

Excellent! I compiled ROOT with builtin_tbb=ON. That totally did the trick. Thank you so much for your help.

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