Problem of ABI compatibility on Ubuntu 22.04 in a conda env
I had some troubles to run the notebooks on my Ubuntu 22.04 in a conda environment. The error was:
[I 2022-08-04 15:15:22.449 ServerApp] Kernel started: ea35c43a-8429-4672-be4f-d39975be0373
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20210601'
Extraction of runtime standard library version was: '20220527'
[I 2022-08-04 15:15:25.439 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20210601'
Extraction of runtime standard library version was: '20220527'
Same error when launching cling
:
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20210601'
Extraction of runtime standard library version was: '20220527'
After discussing with @steff I created a new conda environment with conda create -n gettingstartedwithmoderncpp "python>=3.8" jupyterlab xeus-cling gcc_linux-64=9.3.0 -c conda-forge
and that solves the issue.
This should be documented and/or modified (in environment.yml
for instance).