Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 225079 - [tcf][releng] Support compiling the TCF agent with Mingw tools
Summary: [tcf][releng] Support compiling the TCF agent with Mingw tools
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.2   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
: 219391 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-01 08:40 EDT by Martin Oberhuber CLA
Modified: 2013-06-05 08:01 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2008-04-01 08:40:59 EDT
Since the TCF agent can be compiled with Microsoft Visual studio (against Microsoft API Libs), it should also be possible to compile it with the free Mingw tools in order to avoid Cygwin dependency.
Comment 1 Martin Oberhuber CLA 2008-04-01 08:54:54 EDT
The current build system uses the GCC / Cygwin #defines when MingW is the toolchain, which fails because pthread.h is not available for MingW.

MingW build should use the MSVC #defines instead, which provide a pthread emulation based on Win32 threads.
Comment 2 Martin Oberhuber CLA 2008-04-01 09:40:46 EDT
*** Bug 219391 has been marked as a duplicate of this bug. ***
Comment 3 Martin Oberhuber CLA 2008-04-01 09:41:49 EDT
From bug 219180 comment 4: Mingw support was there in TCF 0.1.0 but was dropped for 0.2.0. I'd think that when we can build with MSVC we should also be able to build with MinGW.

Arguments in favor of mingw are on bug 219180 comment 6.
Comment 4 Eugene Tarassov CLA 2008-10-08 13:08:13 EDT
Fixed. Command to build with MinGW is:
   make SYSOP=Msys
Comment 5 Ken Ryall CLA 2009-02-03 12:58:01 EST
Have you tried this recently? I can't get the MINGW build to work: I tried a couple recent versions of MINGW and got similar results. I fixed a number of simple compile errors but bogged down when I hit problems getting the socket api to compile.
Comment 6 Eugene Tarassov CLA 2009-02-03 15:52:24 EST
Oops.. Fixed again. This time for real.

Build command (assuming PATH contains MinGW/bin):
  make OPSYS=Msys
In Cygwin shell use:
  make OPSYS=Msys "CC=gcc -mno-cygwin"

Note that MinGW generates executables that are not completely native. In particular, debug information format is not native. If you want TCF debugger tests to work on Windows you have to use Microsoft compiler. Microsoft Visual C++ Express Edition is available for free.
Comment 7 Martin Oberhuber CLA 2010-05-28 14:11:22 EDT
Bulk update: Marking all TCF fixes from the Galileo period (Jun-2008 until Jun-2009) target 3.1 since they were done along with the TM 3.1 release.
Comment 8 Doug Schaefer CLA 2011-05-17 10:50:57 EDT
Moving bugs to new home for IP log.
Comment 9 Martin Oberhuber CLA 2013-06-05 06:28:46 EDT
Bulk change: Marking all bugs from the TM era (until June 2011) target 0.3