From nobody Tue Feb 10 06:07:47 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1621330312; cv=none; d=zohomail.com; s=zohoarc; b=KZ2SAvFzQubNlYh/Vv9JEHqohhNVzMC9ADe4W89eYzLdlZmgEwr4gVpWyQW2+0i9J6WbMfRs3+05YwYiV6n44tP2nFWhT2L1z2PaK86b7hV3e2JXWxN+dC32zQuDn3lqx1bdG9synVhfyNI/ORkY6xO+4Vgp4ZWgyFwW0AdbJeE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621330312; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ZOEe6cez6SEgngPy3li6Y4fZAWFWB0XRBjyTyqxtFds=; b=nHhslynH8fiKOhVzQgAohOvOrqL8TzgGNrGac3Vp2/zvgSyoHvvdp9M2hpBgPvKvhmu3+4En6AxtHZfGJxebhcYWSWNlSFHo/OHYH3NwMDly7vyo5YxrTxePYqsrCGlVEIjx7jBR0WeCjdl+szJgf2BAvdlOGIr9vrI162JCfkQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162133031245777.74575539078671; Tue, 18 May 2021 02:31:52 -0700 (PDT) Received: from localhost ([::1]:37848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liw4t-0007Xx-6u for importer@patchew.org; Tue, 18 May 2021 05:31:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1livp9-00056w-GK for qemu-devel@nongnu.org; Tue, 18 May 2021 05:15:35 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:55852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1livoz-00013i-NW for qemu-devel@nongnu.org; Tue, 18 May 2021 05:15:32 -0400 Received: by mail-wm1-x329.google.com with SMTP id b7so4403240wmh.5 for ; Tue, 18 May 2021 02:15:23 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r2sm21822189wrv.39.2021.05.18.02.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 02:15:18 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AD8951FF87; Tue, 18 May 2021 10:07:23 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZOEe6cez6SEgngPy3li6Y4fZAWFWB0XRBjyTyqxtFds=; b=DOx608YGH1geHMpq1CWoN8aclQUGU02rm6CZbGHRD+d4Fu/6TyNZbDHCAp4yG9GxFf UU6j7xob04VeTAZSFVcvvspEhVjMSvIwp0iXbP6517W2mGWaSM1wsaMxGSK4ADey1tKY 6oECEdfAsGi/+T8XV2BSRbG9EEY6GbBzDO0tWFcDkw5WktnwO3IBKzbkmXP01YSakUxP rIKcwGK9CYyF1YCKSCm9OYGbRNmY4N3U+QKCTCMY/i6GP3V55gCxtkXF2JtRXQ5lCx8g nNxJuPWgf1Hb8/s1nRh+Bx+Ki5MHctkayp6xQiK3oUcqpT9TXhyfMx2Mk93R76v1BeMZ ylpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZOEe6cez6SEgngPy3li6Y4fZAWFWB0XRBjyTyqxtFds=; b=IhBjlPqyrlEqmRgmA2mDD7+1+Eojof/aJGaYkQPJpG1NIe/nXDr8OG3q75TaFRcnMt hquvDwfbs+QkGz2I0dvQXjKt1ksm34LC2+qDAkl0Bk0nd1uf9OZ4QVTnZw1+2pXSZJNk HGFZhTJfjoelPercGM/VhmJGTYblQQQZNTmByvF+8CWvWT6pAQnxq+/apu7BdrpNclDa nRkJznBGYUe59DnwnfzZ1ES8csUpcHxREyKHpT21aLM1pfq42symj8uL3tSodjAAoj0V omONaQh4o9S0+Ky6STCws/doiD+ycvyGwwtjlnKZq19yL1bMKZxuMAJ5WLTW2hEwIMXl Pz1A== X-Gm-Message-State: AOAM533W3sox2OjtCDmtxai9f5Shf0jMcbb896so1l+s2t/mqzVNoBLZ Vda3NHNAS2bhlScFQoCuMAkU8A== X-Google-Smtp-Source: ABdhPJzzQl4ixKj58/6a4YLZchvsQz2t6hVA2kIU74JcH+6/uDDmnwvI9umd+ezQh4lC/C0k0dZI6A== X-Received: by 2002:a1c:4482:: with SMTP id r124mr3827256wma.42.1621329322369; Tue, 18 May 2021 02:15:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 29/29] configure: use cc, not host_cc to set cross_cc for build arch Date: Tue, 18 May 2021 10:07:20 +0100 Message-Id: <20210518090720.21915-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210518090720.21915-1-alex.bennee@linaro.org> References: <20210518090720.21915-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Otherwise you run into hilarity like trying when cross compiling a 32 bit ARM build on a 64 bit system trying to use host_cc to build 32 bit test cases. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210512102051.12134-32-alex.bennee@linaro.org> diff --git a/configure b/configure index df11c8bad0..9470fff09a 100755 --- a/configure +++ b/configure @@ -1651,7 +1651,7 @@ case "$cpu" in # No special flags required for other host CPUs esac =20 -eval "cross_cc_${cpu}=3D\$host_cc" +eval "cross_cc_${cpu}=3D\$cc" cross_cc_vars=3D"$cross_cc_vars cross_cc_${cpu}" QEMU_CFLAGS=3D"$CPU_CFLAGS $QEMU_CFLAGS" =20 --=20 2.20.1