Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3068355pxp; Tue, 8 Mar 2022 07:11:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzIq2oTvI882wiGOD5PFt1NBpqhSIWckiicknYxoFGzCPepz7Xg+BaOeDM3exRyAIufqjL X-Received: by 2002:a17:907:7f94:b0:6da:64ec:fabc with SMTP id qk20-20020a1709077f9400b006da64ecfabcmr13981173ejc.717.1646752304004; Tue, 08 Mar 2022 07:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646752303; cv=none; d=google.com; s=arc-20160816; b=P6vWgJ5Dwp1wI4Z2QltS7Oea7NXGI1GtkPXPwSpSPTB5+sgqlVQPSESULSOwO0xkq3 /xxYFuoP/dOIKscllwGt+Z+pAnWHUcJV9T3IvQficDg3vSAaLrhGsgNn0nX/7B04zxY1 6u1nIdojAKaE5aN1EUlvT3mwm9XVasoH3GeM2Pxt7HVJxFdQ9ebXCEUrGwiBdkBnv4gD yVG41aADlLkG4rRGVKjGsCF/mmC53kK1duAZsT3hG/YSxPW/obawJkNvxj9llYKB9A0w C1Han4mzpoP0/1S7+7hz2qT95d+PpUflnctujk2aN6T85zbMus+mX7kM6WhjK6hZaAXv xrMw== 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:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=5YDlD2A0oaMnEk1O2RAt7W4Fa7ktAP8bP6EdmwI+QIM=; b=XvlOBpfif/27l2ApbRWNW/wGVan0y4bM8Vw4jgEr4hvwQ9f/8Pbsl6fArYxFIZkx20 lQxvA8od2Wwl7S4XnJDcdaESGhfsMBx9S8PcVoL5/kCFkGirKgJAjdz2c3zPkEvcPpsw IC6B8mT8yyS8T9pGTj+Pn5KJHH8Q+JAKsxCTio2r+/dxIDzXnGrT6Fm84YZ+N9j7vpph 1ug7bY8R6qc/UEWG1/kbTmZoo3ZisEU44GLegSaS3wrUYCdoiJ2+nmMk3p1/rVi5OGvR ibAzIJpHO6FD6xhpHuEzESxO2mnU7N5jFhiIGGRhp5rYVrxzXQlMA+aaXJ6fipxw8TDU 9kpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Djvv9wfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp15-20020a1709071b0f00b006daa2025af9si11711815ejc.436.2022.03.08.07.11.19; Tue, 08 Mar 2022 07:11:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Djvv9wfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347630AbiCHOwu (ORCPT + 99 others); Tue, 8 Mar 2022 09:52:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234154AbiCHOwt (ORCPT ); Tue, 8 Mar 2022 09:52:49 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EB93981B; Tue, 8 Mar 2022 06:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646751102; bh=5YDlD2A0oaMnEk1O2RAt7W4Fa7ktAP8bP6EdmwI+QIM=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=Djvv9wfEEKhFJqRJ5+C6rXGLP4vriNusK0fQU+W7akYRot/ktZMAxz7Qv8mFfZtpg YhJjLCWU8gHyCQoyhdhZ9ckFxJtuOWQ4wk0t9xuue6uOX3GNk09HTaIJ5guX8pGY9H w7FJmvobDkOaRRKCcUWrIDmMY0LhQU7L/dzfyWKs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.180.167]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3siA-1o9d9S3Eqe-00zrqY; Tue, 08 Mar 2022 15:51:42 +0100 Message-ID: <2e1f3e41-7097-e68d-d312-9319ad62565c@gmx.de> Date: Tue, 8 Mar 2022 15:51:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: hppa vDSO and compiler (non-)support Content-Language: en-US To: Jiri Slaby , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Linux kernel mailing list References: From: Helge Deller In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:cSwUj8PD/hf88WFnajfY6gEX4lSFSPz8RlVRQq81FeKpYFmH9mR /+UGyxZaJbHeJcTFwMvqmTbo9MIR76GS7TKjEWIN2+OooiFsbqhCl+DHBihvo2cerF5xmup 1ikhkHf36otwRhc5ItEz82tXtnIFoqLkfAXc4k37nY8T0BetMEkaIB8edaFgCR14aoHrrgn 9Q7YALUJOvUUFF8eO+OuA== X-UI-Out-Filterresults: notjunk:1;V03:K0:NY1GdIxjQrQ=:r7wKNvSsWSG2HIiieR7yJh 84y63mdj99HKHItNDVV16Ii9T8oTGUTHp268bgk1BIjFwvDblix34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_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 hpp= a-suse-linux-* binaries. It's easy to overcome by "CROSS32_COMPILE=3Dhppa-= suse-linux-" How is it handled for other platforms like s390x? Would it make sense to add the detection for SUSE too? > 2) openSUSE doesn't provide any libc for hppa. So gcc doesn't provide li= bgcc.a and the build of vDSO fails. libgcc.a comes with the compiler, I don't think you need libc for that. I'm currently installing opensuse to try myself though... > So could vDSO be optional on hppa via KConfig? The vDSO is one of the first things which is built during kernel build pro= cess. This is why you fail. Making it optional doesn't make sense, because then the kernel wouldn't be= able to start the user space processes. > I used to use the cross compiler to at least compile-check the following= =C2=A0tty drivers: > arch/parisc/kernel/pdc_cons.o > drivers/tty/serial/mux.o > drivers/tty/serial/8250/8250_gsc.o I assume you never built a full kernel, but stopped when building those mo= dules? Without libgcc.a the kernel itself wouldn't have linked before either. Helge