You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typical Error 2 is thrown, if your linker is running out of memory. For building a debug build with 24 threads you need in peak 70GB RAM. I suggest to set manually the number of cores via the argument --number-of-cores.
8GB RAM per thread is safe. 4GB per thread my also work.
[ 95%] Building CXX object tools/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoSynthesizer.cpp.o
[ 95%] Building CXX object tools/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o
[ 95%] Building CXX object tools/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ASTTransformer.cpp.o
/home/rs/cling-build/cling-src/tools/cling/lib/UserInterface/UserInterface.cpp: In member function ‘void cling::UserInterface::runInteractively(bool)’:
/home/rs/cling-build/cling-src/tools/cling/lib/UserInterface/UserInterface.cpp:93:14: error: ‘make_unique’ is not a member of ‘std’
93 | std::make_unique(m_MetaProcessor->getInterpreter());
| ^~~~~~~~~~~
/home/rs/cling-build/cling-src/tools/cling/lib/UserInterface/UserInterface.cpp:93:14: note: ‘std::make_unique’ is only available from C++14 onwards
/home/rs/cling-build/cling-src/tools/cling/lib/UserInterface/UserInterface.cpp:93:41: error: expected primary-expression before ‘>’ token
93 | std::make_unique(m_MetaProcessor->getInterpreter());
| ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unused-local-typedef’
cc1plus: warning: unrecognized command line option ‘-Wno-covered-switch-default’
cc1plus: warning: unrecognized command line option ‘-Wno-nested-anon-types’
make[3]: *** [tools/cling/lib/UserInterface/CMakeFiles/clingUserInterface.dir/build.make:63: tools/cling/lib/UserInterface/CMakeFiles/clingUserInterface.dir/UserInterface.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:54019: tools/cling/lib/UserInterface/CMakeFiles/clingUserInterface.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 91%] Linking CXX static library ../../libLLVMX86CodeGen.a
[ 91%] Built target LLVMX86CodeGen
make[1]: *** [CMakeFiles/Makefile2:54418: tools/cling/tools/driver/CMakeFiles/cling.dir/rule] Error 2
make: *** [Makefile:12523: cling] Error 2
subprocess.CalledProcessError: Command 'make -j 24 cling' returned non-zero exit status 2
My system is:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
The text was updated successfully, but these errors were encountered: