From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76152C71136 for ; Wed, 11 Jun 2025 16:22:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3093841FF8; Wed, 11 Jun 2025 16:22:04 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HH_AU7dp5S5h; Wed, 11 Jun 2025 16:22:03 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 62C3541F91 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 62C3541F91; Wed, 11 Jun 2025 16:22:03 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id 53A41237 for ; Wed, 11 Jun 2025 16:22:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 31DA240425 for ; Wed, 11 Jun 2025 16:22:02 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id VMbjSgAOC5nz for ; Wed, 11 Jun 2025 16:22:01 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=136.243.2.102; helo=nyx.n621.de; envelope-from=fl@n621.de; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 25DA4400BF DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 25DA4400BF Received: from nyx.n621.de (v4gw.hekate.n621.de [136.243.2.102]) by smtp2.osuosl.org (Postfix) with ESMTPS id 25DA4400BF for ; Wed, 11 Jun 2025 16:22:00 +0000 (UTC) Received: from charybdis.. (localhost [127.0.0.1]) by nyx.n621.de (Postfix) with ESMTP id EE3B8E00539; Wed, 11 Jun 2025 18:21:57 +0200 (CEST) From: Florian Larysch To: buildroot@buildroot.org Cc: Christian Stewart , Thomas Perale , Florian Larysch Date: Wed, 11 Jun 2025 18:21:51 +0200 Message-ID: <20250611162152.32353-1-fl@n621.de> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=n621.de; s=dkim; t=1749658918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=bywNv5ld6WW7N9aaHuQbggWDQjHlOhjLivqr7pJcqkk=; b=XWwbWbblHap1vC/q2gBxfbusDtkl/x0lX6bEdNbxnNyba7kNRud/Ec+O+u6bz+xkaxNdmx 9TGQSA6c+CNS6pySrBjaxxH7+XlMgOrXjZNFTjS4MAJHEpwC83aCnvy4vTON+Vmj+JN9OK 8Psrty2hjDB/AKPLLRMqMHGU1r2FU4A= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=n621.de X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=n621.de header.i=@n621.de header.a=rsa-sha256 header.s=dkim header.b=XWwbWbbl Subject: [Buildroot] [PATCH 1/1] package/go: make pre-built compiler provide target support too X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Currently, BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS, which transitively depends on stage1 bootstrapping support, which is only present for x86/x86_64 and arm. When building on a host system which doesn't support a full bootstrap (like aarch64), we can fall back on the pre-built toolchain. However, in that case, those symbols are all false, making the internal state of the build system inconsistent. In particular, this causes none of the environment variables like GOARCH to be set and thus the Go compiler will perform a native build instead of a cross build. Fix this by also allowing BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH_SUPPORTS to fulfill the dependency. Signed-off-by: Florian Larysch --- package/go/Config.in.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/go/Config.in.host b/package/go/Config.in.host index 7e354b3298..a42e37f90b 100644 --- a/package/go/Config.in.host +++ b/package/go/Config.in.host @@ -2,7 +2,7 @@ config BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS bool default y - depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS + depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS || BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH_SUPPORTS # See https://go.dev/doc/install/source#environment # See src/go/build/syslist.go for the list of supported architectures depends on (BR2_arm && BR2_TOOLCHAIN_SUPPORTS_PIE) || BR2_aarch64 \ -- 2.49.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot