From nobody Thu Oct 9 04:18:54 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A436255250 for ; Fri, 20 Jun 2025 11:00:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750417241; cv=none; b=Y0xjpJWstc+rp2j63aOAk6yjORPOFr1d5AU3kb0859CIq27hlpnAWTeXNtcuk4WJS6zd/MirDysQFAB8BucVAYfAUu1yJnChvbQHxsqGAXTGcGKKB56x2LUQ+gJ6xgbxEp+OOm6Jq5p7lju9L+7dVsuoQlicJ1OoHRNJlU6E7z0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750417241; c=relaxed/simple; bh=pr/KqdFA1dyDJYNDSxullixg+y3pLhBOHWegk527QVI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mxBmrcDKUvnzDoe8ktQ5w2HM7BpMOhZuA3JfAWGQdVYBrA6fdQa1cW/OnBTCs2pGVZ5COrb9HuyQvtQelTQO+1sF7ocd2Lag4K9GOACpe88ZYlnLJRlkWYGerobyZ8LlszCI0O4N019FGGnhl+m/Ra8WK+rsbz7YMo44Q8Hei34= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TdGL/7+O; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ISQbHP8P; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TdGL/7+O"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ISQbHP8P" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1750417232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2w4hPKvF7hL0Kc5WnaNyp1RctLQ4dOlft5mLMMcWDs4=; b=TdGL/7+ODiIUfBpI76Ht3GFEQu6n1DCbEXnW3WfGQaVBzekz+i/tr/AW0mo6KQLLWPUbIy DVrAFaKWGd+yE5/x3TI0npILmix2WYVZ/4QWWIQOLLP/4XBpPju7bOIWBRJw8gZyJNIY2t wKz10TnV0oYfzAlZVpqQ8hwLRjboR2Ne2oJFVJyqss9gB/dWo34Dgrn5aoGgR9ENpKhB1r jfVDgbgPC41qS/iHpnxS09djoAC3+geaT1E1XJyGBed0Nj/DCcTAPPawLeVnpybdTm1lv/ qGq80Kttf07sWAUGBZ4h8wVY8GVBpkosPvBdYpzJMxzuY0HlO9tjD8UmEB4PBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1750417232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2w4hPKvF7hL0Kc5WnaNyp1RctLQ4dOlft5mLMMcWDs4=; b=ISQbHP8PXXquXQHKgnf2FmcKiLvLulReXWQm61G2S5ObxoQBANtm5OkYbsNkmCoh5zwhrL 5iEcTl+TunAD9TCw== Date: Fri, 20 Jun 2025 13:00:27 +0200 Subject: [PATCH v2 1/2] tools/build: Fix s390(x) cross-compilation with clang Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250620-tools-cross-s390-v2-1-ecda886e00e5@linutronix.de> References: <20250620-tools-cross-s390-v2-0-ecda886e00e5@linutronix.de> In-Reply-To: <20250620-tools-cross-s390-v2-0-ecda886e00e5@linutronix.de> To: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andrii Nakryiko , Quentin Monnet , Jean-Philippe Brucker , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1750417228; l=1266; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=pr/KqdFA1dyDJYNDSxullixg+y3pLhBOHWegk527QVI=; b=gnkyWFPCPVu1kX2MrdbNYbA+Vdq0A5YZbjdbcU8xImvf1vrLGQluvbgrL+6e2TTdStziqAAy+ 1kmsTFiu4h4AUM6xKQje0j+TDgEaNrZNlZOUSGxTyfnRfZeVJunYfQ/ X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The heuristic to derive a clang target triple from a GCC one does not work for s390. GCC uses "s390-linux" while clang expects "s390x-linux" or "powerz-linux". Add an explicit override. Signed-off-by: Thomas Wei=C3=9Fschuh --- tools/scripts/Makefile.include | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index 5158250988cea8eabb0b2add34bae28c273cb997..ded48263dd5e05e174316eda7b3= 09804923e9711 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -101,7 +101,9 @@ else ifneq ($(CROSS_COMPILE),) # Allow userspace to override CLANG_CROSS_FLAGS to specify their own # sysroots and flags or to avoid the GCC call in pure Clang builds. ifeq ($(CLANG_CROSS_FLAGS),) -CLANG_CROSS_FLAGS :=3D --target=3D$(notdir $(CROSS_COMPILE:%-=3D%)) +CLANG_TARGET :=3D $(notdir $(CROSS_COMPILE:%-=3D%)) +CLANG_TARGET :=3D $(subst s390-linux,s390x-linux,$(CLANG_TARGET)) +CLANG_CROSS_FLAGS :=3D --target=3D$(CLANG_TARGET) GCC_TOOLCHAIN_DIR :=3D $(dir $(shell which $(CROSS_COMPILE)gcc 2>/dev/null= )) ifneq ($(GCC_TOOLCHAIN_DIR),) CLANG_CROSS_FLAGS +=3D --prefix=3D$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COM= PILE)) --=20 2.49.0 From nobody Thu Oct 9 04:18:54 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AAF727FB25 for ; Fri, 20 Jun 2025 11:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750417242; cv=none; b=Hiey0WX4joc2QMLa3I2PriOo6KUkzrMFBtR5VWdxMh1m5pMF4jHCfUa7I3Gt/I7qRBflyJ8qP+mI3P8T6BnYFPPl8ELVwcrUQGHCnYGsXAYlWIeZF+9QWbP4Mn+GbQVgiK8a0JE1I/KVUhkmhx+tIjAzrx2OT3wuON1I8Dc/8Vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750417242; c=relaxed/simple; bh=+mjvB4tuc7hFJsqAvVRwFmvtR5QbD0fyNd4pRSMSUeA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PSQDnuf+yL5oHd4HQp8tJ1y6T2sPEqfDOWPrvIRhwkpLdZscAbupyuVP58sjxwZhwQoiyB2fATqmHaGpFZTKMsAGHA8Ysqgt7zPdcWwuJaBt/cXs6t5AuYpSGs5FBBNLLtzhmSOcfqIUv6NGbqtImr7kZ1WXiWOdMnU3TLbZdI0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XqLg/BW0; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2O9qQdhh; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XqLg/BW0"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2O9qQdhh" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1750417233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bz3FkrvK+6s0da0qU1rVXz5C4VyK6atgA4iybwpXf4s=; b=XqLg/BW0O5hrEUz9i/sGv6BmeUjZsYptmQ2BKqgryYtHbAX627EauLJHn8tyDJ5LSO+hOV Faie7jwIgXCaEiS7btKrUYPc77ITb1Hf1M3LRAHZ++KfgusHYS4bKievS+mmfsuqzSm2Ak LzlbE/UNCdbAi1CTXSY8D5RBdIYYhfpln3MR6W1NXXNTuSfTy9W9JUV0K3YB4Vjicc4ZPh KLM6aPJglfPOvVVLBwNfGGWTRw/bxabYIPGWXCX/JDjPwShyLyB3aKK93YXOUlUseoUnFP XmgjPYc1WAf0XKztfUino3e2QaMmIOIMMRhpaKwJXb3H1l6OoNOYpNT5AmQ+aw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1750417233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bz3FkrvK+6s0da0qU1rVXz5C4VyK6atgA4iybwpXf4s=; b=2O9qQdhhl11UeE/uU/ySWEBjuho1RLBPW7o/ipAJf9I86wsQjyC45QDazrx3cAwggEuflQ Z+uvrsGzyfDdxeAg== Date: Fri, 20 Jun 2025 13:00:28 +0200 Subject: [PATCH v2 2/2] tools/nolibc: drop s390 clang target override Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250620-tools-cross-s390-v2-2-ecda886e00e5@linutronix.de> References: <20250620-tools-cross-s390-v2-0-ecda886e00e5@linutronix.de> In-Reply-To: <20250620-tools-cross-s390-v2-0-ecda886e00e5@linutronix.de> To: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andrii Nakryiko , Quentin Monnet , Jean-Philippe Brucker , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1750417228; l=1055; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=+mjvB4tuc7hFJsqAvVRwFmvtR5QbD0fyNd4pRSMSUeA=; b=Vd2p2UAWHewbV5HcpypVqfWovFjjww3OU96B13cFfgbdHNirzp63ZYFgUZOMtXksUOsLWHutg q9FL17jy0AFD2A1dIv+PMCZqZYj5qCVsAizFHdsBHEqnUpAKBw9g2bq X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= tools/scripts/Makefile.include now has the same override, removing the need for the one in the nolibc Makefile. Drop the superfluous custom override. Signed-off-by: Thomas Wei=C3=9Fschuh --- tools/include/nolibc/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/include/nolibc/Makefile b/tools/include/nolibc/Makefile index c335ce0bd195c1ec63b9b23c0143307acfd3d3c8..3b3ff0505a5f5fea493d6a77faf= 44759925ff2b0 100644 --- a/tools/include/nolibc/Makefile +++ b/tools/include/nolibc/Makefile @@ -114,9 +114,6 @@ headers_standalone: headers $(Q)$(MAKE) -C $(srctree) headers $(Q)$(MAKE) -C $(srctree) headers_install INSTALL_HDR_PATH=3D$(OUTPUT)sys= root =20 -# GCC uses "s390", clang "systemz" -CLANG_CROSS_FLAGS :=3D $(subst --target=3Ds390-linux,--target=3Dsystemz-li= nux,$(CLANG_CROSS_FLAGS)) - headers_check: headers_standalone for header in $(filter-out crt.h std.h,$(all_files)); do \ $(CC) $(CLANG_CROSS_FLAGS) -Wall -Werror -nostdinc -fsyntax-only -x c /d= ev/null \ --=20 2.49.0