Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4264299rdb; Thu, 14 Sep 2023 17:56:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVhdXkoZ5jkTFPS6wfalfGQN4DGtm7Cqh4FIT7KzlzW9H+UcaSOsfdCxzRDq3GBJ6N6WNq X-Received: by 2002:a05:6358:63a2:b0:134:d030:e5da with SMTP id k34-20020a05635863a200b00134d030e5damr505804rwh.21.1694739378947; Thu, 14 Sep 2023 17:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694739378; cv=none; d=google.com; s=arc-20160816; b=SzR7G3De0Qn5lca7VCc1F+U6JpeO/Z2wDW8EZikD/YBQrdTTpXN6P5ZdY+CQ/tLjpk oNzNom5H/gERHz5yOA3V071EuDNfIa6kBq8XikxRcAWjk3FGX3pvw9Z/7tloxD9WX5mO IqMJILL2rKXiMeUiz5Qa3lKDbY2DHeZCqNLJFcwbRwwn7+HKP+tNL1Qggre8RQf8OHnz HmjlRWHHQW3kY6PQofo/regvawC4R4pBxJeMS0iKMq7UwFAGKaO8L9ghqOV1eRjjQblg lgZcpq+kqhSZy1gbcyd3Dizk4fc3dj4vi50v1UaYGa8ZHiWXsgmlYrxE3xiEXRSsUoOR m6UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=iUpyg+ZbCOEe3HyXhRlCA9/KVSU9oVgqH2h1eIWdLGI=; fh=azYK+WW57en7GGRdjKWjQOHkHDsNRqF/+6hheqDI200=; b=qhvs7xqj8nlLiPsn3RC/JlRUm70C3KC1Z0Y3kT7XeHYAPi8slpX8BMpIhWot8YeJNU Q5WzssP+E2E4ScWBYUbm1TT7liQ2ADs/m3u8UmxzUqxofKjQPVj8xvU/CaTv7nIixgO3 pc943PZPL2luHtY8t/yhjT+/ik1jI6irOEH7xe1fMXCTVSvWECq3OrB/WwNiuOZUgTuo l+6oIKAqy7Bt99fr7OaJ/VziovjjnvU6oLMVs47PzCJ7AucQbWpNUCiDOUCTPcGEFNk7 xPj96gSYodbGfmMW4+3BRGA3Gb4PA3SCF4Sky+bNGzkRCObkWNaAj3SxywNMMnVaRK+V GamA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=fQaMl0ZA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id m9-20020a654389000000b00565e39e7b80si2239978pgp.678.2023.09.14.17.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 17:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=fQaMl0ZA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3B5618411D5E; Thu, 14 Sep 2023 09:02:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241762AbjINQCN (ORCPT + 99 others); Thu, 14 Sep 2023 12:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241659AbjINQCA (ORCPT ); Thu, 14 Sep 2023 12:02:00 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49014271E; Thu, 14 Sep 2023 09:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1694707293; bh=9Dr/Qlwz9Z5VVtmbM8JisJIKlg1q6mK4mMaDaT8aZHA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=fQaMl0ZADkTcn1qLdesYc0JElUD9GU3vjgALM2c2J2mMVoWd0UxMkI4DTYNLV6u71 N/euTGpE0aCdUp0gXHiuUqU+DXM1U0oq5wlWc4hq/C+9whepDaEWRX8wla4vJnezGV hLGAFnCFKk+1Kvk3qK+d/aFnNWNHlinSmp956LPU= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 14 Sep 2023 18:01:17 +0200 Subject: [PATCH 1/4] selftests/nolibc: allow building i386 with multiarch compiler MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230914-nolibc-syscall-nr-v1-1-e50df410da11@weissschuh.net> References: <20230914-nolibc-syscall-nr-v1-0-e50df410da11@weissschuh.net> In-Reply-To: <20230914-nolibc-syscall-nr-v1-0-e50df410da11@weissschuh.net> To: Willy Tarreau , Paul Walmsley , Palmer Dabbelt , Albert Ou , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694707292; l=915; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=9Dr/Qlwz9Z5VVtmbM8JisJIKlg1q6mK4mMaDaT8aZHA=; b=4hV3jmCa9Owq/qDwKo7tLD8BIPuEx78VNy7e+gUuEGgiBDFvmAUaNjzfTv12ywRmmXc39/n+P t1qzu7r4eSGA1L3Bu5s4gUucQV1Iy2C30Ct+vTxX9WnaFcRJ9QUf+Yd X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 09:02:11 -0700 (PDT) When building with a multiarch-capable compiler, like those provided by common distributions the -m32 argument is required to build 32bit code. Wrap it in cc-option in case the compiler is not multiarch-capable. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 689658f81a19..19096a9ded55 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -113,6 +113,7 @@ else Q=@ endif +CFLAGS_i386 = $(call cc-option,-m32) CFLAGS_ppc = -m32 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) CFLAGS_ppc64 = -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) CFLAGS_ppc64le = -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=elfv2) -- 2.42.0