Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2004 06:03:41 -0800 (PST)
From:      Albert Hofkamp <a.t.hofkamp@tue.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/61527: make -j2 changes $*
Message-ID:  <200401181403.i0IE3fEh030451@www.freebsd.org>
Resent-Message-ID: <200401181410.i0IEA91G079353@freefall.freebsd.org>

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

>Number:         61527
>Category:       bin
>Synopsis:       make -j2 changes $*
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 18 06:10:09 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Albert Hofkamp
>Release:        4.7
>Organization:
>Environment:
>Description:
with a make rule like

foo/bar.o: foo/bar.cc
        echo CC -o $*.o $<

(and an existing foo/bar.cc
'make' ouputs 'CC -o foo/bar.o foo/bar.cc' while
'make -j2' outputs 'CC -o bar.o foo/bar.cc', ie the target misses the directory part in parallel make

>How-To-Repeat:
construct a makefile like above, create a dummy foo/bar.cc, then type 'make' or 'make -j2'

>Fix:
Other than not using directories in targets or not using -j2, none

>Release-Note:
>Audit-Trail:
>Unformatted:



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