From nobody Tue Nov 30 00:34:14 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 781CE18C9F60 for ; Tue, 30 Nov 2021 00:34:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J33BG10yrz4sdg for ; Tue, 30 Nov 2021 00:34:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 02A6D49AA for ; Tue, 30 Nov 2021 00:34:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1AU0YDIF084938 for ; Tue, 30 Nov 2021 00:34:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AU0YD8d084937 for bugs@FreeBSD.org; Tue, 30 Nov 2021 00:34:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260128] "make tags" fails with "gtags not found", src/Makefile undesirably rewrites PATH Date: Tue, 30 Nov 2021 00:34:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jfolker11@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638232454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p/JjERxnrZVRzdSvcTTc8tAnXUAnBJdx969APoAokHA=; b=O5M4Xip+LS2McV96uyFZnMAHlH1Hz/7yU0rLC0WcGFDFovEM4ZoC7xBYhCS3K8MkC4UQil 3G75d/vdZlPaFUy8ULUiQ8Mg4rqBnMqXQH8LzJPmLHpSijTJeTS0Hb6985TQaUvw9xezeC FQTm4zDiuu1328Js3ocspx5WWnv8tJ9gRndgkPRwrF9p6OE0qr1DHxEMWEmWrx52sEllVL J4QN6+qzsH5O5tg5x52HLN7kijy5Dek+UDSCh4OpBaPWexFVEGercuWABrr31AgNJKNQ9v AeEvUsjAYzkxtq7ekm4qk/59pi8RhjI6WD5dg7WDI/LBpPwhsvuQDvOR027AnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638232454; a=rsa-sha256; cv=none; b=dK3E9d9OYb//3yfeTObUY4aR/b6SHfP9xJGXkKXwGmP9OI0X9OV257fTQ8SsdhLq20V1kK NBQKbWIfG8CQ73NTrvAIJwOf9extjnI/Q27h2qkKWItYUiF9vfph5nU3orzp9b6zpSB9yo BELobm5698v4BrVjEEvu4ojxmGhchYiwcGwzwq9g9bcTUr7e1lFfUCvMQsHQjRFQ3KfMvE aksrNFmSvURFeXwBQNG4irFImYoxsUgP3DqLklkYgJ4ldiO1vzIOQd32lW8SHXINDgkg3Q /NXMM8L+TL11MoOM4ugFXu93TRiu61p5ocAqmNgo9dTUFo6QSPwq4VbhqOfIqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260128 Bug ID: 260128 Summary: "make tags" fails with "gtags not found", src/Makefile undesirably rewrites PATH Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: jfolker11@gmail.com When running "make tags" to generate a TAGS table for the src tree, I encountered the build failure shown at the bottom of this bug report. When I put a symlink to gtags in /usr/bin/, "make tags" succeeds. It seems that somewhere in Makefile Land, a sweaty fever dream of a place w= here clean targets either clean only half your kitchen or burn it to the ground, PATH isn't just being prepended or appended, but flat-out erased and rewrit= ten. Sadly, the cause is not obvious from a cursory recursion into every Makefile from src/Makefile all the way down to src/lib/csu/tests/dso/Mekefile where = the build fails. I'll keep digging until I find the skullduggery! root@freebsd:/home/jfolker/freebsd/src # echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin root@freebsd:/home/jfolker/freebsd/src # which gtags /usr/local/bin/gtags root@freebsd:/home/jfolker/freebsd/src # pwd /usr/home/jfolker/freebsd/src root@freebsd:/home/jfolker/freebsd/src # make tags =3D=3D=3D> lib (tags) =3D=3D=3D> lib/csu (tags) =3D=3D=3D> lib/csu/amd64 (tags) =3D=3D=3D> lib/csu/tests (tags) =3D=3D=3D> lib/csu/tests/dso (tags) /bin/sh: gtags: not found *** Error code 127 Stop. make[5]: stopped in /usr/home/jfolker/freebsd/src/lib/csu/tests/dso *** Error code 1 Stop. make[4]: stopped in /usr/home/jfolker/freebsd/src/lib/csu/tests *** Error code 1 Stop. make[3]: stopped in /usr/home/jfolker/freebsd/src/lib/csu *** Error code 1 Stop. make[2]: stopped in /usr/home/jfolker/freebsd/src/lib *** Error code 1 Stop. make[1]: stopped in /usr/home/jfolker/freebsd/src *** Error code 1 Stop. make: stopped in /usr/home/jfolker/freebsd/src root@freebsd:/home/jfolker/freebsd/src # --=20 You are receiving this mail because: You are the assignee for the bug.=