Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2002 16:40:39 -0500 (EST)
From:      Chaskiel Grundman <cg2v@andrew.cmu.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/35568: make declares target out of date, but $? is empty
Message-ID:  <200203052140.g25Leds20652@gtok-vm.andrew.cmu.edu>

next in thread | raw e-mail | index | archive | help

>Number:         35568
>Category:       bin
>Synopsis:       make declares target out of date, but $? is empty
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 05 13:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chaskiel Grundman
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
Carnegie Mellon University
>Environment:
System: FreeBSD gtok-vm.andrew.cmu.edu 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386


	
>Description:
A makefile containing the following (this is not the complete makefile...)

all: ${TOP_LIBDIR}/libafsrpc.a

libafsrpc.a: ${LIBOBJS}
        $(RM) -f $@
        $(AR) crv $@ ${LIBOBJS}
        $(RANLIB) $@
        case "${SYS_NAME}" in \
            rs_aix*) \
                $(AR) crv $@ ../sys/afsl.exp;; \
        esac

${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
        ${INSTALL} $? $@

has the following behaavior if make is invoked when the library is up to date
(this is a subset of the make -d lmv output):

Examining libafsrpc.a...modified 15:22:39 Mar 05, 2002...library.../ modified 15:22:38 Mar 05, 2002...up-to-date.
Examining /usr/home/cg2v/openafs/lib/libafsrpc.a...modified 15:22:39 Mar 05, 2002...library.../ modified 15:22:38 Mar 05, 2002...out-of-date.
/usr/home/cg2v/openafs/lib/libafsrpc.a:> = libafsrpc.a
/usr/home/cg2v/openafs/lib/libafsrpc.a:? = 
/usr/home/cg2v/openafs/src/pinstall/pinstall  /usr/home/cg2v/openafs/lib/libafsrpc.a
Not enough file names
*** Error code 1

The obvious work around is to use $< or $> in the rule instead of $?, but that
isn't workable in this case since some older makes don't impliment those.

I can't be sure that nothing else changed, but I believe that this problem did
not affect my FreeBSD 4.4 system
>How-To-Repeat:
        I tried to produce a minimal makefile that triggered the problem, but
I was unable to come up with something simple that did not work. The actual
makefile that triggers the problem comes from openafs. A version that otherwise
compiles on freebsd is available here:

http://grand.central.org/dl/openafs/1.3.1/openafs-1.3.1-src.tar.bz2
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203052140.g25Leds20652>