delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/25/15:39:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <7B4C28C84831D211BFA200805F9F34567030F5@nswcdlvaex04.nswc.navy.mil>
From: Fontenot Larry A DLVA <FontenotLA AT NSWC DOT NAVY DOT MIL>
To: "'Mumit Khan'" <khan AT NanoTech DOT Wisc DOT EDU>,
Fontenot Larry A DLVA
<FontenotLA AT NSWC DOT NAVY DOT MIL>
Cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Weird behavior when using "-I" with gcc-2.95.2
Date: Tue, 25 Apr 2000 16:29:59 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

------_=_NextPart_000_01BFAEF5.0756B32A
Content-Type: text/plain;
	charset="iso-8859-1"


Attached is the requested bug.txt.  It looks as though the default search
paths are still valid.  And everything works just fine until I add a "-I
anypath".  The only way to get the compiler to work properly at that point
is to provide both "-I /usr/i686-pc-cygwin" and "-I /usr/include/g++-3".

 <<bug.txt>> 


	-----Original Message-----
	From:	Mumit Khan [SMTP:khan AT NanoTech DOT Wisc DOT EDU]
	Sent:	Tuesday, April 25, 2000 3:38 PM
	To:	Fontenot Larry A DLVA
	Cc:	'cygwin AT sourceware DOT cygnus DOT com'
	Subject:	Re: Weird behavior when using "-I" with gcc-2.95.2 

	Fontenot Larry A DLVA <FontenotLA AT NSWC DOT NAVY DOT MIL> writes:
	> 
	> Well, the only solution I could come up with was to compile with
the
	> following:
	> 	g++ -I /usr/i686-pc-cygwin/include -I./ -c hello.cpp
	> 
	> I have since moved the contents of /usr/i686-pc-cygwin/bin,
	> /usr/i686-pc-cygwin/include, and /usr/i686-pc-cygwin/lib to
/usr/bin,
	> /usr/include, and /usr/lib, respectively.  I thought that might
help, but I
	> still need to compile with the following:
	> 	g++ -I /usr/include -I./ -c hello.cpp
	> 
	> I even tried reinstalling the entire cygwin set with the
newsetup.exe.  No
	> difference.

	This is very odd indeed, and I wonder why gcc/cpp is producing the 
	`invalid argument' error!

	Please provide a bit more info on your platform:
	  
	  $ echo "g++ -I./ -c hello.cpp" > bug.txt
	  $ g++ -I./ -c -v -H hello.cpp >> bug.txt 2>&1
	  $ cygcheck -s -r >> bug.txt 2>&1

	and post the resulting bug.txt file.

	Regards,
	Mumit

------_=_NextPart_000_01BFAEF5.0756B32A
Content-Type: text/plain;
	name="bug.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="bug.txt"

g++ -I ./include -c hello.cpp
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/cpp.exe -lang-c++ -v -I =
./include -D__GNUC__=3D2 -D__GNUG__=3D2 -D__GNUC_MINOR__=3D95 =
-D__cplusplus -Di386 -D_WIN32 -DWINNT -D_X86_=3D1 -D__STDC__=3D1 =
-D__stdcall=3D__attribute__((__stdcall__)) =
-D__cdecl=3D__attribute__((__cdecl__)) =
-D__declspec(x)=3D__attribute__((x)) -D__i386__ -D_WIN32 -D__WINNT__ =
-D_X86_=3D1 -D__STDC__=3D1 -D__stdcall=3D__attribute__((__stdcall__)) =
-D__cdecl=3D__attribute__((__cdecl__)) =
-D__declspec(x)=3D__attribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) =
-Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -H -remap -Acpu(i386) =
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 =
-D__i686__ -D__pentiumpro -D__pentiumpro__ -D__CYGWIN32__ -D__CYGWIN__ =
hello.cpp C:\TEMP/ccFxTFIV.ii
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include
 =
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/includ=
e
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search =
path:
End of omitted list.
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostrea=
m.h
 =
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streamb=
uf.h
  =
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h=

   =
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/includ=
e/_G_config.h
    /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/include/stddef.h
In file included from =
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streamb=
uf.h:36,
                 from =
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostrea=
m.h:31,
                 from hello.cpp:2:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h=
:59: sys/cdefs.h: Invalid argument

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Tue Apr 25 16:22:05 2000

WinNT Ver 4.0 build 1381 Service Pack 6

Path:	/usr/bin
	/usr/local/bin
	/c/WINNT/system32
	/c/WINNT
	/c/Program Files/rksupport
	./
	/usr/bin
	/usr/local/bin
	/c/Program Files/Microsoft Visual Studio/Common/Tools/WinNT
	/c/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
	/c/Program Files/Microsoft Visual Studio/Common/Tools
	/c/Program Files/Microsoft Visual Studio/VC98/bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME =3D `/h'
MAKE_MODE =3D `unix'
PWD =3D `/i/CPP/hello'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) =3D `/cygdrive'
  cygdrive flags =3D 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) =3D `c:\cygnus'
  flags =3D 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/c
  (default) =3D `c:/'
  flags =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/d
  (default) =3D `d:'
  flags =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/h
  (default) =3D `h:'
  flags =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/i
  (default) =3D `i:'
  flags =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) =3D `c:\cygnus\bin'
  flags =3D 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) =3D `c:\cygnus\lib'
  flags =3D 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\00
  (default) =3D `i:'
  unix =3D `/i'
  fbinary =3D 0x00000000
  fsilent =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\01
  (default) =3D `h:'
  unix =3D `/h'
  fbinary =3D 0x00000000
  fsilent =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\02
  (default) =3D `d:'
  unix =3D `/d'
  fbinary =3D 0x00000000
  fsilent =3D 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\03
  (default) =3D `C:'
  unix =3D `/'
  fbinary =3D 0x00000000
  fsilent =3D 0x00000000
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL =
setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32

a:  fd           N/A    N/A                   =20
c:  hd  NTFS    3020Mb  56% CP CS UN PA FC    =20
d:  hd  NTFS    2014Mb  59% CP CS UN PA FC    =20
e:  fd           N/A    N/A                   =20
f:  cd           N/A    N/A                   =20
h:  net NTFS   10999Mb  35% CP CS UN PA FC     User1
i:  net NTFS   30720Mb  84%          PA        JULIET      =20

c:\cygnus\bin  /usr/bin  user    binmode
c:\cygnus\lib  /usr/lib  user    binmode
c:\cygnus  /        user    binmode
c:    /c       user    textmode
d:    /d       user    textmode
h:    /h       user    textmode
i:    /i       user    textmode

Found: c:\cygnus\bin\bash.exe
Found: c:\cygnus\bin\cat.exe
Found: c:\cygnus\bin\cpp.exe
Found: c:\cygnus\bin\find.exe
Found: c:\cygnus\bin\gcc.exe
Found: c:\cygnus\bin\gdb.exe
Found: c:\cygnus\bin\ld.exe
Found: c:\cygnus\bin\ls.exe
Found: c:\cygnus\bin\make.exe
Found: c:\cygnus\bin\sh.exe

  115k 1999/09/14 c:\cygnus\bin\cygitcl30.dll
   63k 1999/09/14 c:\cygnus\bin\cygitk30.dll
  474k 1999/09/14 c:\cygnus\bin\cygtcl80.dll
   19k 1999/09/14 c:\cygnus\bin\cygtclpip80.dll
   24k 1999/09/14 c:\cygnus\bin\cygtclreg80.dll
  768k 1999/09/14 c:\cygnus\bin\cygtk80.dll
  587k 2000/03/01 c:\cygnus\bin\cygwin1.dll
Use -h to see help about each section


------_=_NextPart_000_01BFAEF5.0756B32A
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
------_=_NextPart_000_01BFAEF5.0756B32A--

- Raw text -


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