#includes not being processed across network (revised)

M4um@aol.com M4um@aol.com
Wed Jan 3 11:11:00 GMT 2001


This is a resubmission. I've completely revised my development platform but 
still have a problem getting gcc/cpp to properly process #includes across a 
network. 
The -Idirectory and associated logic for finding the correct header file from 
a series of search paths is working properly (using output from -dM, 
-save-temps and -H compiler-switches), but once the header file is identified 
it is not being processed. To test this I created a header file with "#error 
Here Is the Error" as its first line in the Windows #include path and it 
correctly errored off. Moving the header file to Unix, the compiler found 
the file but the #error was not tripped. In both cases the source code and 
makefile and all scripts, etc., were resident under Windows.
A related problem: If I move the source code (the .c file) to the UNIX box 
the same problem is observed with the added confusion that the .i (output 
from -dM and -H) shows only the first line -- for example, '# 1 "./dcheck.c"' 
-- and nothing else! In the previous example it contains processing of all 
header files, #defines, etc., as it should.
The Unix file server is VisionFS ("VSFU") and I am running the most recent 
bash, gcc, etc., under Win98 (FAT32) The server and network have been check 
out and appear to be working "hot, fast and normal". I've tried to recreate 
the problem "by hand" by invoking sh.exe (not bash) directly, cd'ing over to 
Unix and then doing several instances of "less" on a file in parallel. The 
system was able to recognize and warn of locked files when I tried to do 
multiple editing sessions of a single UNIX file with vi; all permissions are 
agreeable on both sides of the problem.
Anyone out there have ANY ideas?
John McDonald
Here is a portion of the compile stream, captured in situ:
gcc -save-temps -H -dD -g -v -O3 -m486 -I/usr/include -idirafter 
/cygdrive/h/usr/include ./dcheck.c -o /usr/bin/dcheck 
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/specs
gcc version 2.95.2-6 19991024 (cygwin experimental)
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/cpp.exe -lang-c -v -I/usr/include 
-D__GNUC__=2 -D__GNUC_MINOR__=95 -Di386 -D__386__ -D__i386 -D_X86=1 
-D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) 
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) 
-D__i386__ -D__386__ -D__i386 -D_X86=1 -D__STDC__=1 
-D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) 
-D__declspec(x)=__attribute__((x)) -D__i386 -Asystem(winnt) -Acpu(i386) 
-Amachine(i386) -D__OPTIMIZE__ -g -H -dD -remap -Acpu(i386) -Amachine(i386) 
-Di386 -D__i386 -D__i386__ -Di486 -D__i486 -D__i486__ -D__CYGWIN32__ 
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/local/include 
-idirafter /usr/include -D_WIN32 -DWINNT -idirafter /usr/include/w32api 
-idirafter /cygdrive/h/usr/include ./dcheck.c dcheck.i
GNU CPP version 2.95.2-6 19991024 (cygwin experimental) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include
 /usr/include
 /usr/include/w32api
 /cygdrive/h/usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../include/g++-3
End of omitted list.
/usr/include/isglobal.h
 /usr/include/stdio.h
 /usr/include/_ansi.h
 /usr/include/sys/config.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include/stddef.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include/stdarg.h
 /usr/include/sys/reent.h
 /usr/include/time.h
 /usr/include/machine/time.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include/stddef.h
 /usr/include/sys/types.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include/stddef.h
 /usr/include/machine/types.h
 /usr/include/sys/features.h
 /usr/include/errno.h
 /usr/include/sys/errno.h
 /usr/include/disam.h
 /usr/include/isport.h
 /cygdrive/h/usr/include/CXlinkspec.h <== NOTE: FILE WITH #error AS FIRST 
LINE! Comp should stop here.
 /cygdrive/h/usr/include/isdecl.h
 /cygdrive/h/usr/include/isdclint.h
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/cc1.exe dcheck.i -quiet -dumpbase 
dcheck.c -dD -m486 -g -O3 -version -o dcheck.s
GNU C version 2.95.2-6 19991024 (cygwin experimental) (i686-pc-cygwin) 
compiled by GNU C version 2.95.2-6 19991024 (cygwin experimental).
(...compile continues to errant output because CXlinkspec.h was not 
processed) 
My cygcheck output contains:
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Jan 3 13:34:09 2001
Win9X Ver 4.10 build 67766222 
Path: /usr/local/bin
 /usr/bin
 /bin
 /cygdrive/c/WINDOWS
 /cygdrive/c/WINDOWS/COMMAND
 /usr/bin
SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS
PWD = `/cygdrive/d'
USER = `root'
MAKE_MODE = `unix'
HOME = `/cygdrive/d'
PROMPT = `$p$g'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
!C: = `C:\WINDOWS'
CMDLINE = `bash --login -i'
HOSTNAME = `SEAN'
!D: = `D:\Cygwin\bin'
CLASSPATH = `C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables'
WINDIR = `C:\WINDOWS'
WINBOOTDIR = `C:\WINDOWS'
PS1 = `\[033円]0;007円033円[33m\w033円[0m\]# '
BLASTER = `A220 I5 D1 T4'
MACHTYPE = `i686-pc-cygwin'
!H: = `H:\usr\include'
OLDPWD = `/usr/bin'
TEMP = `/cygdrive/c/Windows/TEMP'
SHLVL = `1'
SHELL = `/bin/sh'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
_ = `/usr/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder
\Start Menu\&Programs\Cygnus Solutions
 (default) = (unsupported type)
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\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\mounts00円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts01円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts02円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts03円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts04円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts05円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts06円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts07円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts08円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts09円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円D
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円E
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円F
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts10円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts11円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts12円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts13円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts14円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts15円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts16円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts17円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts18円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts19円
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円D
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\mounts v2\/
 (default) = `D:\Cygwin'
 flags = 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/crc
 (default) = `D:\Cygwin\usr\crc'
 flags = 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/UNIX
 (default) = `H:'
 flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
 (default) = `D:\Cygwin\bin'
 flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
 (default) = `D:\Cygwin\lib'
 flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin1円.00.000
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options
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\mounts00円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts01円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts02円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts03円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts04円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts05円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts06円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts07円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts08円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts09円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円A
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円B
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円C
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円D
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円E
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts0円F
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts10円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts11円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts12円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts13円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts14円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts15円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts16円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts17円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts18円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts19円
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円A
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円B
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円C
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts1円D
a: fd N/A N/A 
c: hd FAT32 6850Mb 37% CP UN WINDOWS98
d: hd FAT32 6169Mb 44% CP UN CRC DRIVE
e: cd N/A N/A 
f: fd N/A N/A 
g: cd CDUDF 657Mb 22% CP UN INSTALLSHEI
h: net VFSU 3869Mb 40% CP UN root
D:\Cygwin\usr\crc /usr/crc system textmode
D:\Cygwin\bin /usr/bin system binmode
D:\Cygwin\lib /usr/lib system binmode
D:\Cygwin / system textmode
H: /UNIX system binmode
Found: D:\Cygwin\bin\bash.exe
Found: D:\Cygwin\bin\cat.exe
Found: D:\Cygwin\bin\cpp.exe
Found: D:\Cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: D:\Cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: D:\Cygwin\bin\gcc.exe
Found: D:\Cygwin\bin\gdb.exe
Found: D:\Cygwin\bin\ld.exe
Found: D:\Cygwin\bin\ls.exe
Found: D:\Cygwin\bin\make.exe
Found: D:\Cygwin\bin\sh.exe
Found: \bin\sh.exe
Warning: D:\Cygwin\bin\sh.exe hides \bin\sh.exe
(NOTE: BOTH SH.EXE's ARE IDENTICAL)
 115k 1999年09月14日 D:\Cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
 "cygitcl30.dll" v0.0 ts=1999年9月13日 22:46
 63k 1999年09月14日 D:\Cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
 "cygitk30.dll" v0.0 ts=1999年9月13日 22:47
 474k 1999年09月14日 D:\Cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
 "cygtcl80.dll" v0.0 ts=1999年9月13日 22:31
 19k 1999年09月14日 D:\Cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
 24k 1999年09月14日 D:\Cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
 "cygtclreg80.dll" v0.0 ts=1999年9月13日 22:31
 768k 1999年09月14日 D:\Cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
 "cygtk80.dll" v0.0 ts=1999年9月13日 22:36
 611k 2000年12月25日 D:\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
 "cygwin1.dll" v0.0 ts=2000年12月25日 12:39
 Cygwin DLL version info:
 dll major: 1001
 dll minor: 7
 dll epoch: 19
 dll bad signal mask: 19005
 dll old termios: 5
 dll malloc env: 28
 api major: 0
 api minor: 31
 shared data: 3
 dll identifier: cygwin1
 mount registry: 2
 cygnus registry name: Cygnus Solutions
 cygwin registry name: Cygwin
 program options name: Program Options
 cygwin mount registry name: mounts v2
 cygdrive flags: cygdrive flags
 cygdrive prefix: cygdrive prefix
 cygdrive default prefix: 
 build date: Mon Dec 25 12:39:48 EST 2000
 shared id: cygwin1S3
Use -h to see help about each section
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /