From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by sourceware.org (Postfix) with ESMTPS id 5BDE4385DC00 for ; Sat, 4 Apr 2020 19:12:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5BDE4385DC00 Received: by mail-lj1-x242.google.com with SMTP id i20so10407526ljn.6 for ; Sat, 04 Apr 2020 12:12:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=2VXz7ZiT6fcj8nnLSxnCkqOmeQAcB+AHC8mIFEkZjYw=; b=nqMQl/UA3VlmnAq6B13dwfcAtuMBgKzdaEtP5Hi0N5QWNF0AsOlyJnmAyiY5QeHsv+ QuPY/wAEY315Id1P/BoPWw5xh77mKRX03A2nMUmqIyY6W34YFTWcF/tA+hZxgnBEwfLb OMXTRIqCm5+PW6F74ewjF1VOYcpJzL6yUQ3s2f+ZihZkUo9VFuhsYZpKw6zHI7rgZPkY viTeyNuwtSBMOQwp3wTGfMHtuqqqyB6nVGiGSPNb6JB7gbK/yEatKEsqp0iLsXWvLy+U lj8WCT3T2O2eJpRNfXjc6YxT+ij5BeEiK5z2BwB6FNUtN42opO0kSMhaBKTcC9NPI7rA 9lHQ== X-Gm-Message-State: AGi0PuY6FlQRKStMiwS8sTKZZMoCuLDAf0Ucw8NBMZYSAED3rG2VHLfN I3g8QHSKqJchJllrIrBrpQQwIOdT04U= X-Google-Smtp-Source: APiQypLq6cNBKCZ9lVIPNW5vrOq7bVQCTxl6+/kt4jWer6UAYLZhH5R9RSFa3KVWyoLbLVBhnTltRw== X-Received: by 2002:a2e:b241:: with SMTP id n1mr7366357ljm.22.1586027522873; Sat, 04 Apr 2020 12:12:02 -0700 (PDT) Received: from [192.168.1.117] (tb213-185-244-58.cust.teknikbyran.com. [213.185.244.58]) by smtp.googlemail.com with ESMTPSA id d8sm7994999lfm.28.2020.04.04.12.12.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Apr 2020 12:12:02 -0700 (PDT) Subject: Re: Using ARM GNU GCC with Cygwin To: Ben , cygwin@cygwin.com References: From: =?UTF-8?Q?=c3=85ke_Rehnman?= Message-ID: Date: Sat, 4 Apr 2020 21:11:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; 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-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 19:12:06 -0000 On 2020-04-04 11:00, Ben wrote: > Hey all, > >  I've never used Cygwin much in the past for compiling let alone > cross-compiling to another arch. > > I've been playing with ARM GNU GCC and some examples from nordic > semiconductor for some of their demo boards (The Thingy) > > 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 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. Without know how your make file looks it seems the paths are absolute and wrong... gcc usually don't have any problems with full absolute paths. The reason I think the paths are wrong is it does not start with /cygdrive/c/your_dir/ > > I'm using the arm-gcc from the developer.arm.com website. It is the same I use. > > Is there something else I'm missing? What files can I offer (like the > makefile) that can help determine the issue? > Look at the failing command and make sure what ever paths and files are used are correct. /Ake