delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/04/06:24:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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 AT cs DOT umass DOT edu
Subject: Re: Using ARM GNU GCC with Cygwin
To: Ben <bkamen AT benjammin DOT net>, cygwin AT cygwin DOT com
References: <a63033db-7f0f-cf87-3de9-f544f4aa320b AT benjammin DOT net>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
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: <a63033db-7f0f-cf87-3de9-f544f4aa320b@benjammin.net>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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