public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cross compiling for cygwin under Linux.
@ 2016-03-30 15:24 Michel Van den Bergh
  2016-03-30 16:19 ` Yaakov Selkowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Michel Van den Bergh @ 2016-03-30 15:24 UTC (permalink / raw)
  To: cygwin

Hi,

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?

Thank you!
Michel


--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cross compiling for cygwin under Linux.
  2016-03-30 15:24 Cross compiling for cygwin under Linux Michel Van den Bergh
@ 2016-03-30 16:19 ` Yaakov Selkowitz
  2016-03-30 16:34   ` Michel Van den Bergh
  2016-03-31 14:40   ` Michel Van den Bergh
  0 siblings, 2 replies; 7+ messages in thread
From: Yaakov Selkowitz @ 2016-03-30 16:19 UTC (permalink / raw)
  To: cygwin

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/

-- 
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cross compiling for cygwin under Linux.
  2016-03-30 16:19 ` Yaakov Selkowitz
@ 2016-03-30 16:34   ` Michel Van den Bergh
  2016-03-31 14:40   ` Michel Van den Bergh
  1 sibling, 0 replies; 7+ messages in thread
From: Michel Van den Bergh @ 2016-03-30 16:34 UTC (permalink / raw)
  To: cygwin

On 30/03/16 18:19, 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/
>
Ah great!

Best regards,
Michel


--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cross compiling for cygwin under Linux.
  2016-03-30 16:19 ` Yaakov Selkowitz
  2016-03-30 16:34   ` Michel Van den Bergh
@ 2016-03-31 14:40   ` Michel Van den Bergh
  2016-03-31 15:29     ` Yaakov Selkowitz
  1 sibling, 1 reply; 7+ messages in thread
From: Michel Van den Bergh @ 2016-03-31 14:40 UTC (permalink / raw)
  To: cygwin

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
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f3c5d31e567]
/lib64/libc.so.6(+0x100450)[0x7f3c5d31c450]
/lib64/libc.so.6(__strncpy_chk+0x17b)[0x7f3c5d31b71b]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x442454]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x4429ee]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x45c3db]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x445fd1]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x417ab0]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x4059a0]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x4bb747]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x4bb7f6]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x40563c]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f3c5d23ad5d]
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/as[0x402b19]
======= Memory map: ========
....

test.c:

int main(){
     return 0;
}

Is there any hope left?

Best regards,
Michel




--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cross compiling for cygwin under Linux.
  2016-03-31 14:40   ` Michel Van den Bergh
@ 2016-03-31 15:29     ` Yaakov Selkowitz
  2016-03-31 16:03       ` Yaakov Selkowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Yaakov Selkowitz @ 2016-03-31 15:29 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cross compiling for cygwin under Linux.
  2016-03-31 15:29     ` Yaakov Selkowitz
@ 2016-03-31 16:03       ` Yaakov Selkowitz
  2016-03-31 16:34         ` Michel Van den Bergh
  0 siblings, 1 reply; 7+ messages in thread
From: Yaakov Selkowitz @ 2016-03-31 16:03 UTC (permalink / raw)
  To: cygwin

On 2016-03-31 10:29, Yaakov Selkowitz wrote:
> On 2016-03-31 09:40, Michel Van den Bergh wrote:
>> 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.

Please yum update; this should be working now.

-- 
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cross compiling for cygwin under Linux.
  2016-03-31 16:03       ` Yaakov Selkowitz
@ 2016-03-31 16:34         ` Michel Van den Bergh
  0 siblings, 0 replies; 7+ messages in thread
From: Michel Van den Bergh @ 2016-03-31 16:34 UTC (permalink / raw)
  To: cygwin

On 31/03/16 18:03, Yaakov Selkowitz wrote:
> On 2016-03-31 10:29, Yaakov Selkowitz wrote:
>> On 2016-03-31 09:40, Michel Van den Bergh wrote:
>>> 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.
> Please yum update; this should be working now.
>
Yes it now works!

Thx,
Michel

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-03-31 16:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 15:24 Cross compiling for cygwin under Linux Michel Van den Bergh
2016-03-30 16:19 ` Yaakov Selkowitz
2016-03-30 16:34   ` Michel Van den Bergh
2016-03-31 14:40   ` Michel Van den Bergh
2016-03-31 15:29     ` Yaakov Selkowitz
2016-03-31 16:03       ` Yaakov Selkowitz
2016-03-31 16:34         ` Michel Van den Bergh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).