Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2300603pxp; Mon, 21 Mar 2022 16:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMw7eMNLBOwUGevmTKOtxN+cJajDrT6VNy6CBCXlLEBUBWARzBU2gYewe1kDq2t298nEuy X-Received: by 2002:a17:902:76c3:b0:153:50d0:2edb with SMTP id j3-20020a17090276c300b0015350d02edbmr14712407plt.128.1647904665033; Mon, 21 Mar 2022 16:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647904665; cv=none; d=google.com; s=arc-20160816; b=E57okADq73Oc1CcjIe4WhmTIX+PecBwAUJ367Zw6NXy22kSapslPeKxn1tDw27ksG6 Q2q/YymuSSNmUVrmNO43v5mwW5PTDYRw/vp2092KDl2oYR2d7ndNpuYdPJmXyyg0YxVq 5Qv4wjFk4makZtSud2vwhrCrV8y455c4rotIgZFT2gHQ169Vl0BQzNK1fo55XKkfq7Iq NmlDAFtssoiaHMbuz1HmwgCt/ykUGwoYGyAHLY/gCqEZKJA0sfhHNCSOmwnzpZ+0hsZ8 Mh0bQfuvmYX1E+eMcPZ9v8+HTiA9NJ/QffYvgsb+rnHGbaJAxXvSY+DgFx1xmw2blsoP kKFA== 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:references :to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=ENOqnP/WW6UM3qaFy0lGbYegzr0M5eqkdbS/cdjw0fo=; b=QzKJaXNiLgM71GuxUMxDMMR30ufbskBSPTuIN/tAmzKIiAuARgFHt0nvKQZo13O7ET eUoEuoD3jm+qmemN+x8KAv+i/7Wt81cAXvkdYH762Xo3f02RH+8nLuCExIm4EjWIjC8b yNE33zHD0xctmEcsrSdLvZTUjXVgxWvRpf2s4zzRsW0EtimM9Af4DhngIpfgbUDF0Itq E/kO5iLXoObGSVnR213qkBmTv3gFMhdfD6F6h7Xtjbx1iXnP7/iPW1u1rAEtiWN2nNF+ f3aBIIeuCuJMKMqJRQGB1CaQD/rAN9NtL/5TtmosdZVtHd7lHeEXiMtuf0w+DJiRkTh2 uhqA== ARC-Authentication-Results: i=1; mx.google.com; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k132-20020a62848a000000b004fa3a8dff9bsi2561485pfd.82.2022.03.21.16.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:17:45 -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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8EA65450E16; Mon, 21 Mar 2022 15:15:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344864AbiCUH2P (ORCPT + 99 others); Mon, 21 Mar 2022 03:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244518AbiCUH2O (ORCPT ); Mon, 21 Mar 2022 03:28:14 -0400 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E96DC2BD3; Mon, 21 Mar 2022 00:26:49 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id d7so19384385wrb.7; Mon, 21 Mar 2022 00:26:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=ENOqnP/WW6UM3qaFy0lGbYegzr0M5eqkdbS/cdjw0fo=; b=vIKwUXnWGf6j81kTfjIAWfNyPzwUSBKqoZMSpGmRsRYdnTMKpBqGA25yErtYCzTfha n0jbV/8a7CuzKc/jJaBBP23IZNYs/hboqdUzEOYmnqcgQ4rFkTZK7EvUHMlaSKAEvR01 /OJfA36mOH/iWUHXMRWM8TadK3zK+J4TXmpohU3saAPSeTLoIkRHaUO7V0v8Xrrg0OL5 mv+7Vra2cPrV2jrGikXIVUTGAdGuLIkggB/hMJXb0/e+wvPMpHTFXRXMZ1+sUXE9Axz1 9leBaW0DhnUpnBsWNqDubt5zAicRr6O/KX74JUOCpYYwS938tYmsojzQqNnvHYxhiJBR WusQ== X-Gm-Message-State: AOAM532SVgRaO3ffjjs/IrDvZGjewu4aVUbbyTp10UJDoBkFacOxH/VM risHUnQF+oxsoFi84+Uq9v5fgQQLt3E= X-Received: by 2002:a5d:6c69:0:b0:203:78af:48b2 with SMTP id r9-20020a5d6c69000000b0020378af48b2mr16800440wrz.123.1647847608398; Mon, 21 Mar 2022 00:26:48 -0700 (PDT) Received: from [192.168.1.49] (185-219-167-24-static.vivo.cz. [185.219.167.24]) by smtp.gmail.com with ESMTPSA id j16-20020a05600c191000b0038ca3500494sm5330249wmq.27.2022.03.21.00.26.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Mar 2022 00:26:47 -0700 (PDT) Message-ID: Date: Mon, 21 Mar 2022 08:26:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: hppa vDSO and compiler (non-)support Content-Language: en-US From: Jiri Slaby To: Helge Deller , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Linux kernel mailing list , =?UTF-8?Q?Martin_Li=c5=a1ka?= , Andreas Schwab References: <2e1f3e41-7097-e68d-d312-9319ad62565c@gmx.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A,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 On 09. 03. 22, 6:48, Jiri Slaby wrote: > Hi, > > On 08. 03. 22, 15:51, Helge Deller wrote: >> Hi Jiri, >> >> Thanks for testing on parisc! >> >> 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=hppa-suse-linux-" >> >> How is it handled for other platforms like s390x? > > s390 simply uses CC for vdso32: > cmd_vdso32cc = $(CC) $(c_flags) -c -o $@ $< > >> Would it make sense to add the detection for SUSE too? > > Maybe. So, could 1) be fixed on the Kconfig side? Or should I (people running SUSE) use "CROSS32_COMPILE=hppa-suse-linux-"? >>> 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 that. > > 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 like s/-bootstrap/-baremetal/. thanks, -- js suse labs