public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Bug in cygwin/XP file system
@ 2004-05-28 18:15 Nitin Gupta
  0 siblings, 0 replies; only message in thread
From: Nitin Gupta @ 2004-05-28 18:15 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

Hi,
I use to build some source code located on a Linux PC by mounting a 
Network drive to that and accessing it over cygwin by "cd /cygdrive/X" 
and than do a "make". It seems like that it does not work on new cygwin  
(output of uname -a : CYGWIN_NT-5.1 gupta-xp 1.5.10(0.116/4/2) 
2004-05-25 22:07 i686 unknown unknown Cygwin )

I am attaching two files to recreate the bug.
steps
1. Create a "TEST" directory on your local hard drive and on a Linux 
machine.
2. copy the attached script and makefile in that directory
3. map linux drive on your windows PC
4. open a cygwin shell
5. cd to "TEST" directory on your Linux PC mapped directory and run the 
script and than do a make
6. if you get a message like "rule to make subdir12.o not found", than 
you are seeing the bug. If not, it mysteriously works for you.
7. In case you saw the bug, cd to "TEST" directory on your local hard 
drive and run the script and do "make", it should work for you.

The test script just generate 100 sub directories under test and than 
generate .c files. make file try to generate libX.a out of those  100 
objects.

Thanks,
Nitin

Note: when replying, please cc it to my email address, as I am not on 
cygwin mailing list.

-- 
NI+IN


[-- Attachment #2: generate_test.sh --]
[-- Type: application/x-sh, Size: 216 bytes --]

[-- Attachment #3: Makefile --]
[-- Type: text/plain, Size: 331 bytes --]


.PHONY: target

VPATH   := $(sort $(filter-out CVS,$(shell find SUBDIRS -type d)))

OBJECTS := $(filter-out SUBDIRS.o,$(addsuffix .o,$(notdir $(VPATH))))


target:  libX.a

libX.a : $(OBJECTS)
	ar rucv $@ $(OBJECTS)

	#echo "VPATH: $(VPATH)"
	#echo "OBJECTS: $(OBJECTS)"

%.o:%.c
	gcc $^ -o $@

clean:
	rm -rf SUBDIRS *.o libX.a


[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-28 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-28 18:15 Bug in cygwin/XP file system Nitin Gupta

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).