From nobody Wed Sep 7 16:02:06 2022 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 4MN6TC01Lxz4bWpM for ; Wed, 7 Sep 2022 16:02:07 +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 4MN6TB3mNNz3wFN for ; Wed, 7 Sep 2022 16:02:06 +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 4MN6TB2rDmzZgf for ; Wed, 7 Sep 2022 16:02:06 +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 287G26N3058950 for ; Wed, 7 Sep 2022 16:02:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 287G265i058949 for bugs@FreeBSD.org; Wed, 7 Sep 2022 16:02:06 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 266274] building -HEAD on an install with no compiler in /usr/bin, but using CROSS_TOOLCHAIN fails Date: Wed, 07 Sep 2022 16:02:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: adrian@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-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=1662566526; 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=GwIHErGl8l2B/VlvgtkH78lxp2WUBeAO7JI8fwKxyV8=; b=cdYsvbRb+OFvIU1azvH8neFaAjnDRDsWKX+u9aPg8yMs8qVvDheXNou8KvNu78RykH6b52 xHnFi1zSakkCnQlJMikTiTd4/WDai6GkyWLkvUv62QVrQmGvkd3M3MhAcmeTKDwSEDKHW2 rnzOLtbw9yXThdW2tMURlKXAHcpeQMy5bK/T15pkCUdcxGXARWHmWlfDklZPIsQMrWdNeS M95vg1TyDJAZmDWxFz09UlciHp2CZtvkd5Sz0X15QY8JFiAv/g7hRZjjaPBVwACY6xCAbx XWea/UeqJm2D7e7S9SHKRH2fYj86Odnh9OBcd8X/XpyyueEOHKR6aU690wk7XQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662566526; a=rsa-sha256; cv=none; b=h4Xv7jnjUBL3icanQwiIIkg4dqBj0Bv1tHGjSa+f0R40mfM62ape8XHVVKxCiwAWe5tEnD +cAb+I853L5oIS88Onrdq5n/TKa+5/hpFzW+8NcgFU/ogAXLnF4Nyp+rFjz9DWYJLCqfRN gwZl63/S4jVdVSjkC5OnQoHlHCAM7MulOLPgzO1G4oxERJos5LgNOqjTBMnYcCUGoAClVX 31JHfRgPEqFPacTo0yOxfCbaLWjiJ7QfcKBPPtI+Kl80dt9IuBzJPtkOLYnC3KkjWmfT99 ta6jQCbbbt+g3y4wJUmi72v8BRkoEdlMlO8yMpgP5X18UBn2C0wATz+nMCBv7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266274 Bug ID: 266274 Summary: building -HEAD on an install with no compiler in /usr/bin, but using CROSS_TOOLCHAIN fails Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: adrian@freebsd.org In theory? we should be able to build -HEAD with CROSS_TOOLCHAIN even if we don't have a host compiler. However in practice, building the host tools fails very early because we're checking the compiler/type version early in the .mk files, before CC is def= ined correctly. Also, there's a fun question around whether this is acceptable or not, as we still need /host/ tools and a cross compile GCC is't that. (ie, we don't TECHICALLY have a HOST_TOOLCHAIN option.) To reproduce: * build a system with WITHOUT_TOOLCHAIN=3D"YES" * make, make install * pkg install llvm13 (for example) * make delete-old ; this will remove the old compiler pieces and make things very broken * try rebuilding --=20 You are receiving this mail because: You are the assignee for the bug.=