From: L A Walsh <cygwin@tlinx.org>
To: Johnathan Schneider <johnny.schneider10@outlook.com>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Workaround for cygwin's way of linking folders?
Date: Sun, 06 Dec 2020 23:27:54 -0800 [thread overview]
Message-ID: <5FCDD97A.7080409@tlinx.org> (raw)
In-Reply-To: <CPZP284MB000578B94B75ED84DE1EF39E8ECF0@CPZP284MB0005.BRAP284.PROD.OUTLOOK.COM>
On 2020/12/06 14:41, 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,
----
If you go into 'bash' under cygwin, what do you see in /usr/bin?
/usr/bin is only a valid path inside programs that are running on cygwin --
if you run programs outside of cygwin, say directly from Windows, they
won't see
them.
Cmake would likely be in the same folder as gcc. How are you invoking
Cmake? If you are running cmake from, say, the cygwin path of /bin
(assuming
you have cygwin installed at C:\ and have your cygwin mount prefix set
to '/'.
In bash, type mount -p and you should see something like:
> mount -p
Prefix Type Flags
/ user binmode
Just like windows has various magic folders that show up under explorer, but
don't really exist, cygwin does too, but only cygwin utils see the
cygwin-folders.
FWIW, /bin from a cygwin install is mounted (within cygwin) on
/usr/bin, so
the contents should be the same.
If you want to make use of windows+cygwin at the same time, it's best
to install cygwin at 'C:\' and set you mount prefix like I have above, then
you will get more commonality between windows+cygwin. For example, to make
/usr/bin appear under window, I have a symlink at C:/usr/bin that points to
C:/bin.
Under windows, a 'dir' of C:\usr will show (from cmd.exe, some lines removed
for brevity):
C:\Users\linda>dir \usr
Volume in drive C is System Disk
Directory of C:\usr
2020/05/17 17:11 <DIR> .
2020/05/17 17:11 <DIR> ..
2018/05/19 09:42 <SYMLINKD> bin [..\bin]
2020/10/07 09:35 <DIR> include
2018/05/19 09:41 <SYMLINKD> lib [..\lib]
2018/05/17 11:20 <SYMLINKD> lib64 [..\lib]
2020/12/06 23:25 <SYMLINKD> sbin [..\sbin]
2020/11/03 20:38 <DIR> share
2020/10/07 08:37 <DIR> src
2020/05/17 17:11 <DIR> x86_64-pc-cygwin
0 File(s) 0 bytes
17 Dir(s) 150,639,538,176 bytes free
>
> Alas, my question - what is the recommended workaround?
>
---
Look for cygwin paths from a cygwin shell. That's the start.
Making win+cyg play nice, involves little bits like symlinks
like I used above. It's not officially supported by the cygwin, but
I find such things convenient.
prev parent reply other threads:[~2020-12-07 7:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-06 22:41 Johnathan Schneider
2020-12-06 23:45 ` Ken Brown
2020-12-07 1:39 ` Eliot Moss
2020-12-07 7:27 ` L A Walsh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5FCDD97A.7080409@tlinx.org \
--to=cygwin@tlinx.org \
--cc=cygwin@cygwin.com \
--cc=johnny.schneider10@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).