busybox triggers a possible bug in make-3.81rc1 and 3.81beta4

Bernhard Fischer rep.nop at aon.at
Thu Mar 9 04:03:39 PST 2006


Hi,

busybox is triggering a bug in make-3.81rc1. This bug is at least also
existing in make-3.81beta4 (from debian).


current busybox-svn does provoke this with make-3.81beta4, 3.81rc1 and
cvs-HEAD:
make: *** No rule to make target
`/scratch/src/busybox/e2fsprogs/blkid/blkid/blkid_getsize.c', needed by
`/scratch/obj/bb4/e2fsprogs/blkid/blkid_getsize.o'.  Stop.


Attached is a small testcase which works as expected with make-3.80:
/tmp/m/obj$ make --version
GNU Make 3.80
/tmp/m/obj$ make -f ../src/Makefile 
mkdir -p /tmp/m/obj/dir
cc    -c -o /tmp/m/obj/dir/a.o /tmp/m/src/dir/a.c
cc    -c -o /tmp/m/obj/dir/b.o /tmp/m/src/dir/b.c
ar cru /tmp/m/obj/my.a /tmp/m/obj/dir/a.o /tmp/m/obj/dir/b.o

but fails with e.g. make from cvs:
/tmp/m/obj$ rm -rf *.a dir
/tmp/m/obj$ make --version
GNU Make 3.81rc1
/tmp/m/obj$ make -f ../src/Makefile 
make: *** No rule to make target `/tmp/m/src/dir/dir/a.c', needed by
`/tmp/m/obj/dir/a.o'.  Stop.


Is this a real bug or a user error?

PS: references to the same bug
http://busybox.net/lists/busybox/2006-March/018910.html
http://lists.gnu.org/archive/html/bug-make/2006-03/msg00018.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-3.81rc1_possible_bug.tar
Type: application/x-tar
Size: 10240 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20060309/7a404839/make-3.81rc1_possible_bug.tar


More information about the busybox mailing list