Remote toolchain error with docker

Answered

Hi, I am using Clion on OSX and due to problems with valgrind on Catalina, so I am trying to setup a toolchain in a docker container.

I am getting this error, then trying to run simple hello world program:

/tmp/tmp.QZE9ztJH2R/cmake-build-debug/cpp_test
Hello, World!
ERROR: Can't open file: /private/var/folders/8q/j1tvmxp936l0gt75wbdfpf3r0000gn/T/457d6ec1-c7ee-4eff-99c7-3559a2eb387e.1031
Process finished with exit code 1

I think this is somehow related to sanitizers output. I am also getting similar error then trying to run valgrind:

/usr/bin/valgrind --tool=memcheck --xml=yes --xml-file=/private/var/folders/8q/j1tvmxp936l0gt75wbdfpf3r0000gn/T/valgrind --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no /tmp/tmp.QZE9ztJH2R/cmake-build-debug/cpp_test
valgrind: Cannot create XML file '/private/var/folders/8q/j1tvmxp936l0gt75wbdfpf3r0000gn/T/valgrind': No such file or directory

Process finished with exit code 1

 

Compilation works fine.

idea.log: https://gist.github.com/FirstTimeInForever/8f4272854dd2c21d6bb249326ca4f0a7

My Dockerfile: https://gist.github.com/FirstTimeInForever/66c981e9318dce086ef3e7fc4efb8303

Version information:

CLion 2020.1 EAP
Build #CL-201.4865.10, built on February 4, 2020
CLion EAP User
Expiration date: March 5, 2020
Runtime version: 11.0.6+8-b702.1 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.3
GC: ParNew, ConcurrentMarkSweep
Memory: 1987M
Cores: 12
Registry: run.processes.with.pty=TRUE, ide.balloon.shadow.size=0
Non-Bundled Plugins: indent-rainbow.indent-rainbow, io.github.qeesung.component.HighlightBracketPair, izhangzhihao.rainbow.brackets, name.kropp.intellij.makefile, Docker

0
10 comments

Hello!

Unfortunately, using valgrind with remote toolchain is not supported yet - https://youtrack.jetbrains.com/issue/CPP-14178. Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

The problem is that even simple run (without valgrind) causes this error.

0

Google Sanitizers are not supported for remote toolchain too - https://youtrack.jetbrains.com/issue/CPP-14179

0

Oh, OK. Anyway, thank you for clearing that out!

0
Avatar
Permanently deleted user

This is fixed in 2021.1 (currently available as EAP).

Tried it at home, even works with "remote" docker images running on windows :)

0

Hi there! I have Clion 2020.3 and got the same problem with remote (in docker).

 

/usr/bin/valgrind --tool=memcheck --xml=yes --xml-file=/tmp/clion-valgrind55b2146e-3042-454c-805f-d862691f37ab/valgrind_output_%p --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no /tmp/CAPLON_14301/tmp/CAPLON_15512/cmake-build-docker-debian-9-caplon-dpi/benchmark/benchmarks
valgrind: can't create XML file '/tmp/clion-valgrind55b2146e-3042-454c-805f-d862691f37ab/valgrind_output_39067': No such file or directory

Process finished with exit code 1

0

Mykola Lebid Using valgrind with remote toolchain is supported only starting from CLion 2021.1 EAP - https://www.jetbrains.com/clion/nextversion/.

1

Thanks a lot for your fast reply! We are waiting for remote profile support :) 

0

Please sign in to leave a comment.