Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug for ./cpt.py --create-dev-env Debug --with-workdir=./cling-build/ #478

Open
rppp opened this issue Nov 30, 2022 · 2 comments
Open

bug for ./cpt.py --create-dev-env Debug --with-workdir=./cling-build/ #478

rppp opened this issue Nov 30, 2022 · 2 comments
Labels

Comments

@rppp
Copy link

rppp commented Nov 30, 2022

[ 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

@rppp rppp added the bug label Nov 30, 2022
@SimeonEhrig
Copy link
Contributor

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.

@rppp
Copy link
Author

rppp commented Nov 30, 2022

my memory is enough, this is the error

[ 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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants