This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross compiling for cygwin under Linux.

On 03/30/2016 06:19 PM, Yaakov Selkowitz wrote:
On 2016-03-30 10:24, Michel Van den Bergh wrote:
I am one of the authors of an application ( ) written for POSIX and I
would like to provide a Windows binary.

As I do not use Windows I would like to cross compile on Linux.

I cannot use Mingw as our application relies heavily on the select() call.

So my question is: is it possible to cross compile a Cygwin binary on

Yes it is.  Packages for Fedora and RHEL/CentOS are available here:

Unfortunately the gcc for CentOS appears not to work...

/usr/bin/i686-pc-cygwin-gcc-4.9.3 -c test.c

*** buffer overflow detected ***: /usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as terminated
======= Backtrace: =========
======= Memory map: ========


int main(){
    return 0;

Is there any hope left?

Best regards,

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]