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 2016-03-31 09:40, Michel Van den Bergh wrote:
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 (
https://sourceforge.net/projects/icsdrone/ ) 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
Linux?

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

https://copr.fedorainfracloud.org/coprs/yselkowitz/cygwin/

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

That sounds like a problem we had with mingw-binutils on EL6; we never figured out why this only happened there, but we did find a fix. I'll try to have an update to cygwin-binutils later today.

--
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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