Open saraedum opened 3 years ago
Actually, this is not Binder-related. I observe the same behaviour locally for a freshly created Conda environment (but also only for the C++17 kernel). Here is my package list:
I encountered the same problem, though with some variations. Whether the kernel crashes seems to depend not only on the conda environment but on the underlying OS/hardware???. We have some computers in our computer lab where this happens, others not. All under Linux Mint; can't recall from the top of my head whether it's the same version though. I also get glibc incompatibilities issues.
I can try to dig and record more detailed information; all this happened in lab sessions, so with little time to take notes :-)
I am working on release a new stack based on cling 0.9 which may improve the situation.
(Unfortunately, that involves providing new variants of llvm and clang on conda-forge, hence the delay).
Facing same issue on a clean installation.
In fact, this seems to be not limited to the C++ 17 kernel. I tried using notebooks I did years ago on Binder and none of the C++ kernels seems so start properly; I have then tried the Binder link provided here in the README here... and got exactly the same result.
It might be related to the underlying hardware as @nthiery pointed out, but in this case I was really unlucky because I had the issue both with GESIS and OVH.
For the record: I managed to get C++17 to work (but not C++11 or C++14) consistently by forcing gcc=9.4.0. Presumably it was not OS related after all, but just some other discrepancy in the student setup.
Looking forward the new release! Thanks @SylvainCorlay
Thanks @nthiery, you're right by forcing the gcc version it seems to work just fine.
@nthiery How do I force the gcc version?
@YarelisAcevedo In your environment.yml file.
Thanks! @srpgilles
I am trying to prepare a few examples on mybinder.org that use C++ 17 features. However, xeus-cling does not work for me when selecting the C++ 17 kernel on binder. Since everything works fine locally, I am not sure how to debug here.
As an example, go to the following link:
https://mybinder.org/v2/gh/flatsurf/e-antic/9cde33bfff8f24cee0c9c529ed3f8551d31eb815
With the preselected C++14 kernel everything works fine. However, changing the kernel to C++17 the interface is stuck at "Connecting to kernel":
Can I somehow debug why xeus-cling seems to be unhappy?