jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.02k stars 292 forks source link

C++17 Kernel does not work on WSL2 / Win11 #430

Open HappyCerberus opened 2 years ago

HappyCerberus commented 2 years ago

I just did a fresh install under WSL2 on Win11 Pro.

conda activate cling
conda install xeus-cling jupyterlab -c conda-forge
jupyter-notebok --generate-config
# added c.NotebookApp.user_redirect_file = False
jupyter-lab

Then when I select the C++17 kernel this is what I get in the console and then the kernel disappears:

[W 2022-02-15 22:12:48.541 LabApp] Could not determine jupyterlab build status without nodejs
[I 2022-02-15 22:12:50.434 ServerApp] Kernel started: e19a3253-0ed4-4bd7-b8f3-afa84232ac87
[I 2022-02-15 22:12:53.425 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
[I 2022-02-15 22:12:56.442 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (2/5), new random ports
[I 2022-02-15 22:12:59.457 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (3/5), new random ports
[I 2022-02-15 22:13:02.472 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (4/5), new random ports
[I 2022-02-15 22:13:05.489 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (5/5), new random ports
[W 2022-02-15 22:13:08.504 ServerApp] AsyncIOLoopKernelRestarter: restart failed
[W 2022-02-15 22:13:08.504 ServerApp] Kernel e19a3253-0ed4-4bd7-b8f3-afa84232ac87 died, removing from map.

This might be related to https://github.com/jupyter-xeus/xeus-cling/issues/415 and https://github.com/jupyter-xeus/xeus-cling/issues/413 C++11 kernel does seem to work.

spectre-ns commented 2 years ago

Getting the same issues.

spectre-ns commented 2 years ago

C++11 and C++14 both appear to work.

spectre-ns commented 2 years ago

Doesn't work in hyper-v either

DavidFFFan commented 2 years ago

I have the same problem. C++11 and C++14 work, but C++17 doesn't work. System info. Linux acer 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

studioai commented 2 years ago

I have the same issue.

Linux DietPi 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux

I get 'Segmentation fault' when running 'xcpp -std=c++17' on the shell.

ravinsharma7 commented 10 months ago

I'm having the same problem too. On windows 10, WSL. C++11 and C++14 works fine, C++17 does appear a kernel in jupyter notebook.