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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=O+ELs+3B8COtrLfr qysWvC5WGonlXYLU1r97SIWA4km1spDLmc+pnkUTWz22qs5C8O7khE8cs+B+lrso zH16j3CVxbpYlW5mPNMHLvJUTaBbkMztf1dgnafmpp7MeEKAVX9cZvQP48v49H2+ e/p3UlLGWrn34vVTrpfoLiRJZ/o= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=7+2myGrWbWmMG2SATJEheT qdZKw=; b=Xg2P2nFFFSqv0qmWciBaNvHXa3EfTkQvVEX4e5jyQ6QyyPH3O13DcF XlyrOZF3uZ26HMtMtFyDMDM8op4yRJpiw0YwxYwvr/18vLGGiKZOM2Mzm7dFtnAg 7YNZtpimp0Au6wwqxrkd72wQ2aLnvdP8bzFe0zcMJqmCEFY3IL0d0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*Ad:U*yselkowitz, H*M:cygwin, H*F:U*yselkowitz, Hx-languages-length:1184 X-HELO: mx1.redhat.com Subject: Re: Cross compiling for cygwin under Linux. To: cygwin AT cygwin DOT com References: <56FBEFAA DOT 5050202 AT uhasselt DOT be> <56FBFC8C DOT 1010808 AT cygwin DOT com> <56FD36D9 DOT 3040002 AT uhasselt DOT be> From: Yaakov Selkowitz Message-ID: <56FD423C.8020407@cygwin.com> Date: Thu, 31 Mar 2016 10:29:00 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56FD36D9.3040002@uhasselt.be> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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