From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92814 invoked by alias); 28 May 2017 18:41:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 92800 invoked by uid 89); 28 May 2017 18:41:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=UD:en.wikipedia.org, enwikipediaorg, en.wikipedia.org, sk:en.wiki X-HELO: mailsrv.cs.umass.edu Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 28 May 2017 18:41:09 +0000 Received: from [192.168.0.4] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id EA852401299E; Sun, 28 May 2017 14:41:11 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: cygwin cross-compiler on linux host References: <0020078C-BA19-4362-B0AD-DEAC472F674B@gmail.com> To: cygwin@cygwin.com From: Eliot Moss Message-ID: Date: Sun, 28 May 2017 22:30:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00461.txt.bz2 On 5/28/2017 9:46 AM, Michele wrote: > > > Il 27 maggio 2017 20:25:45 CEST, Michele ha scritto: >> >> >> Il 27 maggio 2017 20:22:46 CEST, Michele ha >> scritto: >>> I'm running Linux Debian as host and i would like to create a >>> cross-compiler like mingw that uses cygwin.dll as libc, so I can >>> compile software with POSIX support such as bash..is this possible? >> >> the target of course is a WINDOWS (XP) system. > > I know Windows XP it is now unsupported by cygwin and I apoligize for making such a question, but let's suppose I want to make a cross-compiler targeting a newer supported version of windows what should i do? Let's remember that I'm using Debian as host and the Windows system is the target :) I would start here: https://en.wikipedia.org/wiki/Cross_compiler#GCC_and_cross_compilation Since gcc runs on cygwin, the gcc source includes support for cygwin as a target. You will need to *build* gcc from source on your Debian platform, with cygwin as the target. (Note that there are 32-bit and 64-bit versions of cygwin.) As the wikipedia page points out, you will need to build binutils from source as well, again with cygwin as the target. In principle this is straightforward, though of course in practice any number of difficulties might arise ... Regards - Eliot Moss -- 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