From nobody Thu Apr 17 10:57:34 2025 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 4ZdZbz2RCxz5t05D for ; Thu, 17 Apr 2025 10:57:35 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZdZby2my9z3Gc5 for ; Thu, 17 Apr 2025 10:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744887454; 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=mtXcUU30TQGDCul0Cpifh8Zt4TTFkHBqOQBixdLG+k8=; b=Tncp+ybSqIRxEeduMmVB/3X+2D3yCG3MNk2IOGzcjw92cUtMSYm2qRv6XgrjV6KDB0lmD9 tqWMbJ+nS1KoJp40h+aygr80Tw15n+mepEPD3v1/CecfF7bVyYbHqnKmGD53iGWiZL8iaq 4H78UAk7yQi9Hb0w4RjIKrCItw9xEuTn8teV6sKjMLwn/0QQDYyS9LrSsTwnh2W2ZYXNe9 Z0DxpGIJosNe3NQl5wCiHDxBNKTfwgB4mrxRA9pX5IuZ/dqA47pIQN5WxPk0Ea5RWrm+a0 NCn8JTu1t9qmbzJxZ0G6Hv21h0H9I8XJEnc6OlZI3H74/1PHyEHgnS+t4Y0yGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744887454; a=rsa-sha256; cv=none; b=dCzTIo/14KIIEXRN1U7HPTu93PDFQOg75TFzA7n5hhi0ReX4el4sfnOfoRbuLYYsR4thKx CHvRE64IRgvUALJNdDQi19y6y/ZSW0JS+73fjZuSky9GZJqsc8oLw7sylIpvk4WDoc3uHu WmRHD1l2l/8TZwGemiJu09GoWG8Hpl2GwHRkb2D2ZS99ZDzRg440s1wDauBynWOwa8650g iRjtHDX9ICOOY5nAI4KFaJqjMz7YltOrfmfgxglpLTeH1Bn3sxQWkRFetCBhgAGGYs576D PQz1nVGpo/pvgHuBiE8zoyqUNVaVYBK4ffrZVCIvoK12qI48GcGBVtkF7kSsJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744887454; 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=mtXcUU30TQGDCul0Cpifh8Zt4TTFkHBqOQBixdLG+k8=; b=NlAyteZV6Mo7CPoL1zsARY7NDsZK2eAAFAfSvtumlDNDOahCodcZdWsExYSuXZQxVs7EHK yB9heL9YUnMVt9paQ1dEqOK98sebZTAFqG70o09Q78eSjPuimzbokEOk1zqKDXz9hxq3dY GvRZOHejVWnU2TZ1NkwbqGz0Z7MWJNJOH9dmZLhwWWrHU+uVNlzROCJ0ne7fqLOJ2m8/Hz zSfJwco8nb1P9Ae8Of4ZvTLaxzIr45/4VwuDhLMYYJ9IdEygu9+DwHw76nXJlXoUv2iO8y hQfZ+lAEXrdc9yMxu5c4Li6hjpdQp992AegMSA9uOhgPLxqaTUFOHii3W6xisA== 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 4ZdZby2H3DzlvV for ; Thu, 17 Apr 2025 10:57:34 +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 53HAvYgl025560 for ; Thu, 17 Apr 2025 10:57:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53HAvYTI025559 for bugs@FreeBSD.org; Thu, 17 Apr 2025 10:57:34 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 286154] WITHOUT_CLANG overrides WITH_CLANG_BOOTSTRAP Date: Thu, 17 Apr 2025 10:57:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286154 Bug ID: 286154 Summary: WITHOUT_CLANG overrides WITH_CLANG_BOOTSTRAP Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: avg@FreeBSD.org I observe that a build with WITHOUT_CLANG skips usr.bin/clang/clang directo= ry even when the build detects that cross-tools are required. E.g., a build with WITHOUT_CLANG outputs this: -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- =3D=3D=3D> lib/clang (obj,all,install) =3D=3D=3D> lib/clang/libllvm (all) =3D=3D=3D> lib/clang/libllvm (install) =3D=3D=3D> usr.bin/clang (obj,all,install) =3D=3D=3D> usr.bin/clang/lld (obj,all,install) Comparing to a default build, the following lines are missing: =3D=3D=3D> usr.bin/clang/clang (all) =3D=3D=3D> usr.bin/clang/clang (install)=20 I think that the issue is cased by this check in usr.bin/clang/Makefile: .if ${MK_CLANG} !=3D "no" SUBDIR+=3D clang .endif When building cross-tools and MK_CLANG_BOOTSTRAP is yes, MK_CLANG is still = no because of WITHOUT_CLANG. Those lines in usr.bin/clang/Makefile come from commit https://cgit.freebsd.org/src/commit/?id=3D8e1c989abbd1db4. Bug 240507 describes a similar problem, but with a different root cause. The commit in question was made after the bug fix(es), so it broke the configuration in a different way. https://cgit.freebsd.org/src/commit/?id=3D8e1c989abbd1db4 --=20 You are receiving this mail because: You are the assignee for the bug.=