Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using Docker Launcher for Linux Container in Windows Eclipse Oxygen
Using Docker Launcher for Linux Container in Windows Eclipse Oxygen [message #1768340] Mon, 17 July 2017 12:31 Go to next message
Eclipse UserFriend
Hello,

I'm running an Eclipse Oxygen installation on Windows 10 Pro.

With Windows 10 Pro it's possible to run Linux Docker Containers on Windows using the Microsoft Hyper-V virtualization technology, which basically runs a Linux VM behind the scenes for the container execution.
This works fine in principle:
> docker run -v c:/:/data -it ubuntu_gdbserver bash
root@3b56309fe46f:/# /usr/bin/gdbserver --version
GNU gdbserver (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
gdbserver is free software, covered by the GNU General Public License.
This gdbserver was configured as "x86_64-linux-gnu"

Trying to launch a GCC debug run on a Ubuntu container with GDB installed, I end up with this error:
index.php/fa/30024/0/

So far so good, I googled that I should set COMPOSE_CONVERT_WINDOWS_PATHS=1 in the environment before starting eclipse to prevent that error. With that I'm stuck starting gdbserver, which never finishes:
index.php/fa/30025/0/See attached image eclipse_02.jpg

It appears like using the container launcher for Linux containers doesn't work in the Windows Eclipse Oxygen installation.
Can anyone confirm this or provide assistance to get it running?

[Updated on: Wed, 19 July 2017 04:53] by Moderator

Re: Using Docker Launcher for Linux Container in Windows Eclipse Oxygen [message #1768467 is a reply to message #1768340] Wed, 19 July 2017 04:24 Go to previous messageGo to next message
Eclipse UserFriend
My understanding is that it is the gdbserver that should be in the container and gdb should be on the host (Windows).

Note that support for Containers in CDT is the combination of two projects, CDT and LinuxTools. You may have some more luck on that forum too? https://www.eclipse.org/forums/index.php/f/60/

Also, this area is being actively developed. I highly recommend getting involved as support for containers is expected to get some major new features in the coming months. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=513589
Re: Using Docker Launcher for Linux Container in Windows Eclipse Oxygen [message #1768473 is a reply to message #1768467] Wed, 19 July 2017 05:04 Go to previous message
Eclipse UserFriend
I updated my posting, because it was unclear what I was trying to do.
The build was done using a cross-toolchain hosted on windows and targeting linux.
Debugging within a container didn't work, which should be possible according to Jeff Johnston [1].
So I'm not sure if it's a setup problem or if the feature isn't working properly for the Windows Eclipse/Linux Container use case.

Being able to build in docker containers will be appreciated as well.
Previous Topic:ld terminated with signal 6
Next Topic:Makefile font color
Goto Forum:
  


Current Time: Mon Mar 17 08:33:59 EDT 2025

Powered by FUDForum. Page generated in 0.04182 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top