delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/31/10:40:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=WhlawhPjTKf9ZLXCsReeC7wDkDMCIBqOtpddo+3DWdf
m/nK5gwNC4okBt6jwrl3K1J1Lbe2NfYaS6D1447DrCvZP6oPyZj1VEnDQbIVGEv3
1M6rMlx5EliDsRdh+5a+vIwvIBHfId2kgNyjcmkk2J+KW9RIfl1SM608kLOF0D48
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=x/uMQTXJAfHwpMkIZnOAIcsXSzw=; b=MqlmMUPxfb9w+BiTU
tXAE/w22wkWG1el1DJ9mtmoYDlIRoYccLpo63CvsE3+sCP4HW38r7v6Ly3cC9DCU
8xu/qbMDXZcZoOHOpBEJod2h5hPe60XcKrPCohrzytK5elm1DIBCxeaYg9iEVnQ5
MIfHlzxG2aFkgoC5wYPJs6LgGI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Van, H*F:D*be, den, our
X-HELO: mail-wm0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=NeELIosWM524PvVoLHaCCgNjvIAGDAu5XtYaTb6GHZk=; b=bYZl6vf9G+/TiuCDVMZwuxaIGFxjXCe93g8klUw2OgO0KmPdGHJLIUTi3vBkIMkUkf E18FnA/r/Iq0xQBmGWzp6ZF9BtZT00THrxDaSvYfCBfncRyJqKmJPNcDbZuw9lJd6H65 pTYPTCfr5vQm4/1l5uwx33zumaNDbIKrrxBou885znJ0OhI2b3HdCzOriyO+QzpWt53g eAHr9d2QrD1FMJ3Cwh2UWQVa8ZShr5DpW5o0a7UbXEzm2Er3qCKsbTr/JsplzLRwrnUC Q8GT0/MYoh/eB9GPnjmCfZQHXi518fYZCVn90DRPll7t/IrLUUYDSBU7K7rinu346nkD ucWw==
X-Gm-Message-State: AD7BkJJefYIjv/kPURFhjgD0E7sNc/J870JupnDkhT9dPdG0bfxTi4rNOI7LgctWi+dKQp4ftSAUqaBQS9tQQNM6oIBVw2/sYfGnzDzrSDQWrusg2b8Fr3TegJ4ipdUxxlPMZM16ewOEN2dA+00itaxT95hQMaX6TW4rPEqZj83QUGtxK4ab+I8XRSj/V94=
X-Received: by 10.28.19.204 with SMTP id 195mr31443612wmt.1.1459435226630; Thu, 31 Mar 2016 07:40:26 -0700 (PDT)
Message-ID: <56FD36D9.3040002@uhasselt.be>
Date: Thu, 31 Mar 2016 16:40:25 +0200
From: Michel Van den Bergh <michel DOT vandenbergh AT uhasselt DOT be>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cross compiling for cygwin under Linux.
References: <56FBEFAA DOT 5050202 AT uhasselt DOT be> <56FBFC8C DOT 1010808 AT cygwin DOT com>
In-Reply-To: <56FBFC8C.1010808@cygwin.com>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019