X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F4AF385DC1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1586028693; bh=yL+7XIXuIJ+F1fMXIeFjZDyMrLhMXy+ruRfRC/eKHeQ=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VbUG+vF2g+M4ZrRHpSPKuiptVp7bDGQh6CDul5xoikLodSUPcSY+DJb9sjJvLhQrl HKBdPYn/oxwuiUBTR6sM3pf7513ql3kdjj46ep6n26VyLaGpzrrPnAdDQKaXT8iBhT h0sVWPVBzxB1/sbCLSjN8qmBIEOs5Wbr8QhURQGc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3FF59385DC00 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=qlQ2ecPTDK50zBEn2jBRcWDD3w709tCM0BhBZMWoUeg=; b=XqEe3FRthm7djaR7h92kZ8TxTkOsYOLfvqOe7R+xygiS270czp1HPJFrqQvpQPE+U3 gZvxeGCmr5bsPdRgZu1KqnEf9naZiT6WtcFaP0lmUDLq+ZMnn52IobVOLqUz5TDMEay2 lpiYuAAnogcmb/HDofP1uKkt4+5Zgj+i0SklUeoNoVcnyS+eQ5C9wr1vMkqKlzCgbL5Q 18eaKGCihLrVQUf7iHeC0116elSdo9weejVoQV2iwRfVC27NfbT1V/zFxjQZkzWoS+7V XuyncVH4myNUEhktNWjvV0pcBqGXKbgaX6HSn3M8OGrW0sTsHJmxDYYzKrlUyunsJGbL 36Zw== X-Gm-Message-State: AGi0PuaDMtp79gwT8KWkaIT197WTWCy5/MEQ7ak6+gJ0vyF4+ulCftXs 9GV0xwEUbUf5pu6YTlufbTgze7uxK/4= X-Google-Smtp-Source: APiQypI+pgkkUzx5jlFOpORg5RHb+2SXV+mvD01ff4CFH/K5C9hipsSX18c7x2ciSKq+hvZi4LOeWw== X-Received: by 2002:ac2:483a:: with SMTP id 26mr1337122lft.5.1586028689696; Sat, 04 Apr 2020 12:31:29 -0700 (PDT) Subject: Re: Using ARM GNU GCC with Cygwin To: Ben , cygwin AT cygwin DOT com References: Message-ID: Date: Sat, 4 Apr 2020 21:31:19 +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-Language: en-US X-Spam-Status: No, score=-8.1 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 AT cygwin DOT 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: , From: =?utf-8?q?=C3=85ke_Rehnman_via_Cygwin?= Reply-To: =?UTF-8?Q?=c3=85ke_Rehnman?= Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 034JW11e014167 On 2020-04-04 21:11, Åke Rehnman wrote: > > 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. I have to correct my self here. That compiler is a Windows PE executable and it will not take any posix paths... The one I used in the end was I compiled the arm-gcc from the sources my self.... >> >> 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 > -- 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