delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/15/12:53:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <8F23E55D511AD5119A6800D0B76FDDE1CA3030@cpex3.channelpoint.com>
From: Troy Noble <troy DOT noble AT channelpoint DOT com>
To: "'Liu Wang'" <Wang AT sigprowireless DOT com>,
Troy Noble
<troy DOT noble AT channelpoint DOT com>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: help!
Date: Wed, 15 Aug 2001 10:52:32 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/)

gcc is doing the right thing.  you don't want
gcc to be trying to search for includes in /usr.
It is trying to include from /usr/include
as is proper, in other words.

> ----------------------------------------------------
> $mount
> c:\cygwin\usr\include on /usr type user <textmode>
> c:\cygwin\usr\include on /lib type user <textmode>
> C:\cygwin\bin on /usr/bin type system <binmode>
> C:\cygwin\bin on /usr/lib type system <binmode>
> C:\cygwin on / type system <binmode>
> c: on /cygdrive/c type user <binmode, noumount>
> s: on /cygdrive/s type user <binmode, noumount>
> u: on /cygdrive/u type user <binmode, noumount>
> -----------------------------------------------------

Your mount points are wrong.  Did you change them
at all?  That doesn't look like the standard
setup that cygwin's setup.exe creates.

Specifically, based on the mount list you sent,
if you do the following I would think it would
start working:

$ cd /bin
$ umount /usr
$ umount /lib
$ umount /usr/lib
$ mount C:\\cygwin\\lib /usr/lib
$ mount
C:\cygwin\bin on /usr/bin type system <binmode>
C:\cygwin\lib on /usr/lib type system <binmode>
C:\cygwin on / type system <binmode>
c: on /cygdrive/c type user <binmode, noumount>
s: on /cygdrive/s type user <binmode, noumount>
u: on /cygdrive/u type user <binmode, noumount>

Then /usr/include will map to c:\cygwin\usr\include
and /usr/lib will map to c:\cygwin\lib
as it should.  And your problems should go away.

Or re-run setup so it can re-create your mount points
correctly.  Which is probably the safest bet all
the way around.  And don't change the mounts
that cygwin creates.  And don't add new ones
like /usr unless you are really sure it is in
your best interest ;->

If setup is creating the mount points incorrectly
as you've shown below, please let the list know
because that might be a bug.

Troy

-----Original Message-----
From: Liu Wang [mailto:Wang AT sigprowireless DOT com]
Sent: Wednesday, August 15, 2001 9:38 AM
To: 'Troy Noble'
Subject: RE: help!


Dear Troy Noble,

Thanks for your so kind help.

My mount points look like the following:

----------------------------------------------------
$mount
c:\cygwin\usr\include on /usr type user <textmode>
c:\cygwin\usr\include on /lib type user <textmode>
C:\cygwin\bin on /usr/bin type system <binmode>
C:\cygwin\bin on /usr/lib type system <binmode>
C:\cygwin on / type system <binmode>
c: on /cygdrive/c type user <binmode, noumount>
s: on /cygdrive/s type user <binmode, noumount>
u: on /cygdrive/u type user <binmode, noumount>
-----------------------------------------------------

I tried "gcc --verbose hello.c -o hello" and found the
following:
------------------------------------------------------
/usr/lib/gcc-lib/i686-pc-cygwin/w.95.3-5/cpp0.exe ....
/usr/local/include -idirafter /usr/include -idirafter 
/usr/include/w32api /cygdrive/c/hello/hello.c ...
------------------------------------------------------


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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