From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id A9FF4388A02F for ; Sat, 4 Apr 2020 10:23:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A9FF4388A02F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=moss@cs.umass.edu Received: from [150.203.106.61] (dhcp-liversidge61.anu.edu.au [150.203.106.61]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 25E354017D11; Sat, 4 Apr 2020 06:23:45 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: Using ARM GNU GCC with Cygwin To: Ben , cygwin@cygwin.com References: From: Eliot Moss Message-ID: <1bcf7bb8-33c1-075a-59e3-7396a50cb769@cs.umass.edu> Date: Sat, 4 Apr 2020 06:23:38 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2020 10:23:49 -0000 On 4/4/2020 5:00 AM, Ben wrote: > I've been playing with ARM GNU GCC and some examples from nordic semiconductor for some of their > demo boards (The Thingy) Sounds as if that is a Windows program, not a Cygwin or Linux program. > The make file that comes with the project includes source files using the (abspath ../main.c) (as > one example) which GCC really seems to hate. > The output from GCC is the full path (/home/bkamen/workspace-nordic/.....) right down to the file > and gcc tells me it can't find the file. If your gcc is a Windows gcc then it wants a Windows path. > if I change the mail file to use a relative path, gcc can find that... but ultimately I'm trying to > understand the issue than just patch around it. This goes along with my theory. > I'm using the arm-gcc from the developer.arm.com website. > > Is there something else I'm missing? What files can I offer (like the makefile) that can help > determine the issue? You can fix the Makefile to pass Windows paths. The cygpath tool and make's $(shell ...) command might be useful. But I also wonder if maybe the mingw environment is more suited to this work, or finding a Windows version of make. Perhaps there are others here who can clarify or add to this ... EM