Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp527318rdg; Thu, 12 Oct 2023 12:33:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUmJ/871RHdy8/+WVH01ZWBlySgM6ZWMhlGnH2zktavTKyPcKJxTYRuYoJlofNMKFWEExO X-Received: by 2002:a05:6a20:5485:b0:143:f4dd:dfae with SMTP id i5-20020a056a20548500b00143f4dddfaemr32525994pzk.43.1697139212458; Thu, 12 Oct 2023 12:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697139212; cv=none; d=google.com; s=arc-20160816; b=zzztkZS6MpgRI+OzENt/78iM2rTWZwe8s7SYvadHCuo0+YMKnSSf8r+PyjnasJc3kC aJBNvOB7XiB7g86R2bGPa5+5+zbLikOJuBC46Gm/Wn+nWCwexzHj3vpVXtBR5UT43dfZ uBu/0afa3aZBtOUOAKN0NpqSjv9g/PgAZSS76ErnzWqZX7OzXRACLuFzIQAVfserHoC0 POAK7lMcdWUeFORJWZA3a2z34dHvjYuC7I5Y8wg+w98LcBK8KKYK+v60t2tdkwudjqTu qjchrliufvLRAZjHs8nnLf//rXNVtHiWKd9Cp/9oc/oEcDoucEKX1WkBA/v6ww8fYRjn wwZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z7Fcvn19BetYVwhCP3jzs+WzHyoTT6Ohg9B8EF3l/Nc=; fh=n5S/AR14tYMsjDdXEOPrR3UbxswSa5eTzDqlfcgbnjE=; b=lHOdEIyHgOPkAVxjg25kFXIxSLo53X7fVvR5JDjNoDU0WY3boGiRsCBo3z6ff4x/ev QfZaMkoxlT7Yz58pON5u49Ic+NPJ+Oo8Y65EhCcVi6/mjOYuLlgDdocgEYU4Sodqku8g 3pk6m95+lx5hezlQW6zCdnwTnlK+ZmjEnW8IFf2jW6V/dsTpggPuyDyy+v+GKgG6dWLs lmrNx+IAkjQk4xGw0kxnMIV1JqybaU5BGnt5WrcjNWuoXBh9q+lvTJPDUwJt9UNToXnJ dQni7PEPxpt4MCIseh1XufyGTURT7bzR9pRY9gIA7sa3qLJTjbz1qvFTUYgrbdlnJl5u f8Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KxwqeOs4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i16-20020a17090332d000b001bc8a9f5e52si3022618plr.135.2023.10.12.12.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KxwqeOs4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 974C380BE7F4; Thu, 12 Oct 2023 12:33:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442589AbjJLTdA (ORCPT + 99 others); Thu, 12 Oct 2023 15:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442263AbjJLTck (ORCPT ); Thu, 12 Oct 2023 15:32:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90DD8EA for ; Thu, 12 Oct 2023 12:32:38 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B4E3C433A9; Thu, 12 Oct 2023 19:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697139156; bh=cffo0Opb832Q634IA4d6N2Zi+yxWXyiKi+nWzBmlGXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KxwqeOs4r8vpCqBJORSSRoXOGV4RiW98JDhjqe5p4WP4aDt+w3tkD68fc64MkNVR0 KGLkMybw4iAfo1HRv0gj6Hf9sn8DL/yQRdO0DmSkpgyAQiyRVPDicp8fVO6u1OnOJx pG/zOYEHMY7WzrHab2BIaMErRQ22mxmsNHORhY3XDw0qPim9dZjJZNRugvqQAO6BV7 UKf5MD+dg9fSiHNNn+lp9rTOovZ2bOzp1sSE3/In6IQrERIrYPOfZIQ/fGGQXw93wd tbXydJvtu7GAqNxa7TJnANkhVV1D2YjvSNkFI9YBaq04e81j+5e+fOyu2yy44gWPIM tBeFBmReQZakg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 5A19ACE0CF9; Thu, 12 Oct 2023 12:32:35 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau Subject: [PATCH nolibc 12/19] selftests/nolibc: allow building i386 with multiarch compiler Date: Thu, 12 Oct 2023 12:32:26 -0700 Message-Id: <20231012193233.207857-12-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:33:25 -0700 (PDT) From: Thomas Weißschuh 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 Acked-by: Willy Tarreau Link: https://lore.kernel.org/r/20230917-nolibc-syscall-nr-v2-1-03863d509b9a@weissschuh.net --- 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 ee6a9ad28cfd..891aa396163d 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.40.1