Cross compiling for cygwin under Linux.

Yaakov Selkowitz yselkowitz@cygwin.com
Thu Mar 31 15:29:00 GMT 2016


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



More information about the Cygwin mailing list