Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1946673rwb; Sun, 2 Oct 2022 11:10:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JIhX3xE5tf+H8q/T+UWU2msuaLbHtTT6FNdB0UR0DAz1NrYYWua9DUPaG1iF5J0PpUFap X-Received: by 2002:a17:907:75dc:b0:783:9c71:5e20 with SMTP id jl28-20020a17090775dc00b007839c715e20mr13074945ejc.125.1664734220535; Sun, 02 Oct 2022 11:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664734220; cv=none; d=google.com; s=arc-20160816; b=bvyBrwAMD/PmK36i/58Au5vMfJBANeS+iOpZ+Q90+L1efIyrO10Pzr8Gb+rMNZdrmL /uBjnN29VQcrk+T+dbzEr8TyqVC4vgY4CCHFxb5gbGkEjU11680VXoVSjKM3Z3qma5f1 s+b/NM+f4My27qjkwWHzOMthOJio6XZvwVGlvgAqqbUzoV7+GLPDuz4CDAl/2r8PsMHS umzU/ndK7XDreJECfzyJ0+v9CUIpSM47J0e1plTPU1TlA2TATr77ZsR+Q2MOTpQ0uKgJ rXO/XyhBkW2OPNPGBQSDuLoIdGm14d9cUW1kSzVo5PSevMt9SEEYCahQR5o1i6IQ2a+U BQlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=R7PtaZgk8+x+PYWDXdf99v3/AVCGe2a94wV004hUH6k=; b=aUu++6XXdUHXw/yGJ+hQkGAzfQ1bkw3mt9eJXDiPKyhIQ+Q8lTSdLMcVprY8zaGlhZ yiNh4ipCPqeql7o64/NrDB7Zff2osttOZ/B2As1FF5yBG0H/OTZCllto4T1q+kUO5Y4F rWIV2p61dCAT0ymabPxAUJ73EiAmJmlK3e56VsWWyBk/PPvzxiIZSdFmq/WW+Z2P3s4A w53EC1C0ktevS/mXc9Cj8SGozgdvcB+NCf53qii6FszfdTe4mR+LbXbTsP38PDoFI+/R 82zjPHkK4gJb6YXRX0yMFIEaSxvH8+sLL9JpKaYiFLtBibIcly/NUpm7lu6olO/EiOlb IEYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xO0A9g6R; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ef11-20020a05640228cb00b00458ea275c22si1635671edb.325.2022.10.02.11.09.53; Sun, 02 Oct 2022 11:10:20 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=xO0A9g6R; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiJBSAj (ORCPT + 99 others); Sun, 2 Oct 2022 14:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbiJBSAc (ORCPT ); Sun, 2 Oct 2022 14:00:32 -0400 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 699A132071; Sun, 2 Oct 2022 11:00:17 -0700 (PDT) Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 292Hxoj4010402; Mon, 3 Oct 2022 02:59:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 292Hxoj4010402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1664733591; bh=R7PtaZgk8+x+PYWDXdf99v3/AVCGe2a94wV004hUH6k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=xO0A9g6RUJDnwA9CSB2weCoEo3scGkQp28Ccfl360YU0NCEKRWy8ePTKXF+LpHcCR Qj+uhXnzOk6WVPdOivwCgrAz7CzjtAT2/dm4OAICaja5guzw8Ros+o2qneakR8IlcE eOSnFVXdQxApRAhSyA02do3kR+7Zdc9roadR+3ITb5vb0BgjeSJGf+iL34U8xQ6NH1 4M1Vwgd6UeNDob+6avKBE8LCKNKyladdUYnQOT6hdEiL039kktvXWBi2VsTzY6bDYN U8k9p7ishUwJp9e7S4E8ujIUIHoxuF2je2jy5/laGeRgdNtZSoIt28LQeskpSxA1ai 7iIt7ux3HRO6w== X-Nifty-SrcIP: [209.85.167.176] Received: by mail-oi1-f176.google.com with SMTP id s125so9576011oie.4; Sun, 02 Oct 2022 10:59:51 -0700 (PDT) X-Gm-Message-State: ACrzQf1mfYcwzKRWFGlCtFYB5ep39oaeXwuH/lYKsZJU+K4FOBV6jG5W ksyTzVrwhdeuODbzCtx2VVdlktxK0S3rRUIFh2k= X-Received: by 2002:a54:400c:0:b0:34f:9913:262 with SMTP id x12-20020a54400c000000b0034f99130262mr2676040oie.287.1664733590046; Sun, 02 Oct 2022 10:59:50 -0700 (PDT) MIME-Version: 1.0 References: <20220928182523.3105953-1-nathan@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Mon, 3 Oct 2022 02:59:13 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to DWARF5 To: Nick Desaulniers Cc: Nathan Chancellor , Andrew Morton , Tom Rix , Palmer Dabbelt , linux-kbuild@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, llvm@lists.linux.dev, Conor Dooley Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL 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 Thu, Sep 29, 2022 at 6:53 AM Nick Desaulniers wrote: > > On Wed, Sep 28, 2022 at 2:36 PM Nathan Chancellor wrote: > > > > On Wed, Sep 28, 2022 at 02:13:47PM -0700, Nick Desaulniers wrote: > > > Reraising my concern from > > > https://github.com/ClangBuiltLinux/linux/issues/1719#issuecomment-1258678969 > > > > Sorry, I thought I addressed your concern with my comment right below it > > but I probably should have worded it better. > > No, I just missed your point about other architectures. > > > > We've put a fair amount of work into getting CC=clang LLVM_IAS=0 to > > > work for DWARF v5 (both on the GNU binutils side, and Kbuild), I'd > > > hate to see that effectively knee-capped because of an issue in GNU > > > binutils that is only relevant for one architecture. > > > > Sure, that is a completely reasonable concern. However... > > > > > I'd concede support for ARCH=riscv, but not for all other > > > architectures, which this effectively does. > > > > No, it does not, CONFIG_AS_HAS_NON_CONST_LEB128 can still be enabled > > when GNU as supports this construct for a particular architecture; as > > far as I can tell, RISC-V is the only one that doesn't. See the tests > > with ARCH=arm64 and ARCH=x86_64 compared with ARCH=riscv below. > > Ah, sorry for the noise then. Thanks for the patch. > Reviewed-by: Nick Desaulniers > > -- > Thanks, > ~Nick Desaulniers This patch is incomplete. It looks like Clang 14 switched to DWARF v5 by default. I see the same errors for CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y masahiro@zoe:~/ref/linux$ clang --version | head -n1 Ubuntu clang version 14.0.0-1ubuntu1 masahiro@zoe:~/ref/linux$ grep DEBUG_INFO_DWARF .config CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y # CONFIG_DEBUG_INFO_DWARF4 is not set # CONFIG_DEBUG_INFO_DWARF5 is not set masahiro@zoe:~/ref/linux$ make ARCH=riscv LLVM=1 LLVM_IAS=0 CROSS_COMPILE=riscv64-linux-gnu- -j24 CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CC arch/riscv/kernel/vdso/vgettimeofday.o /tmp/vgettimeofday-5997b4.s: Assembler messages: /tmp/vgettimeofday-5997b4.s:2698: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2699: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2705: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2706: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2712: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2713: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2719: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2720: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2726: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2727: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2731: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2732: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2736: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2737: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2743: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2744: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2748: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2749: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2755: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2756: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2760: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2761: Error: non-constant .uleb128 is not supported /tmp/vgettimeofday-5997b4.s:2765: Error: non-constant .uleb128 is not supported ... -- Best Regards Masahiro Yamada