Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2273607pxp; Mon, 21 Mar 2022 15:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygmLSUzIkRQ5nAaGiv3EBBlbGJOMKpl7LSml4H7SrFCJ1RpLnd0iYQ9uKcF1M+KxeuEdpa X-Received: by 2002:a05:6a00:10d0:b0:4f7:5af4:47b6 with SMTP id d16-20020a056a0010d000b004f75af447b6mr25897984pfu.6.1647902054893; Mon, 21 Mar 2022 15:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647902054; cv=none; d=google.com; s=arc-20160816; b=qRY+1xkNe5flKBhIcIGx0lHGchIld5mHNzZxNT/UbTAIrQDJ7Plz6qjMJtr+WwhhXt cPe/4HvKqD5OoKxapRIhlkOsErhcBj/sVyj1o5AcbWlV5yk6VP58Doc9VxPnTTVGocuV klO0dsDTsraMiSq02szL8ji7NvaqxMViw93ampAJfq821V+dVqPtb0W/UID5zrWgKdZq DXcU5O2x17ENwGivtozdffwBxHlT9XdoEB6CZrlVmP0KaaIECu9/FHkfA8DNN0QpKUkC 8jN8e36aLDClLmP0NzQJj4MX1w2b/nB6joKbzRnwu8WxysdQK6e5E/EDbaTFUVkg/L9d iTOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5Fka5zGj3Ub7G06t12JaEVJh5pP70eguU3lbL1R/KlY=; b=Uh/yniz6TWLya+Eej2L2ReU6Ggp9K7yu31ZB6gpYQWO6fzCkcdpBtCsEzHYuzS2UYq SSgcr2MdPUQIqD1IC10GyxyeHtQUZqjE4AP5MKM7gvJqjjfd3UTfq7AtJxGh+8P0VLV+ 2tPQ8DIyN8O3+EBruzcZjjZ2+s/rGyTx5oEbBRb8a2HbIi43KqOAsmdrBgyUH6K+tz8W OYYcr5pEvEIj/8zYCGwJIxeyWjHTIBpZj8Vamyx2qqdC98r9ABJgpSIZSxVwEFwQpy+w rUM32EgSsVQRcflMxEAhRCIYLqJNyN7xYDQcmZH72JeYmr27Tstf3Gv2Hcvy5UIAYa9/ 3ETw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Sae8Zt2y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z16-20020a170902ccd000b00153b2d1650bsi13463491ple.275.2022.03.21.15.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Sae8Zt2y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B5B23D3EB6; Mon, 21 Mar 2022 14:47:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352321AbiCUSxK (ORCPT + 99 others); Mon, 21 Mar 2022 14:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239977AbiCUSxJ (ORCPT ); Mon, 21 Mar 2022 14:53:09 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1224A27E8; Mon, 21 Mar 2022 11:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647888695; bh=5JyzedBmD+44aohVscSNbOQGpmKvS2TbVaPWaZX6bLU=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=Sae8Zt2yMwr+Jhx7rQCNef453VtRhAxpUicR494vSecpWFKqkSh94Xlf4L5cwHiqT yhSP6ED1YfY8EpPttEvbIFwUvNQTHbQZIi9squ3F6BgCVYV65SkNtfL8qx7T7lUzIG bTc0hQImO+8WTnZrC5gaOoEMduFNgeh3AiNBsoss= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ls3530 ([92.116.171.242]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M3DO3-1nVXeE0GaL-003i88; Mon, 21 Mar 2022 19:51:35 +0100 Date: Mon, 21 Mar 2022 19:51:33 +0100 From: Helge Deller To: Jiri Slaby Cc: Helge Deller , linux-parisc@vger.kernel.org, Linux kernel mailing list , Martin =?iso-8859-15?Q?Li=A8ka?= , Andreas Schwab Subject: Re: hppa vDSO and compiler (non-)support Message-ID: References: <2e1f3e41-7097-e68d-d312-9319ad62565c@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:5XcSiZ3xe6YNxAdoIM2jmgWCByD/B+xrNfeZGBuvdRTR6d/EM5i rNblh7LlBW33FHP3C+NqN3McJiQ9Fc9QxvQrHfGik5gK6JD1T/ZA7gcdSNu7Tb3NlMdg32n 699yJ1tDonxQTHlUcxAlkMPEb+XlQhTCK1IvthBNkBfHh2q+reY0obdyLo5eKeEbPuD+9Ac zvsbl3pp41w+PElnpDlag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G+MLasLVA sLl9uGf7UhOPRCsgeJncVe3SxmChovLktlLu45K72XymbAya1oMqaua4uj1jvFHG6BjR4S4s1 Ukbkv1+HT8J/1U= Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jiri, * Jiri Slaby : > On 09. 03. 22, 6:48, Jiri Slaby wrote: > > On 08. 03. 22, 15:51, Helge Deller wrote: > > > On 3/8/22 12:06, Jiri Slaby wrote: > > > > since the "parisc: Add vDSO support" commit, I can no longer > > > > cross-build a hppa kernel. I see two issues: > > > > > > > > 1) CROSS32_COMPILE detection doesn't work here, as openSUSE > > > > provides hppa-suse-linux-* binaries. It's easy to overcome by > > > > "CROSS32_COMPILE=3Dhppa-suse-linux-" > > > > > ... > > > Would it make sense to add the detection for SUSE too? > > So, could 1) be fixed on the Kconfig side? Or should I (people running S= USE) > use "CROSS32_COMPILE=3Dhppa-suse-linux-"? Could you please try if this patch fixes it for you? diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 2a9387a93592..7583fc39ab2d 100644 =2D-- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -42,7 +42,7 @@ export LD_BFD # Set default 32 bits cross compilers for vdso CC_ARCHES_32 =3D hppa hppa2.0 hppa1.1 -CC_SUFFIXES =3D linux linux-gnu unknown-linux-gnu +CC_SUFFIXES =3D linux linux-gnu unknown-linux-gnu suse-linux CROSS32_COMPILE :=3D $(call cc-cross-prefix, \ $(foreach a,$(CC_ARCHES_32), \ $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) @@ -52,7 +52,7 @@ export CROSS32CC # Set default cross compiler for kernel build ifdef cross_compiling ifeq ($(CROSS_COMPILE),) - CC_SUFFIXES =3D linux linux-gnu unknown-linux-gnu + CC_SUFFIXES =3D linux linux-gnu unknown-linux-gnu suse-linux CROSS_COMPILE :=3D $(call cc-cross-prefix, \ $(foreach a,$(CC_ARCHES), \ $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) > > > > > 2) openSUSE doesn't provide any libc for hppa. So gcc doesn't > > > > provide libgcc.a and the build of vDSO fails. > > > > > > libgcc.a comes with the compiler, I don't think you need libc for th= at. > > > > I was told glibc is needed to build libgcc.a. > > 2) was fixed on the compiler (SUSE) side. cross-hppa-gcc12-bootstrap was > introduced -- note it's known to be a misnomer -- it should have been li= ke > s/-bootstrap/-baremetal/. Great! Helge