This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Weird behavior when using "-I" with gcc-2.95.2



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@NanoTech.Wisc.EDU]
	Sent:	Tuesday, April 25, 2000 3:38 PM
	To:	Fontenot Larry A DLVA
	Cc:	'cygwin@sourceware.cygnus.com'
	Subject:	Re: Weird behavior when using "-I" with gcc-2.95.2 

	Fontenot Larry A DLVA <FontenotLA@NSWC.NAVY.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
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__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__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/include
 /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/iostream.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.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/include/_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/streambuf.h:36,
                 from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostream.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 = `/h'
MAKE_MODE = `unix'
PWD = `/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) = `/cygdrive'
  cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `c:\cygnus'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/c
  (default) = `c:/'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/d
  (default) = `d:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/h
  (default) = `h:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/i
  (default) = `i:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `c:\cygnus\bin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `c:\cygnus\lib'
  flags = 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) = `i:'
  unix = `/i'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
  (default) = `h:'
  unix = `/h'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
  (default) = `d:'
  unix = `/d'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
  (default) = `C:'
  unix = `/'
  fbinary = 0x00000000
  fsilent = 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                    
c:  hd  NTFS    3020Mb  56% CP CS UN PA FC     
d:  hd  NTFS    2014Mb  59% CP CS UN PA FC     
e:  fd           N/A    N/A                    
f:  cd           N/A    N/A                    
h:  net NTFS   10999Mb  35% CP CS UN PA FC     User1
i:  net NTFS   30720Mb  84%          PA        JULIET       

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

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]