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 88C463857C78 for ; Mon, 7 Dec 2020 01:39:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 88C463857C78 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 [192.168.0.14] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 01724401D739; Sun, 6 Dec 2020 20:39:02 -0500 (EST) Reply-To: moss@cs.umass.edu Subject: Re: Workaround for cygwin's way of linking folders? To: Ken Brown , Johnathan Schneider , "cygwin@cygwin.com" References: From: Eliot Moss Message-ID: Date: Sun, 6 Dec 2020 20:39:04 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, 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: Mon, 07 Dec 2020 01:39:04 -0000 On 12/6/2020 6:45 PM, Ken Brown via Cygwin wrote: > On 12/6/2020 5:41 PM, Johnathan Schneider via Cygwin wrote: >> Hi all, >> >> I'm setting up a cross platform development environment using Cygwin. Upon attempting to use >> Cygwin's CMake that is natively bundled, I discovered that Cygwin goes looking for the gcc in >> /usr/bin/cc, a folder that does not exist according to windows. I have familiarized myself with >> the Cygwin way of organizing it's folders, seen here >> https://cygwin.com/faq.html#faq.using.shortcuts and >> https://cygwin.com/faq.html#faq.using.directory-structure and thus I know that Cygwin's /usr/bin >> folder is in fact /bin - according to windows, anyways. However, I'm not familiar with how to work >> around that on windows. In particular, virtually all of my IDEs' attempts to call CMake fail, >> because I proceed to ask it to call the gcc and windows, as is explained in the above FAQ's, does >> not recognize the Cygwin-way of referencing folders. >> >> Alas, my question - what is the recommended workaround? > > It's hard to answer this question without knowing exactly what your IDE is doing.  Can you give a > detailed recipe for reproducing the problem without using an IDE?  In general, Cygwin's CMake should > have no problem executing /usr/bin/cc unless something is interfering with Cygwin's normal path > handling routines. My guess: Your IDE is Windows based, and it is unlikely to play well with Cygwin. It probably expects Windows paths, etc. MinGW might gives Unix-like tools that work better for you, or you can find Windows based CMake, C compilers, etc. With some effort, you _might_ get the IDEA to invoke the Cygwin program by giving the full Windows path to it, but /usr/bin/cc is going to expect Cygwin format paths, which a Windows based IDE won't know anything about ... My guess could be wrong, of course! Regards - Eliot Moss