[Bug 267871] /usr/bin/rs compile fails after udate to c++

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Dec 2022 18:50:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267871

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjg@FreeBSD.org

--- Comment #6 from John Baldwin <jhb@FreeBSD.org> ---
(In reply to devel from comment #5)
Doing a fresh git clone doesn't ensure that /usr/obj is empty.  The only way
make(1) could possibly know to look for rs.c is if it found a generated .depend
file in /usr/obj that contained a reference to rs.c.

One question though is if you are using meta mode by chance?  I don't know if
somehow the implicit SRCS breaks.  bsd.prog.mk has logic to assume <foo>.cc
instead of <foo>.c for the default value of SRCS if PROG_CXX is used instead of
PROG.  I see a somewhat dubious check for PROG_CXX (seems like it should be
checking something else?) in local.dirdeps.mk, but aside from that I can't see
any way that make would think the implicit source was rs.c instead of rs.cc.

-- 
You are receiving this mail because:
You are the assignee for the bug.