cp.exe bug
Dave Korn
dk@artimi.com
Mon Mar 15 17:03:00 GMT 2004
> -----Original Message-----
> From: cygwin-owner On Behalf Of Ross Boulet
> Sent: 14 March 2004 21:45
> I cut more from my makefile and just use one symbolic in
> place of your BIN, OBJ, and FILE as follows:
>
> ####### Even More Simple Makefile Example
>
> CC= gcc
>
> FILE= foo
>
> all: $(FILE).exe install
>
> $(FILE).exe: $(FILE).o
> $(CC) -o $(FILE).exe $(FILE).o
>
> $(FILE).o:
> $(CC) -c $(FILE).c -o $(FILE).o
>
> install:
> mkdir -p ./bin/;
> cp $(FILE).exe ./bin/;
>
> ####### End Makefile
I can't reproduce the problem here:
-----snip-----
dk@mace /davek/test/cp-bug> ls -lart
total 2
drwxr-xr-x+ 11 dk Domain U 0 Mar 15 10:39 ..
-rw-r--r-- 1 dk Domain U 286 Mar 15 10:40 Makefile
-rw-r--r-- 1 dk Domain U 63 Mar 15 10:40 foo.c
drwxr-xr-x+ 2 dk Domain U 0 Mar 15 10:41 .
dk@mace /davek/test/cp-bug> cat Makefile
####### Even More Simple Makefile Example
CC= gcc
FILE= foo
all: $(FILE).exe install
$(FILE).exe: $(FILE).o
$(CC) -o $(FILE).exe $(FILE).o
$(FILE).o:
$(CC) -c $(FILE).c -o $(FILE).o
install:
mkdir -p ./bin/;
cp $(FILE).exe ./bin/;
####### End Makefile
dk@mace /davek/test/cp-bug> cat foo.c
int main (int argc, const char **argv)
{
return 0;
}
dk@mace /davek/test/cp-bug> make
gcc -c foo.c -o foo.o
gcc -o foo.exe foo.o
mkdir -p ./bin/;
cp foo.exe ./bin/;
dk@mace /davek/test/cp-bug> ls -lart bin/
total 11
drwxr-xr-x+ 3 dk Domain U 0 Mar 15 10:41 ..
-rwxr-xr-x 1 dk Domain U 11156 Mar 15 10:41 foo.exe
drwxr-xr-x+ 2 dk Domain U 0 Mar 15 10:41 .
dk@mace /davek/test/cp-bug> ls -lart
total 14
drwxr-xr-x+ 11 dk Domain U 0 Mar 15 10:39 ..
-rw-r--r-- 1 dk Domain U 286 Mar 15 10:40 Makefile
-rw-r--r-- 1 dk Domain U 63 Mar 15 10:40 foo.c
-rw-r--r-- 1 dk Domain U 428 Mar 15 10:41 foo.o
-rwxr-xr-x 1 dk Domain U 11156 Mar 15 10:41 foo.exe
drwxr-xr-x+ 3 dk Domain U 0 Mar 15 10:41 .
drwxr-xr-x+ 2 dk Domain U 0 Mar 15 10:41 bin
dk@mace /davek/test/cp-bug> cygcheck -svr | grep fileutils
fileutils 4.1-2
-----snip-----
Dunno why. cygcheck.out attached; it might be instructive to compare the
difference between mine and yours and see if it gives us any ideas why you
get the bug and I don't.
cheers,
DaveK
--
Can't think of a witty .sigline today....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 38622 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040315/82cb48bc/attachment.obj>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list