Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp915780pxu; Thu, 3 Dec 2020 16:21:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyePDEMVFSuTDyeRB6S5fDPQUREPUpucpqD/jk0xQ3TcK2RxQpVcc8NWzblek3iJ/tBD2dA X-Received: by 2002:a17:906:3daa:: with SMTP id y10mr4728069ejh.23.1607041272185; Thu, 03 Dec 2020 16:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607041272; cv=none; d=google.com; s=arc-20160816; b=idbYAk6zhV6bTQosxcboCsAiA5riiLDYEn7gNGRZ1pVblP8OIoFs9bdcIPir/hgW1G AG3tYz5EYsiSma8rH9dqoGEzLLkLU8HSiaoBOyKhGClnZTRWP5VdUyAq3IlJz3jUJqqg doI34eUd/saV5Z6o0fKW92YOxl5InAikniQ7y4sgRxGJN5EPKF14cJBjunPWvqK2f1ev FMRzwbziTOp5tgvII+uefcyaSW3qHdj2fb8HEospKUFitqMWriQXNGjy10st895mjoZ0 qwLg7Z3B5EbGBwSMXEZKx4kNf1j9Xs3sZ8s9GEfQTGfu9uVnJbNKbWTNGXDl0L+FS/u7 UG+A== 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; bh=ZaTj52peLvRicw4PoF/BKEFQ/jidWJ8M3lLP62y2KXw=; b=dDl3XiysUgvLWPRtM6ziHH5BpQDrjTj67CJpNdnwpd6hdSN91r3OkZDxw3IuUL5uXu rnduUmQt8aQxDR33teyyEKr7AVz1rf+a+YIyWVms9Msv+dI4ao5cC8GsFPKzbEOBdjbG yZF52BL5PfPXKHBnEv9PARy5GqCh7yZ6N7v6ERUzfH8fLfTRJRVx763czC33ydZ+nydV Q21n0ZkX4d7AXUPfHMMHJcvPOFbuCaZYMYDo+LCwyiv+uitVt+MA7lqPwai5mD9DwAmQ I9zcMCMw9uczzEyt/xs9Ia6HRIKSKJxsEmtqrxul0paQc2GZzugijlcsearOx+BfHaG2 Duew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=f6utJprc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si365340ejm.152.2020.12.03.16.20.49; Thu, 03 Dec 2020 16:21:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=f6utJprc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730211AbgLDASf (ORCPT + 99 others); Thu, 3 Dec 2020 19:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgLDASe (ORCPT ); Thu, 3 Dec 2020 19:18:34 -0500 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D20C061A51 for ; Thu, 3 Dec 2020 16:17:48 -0800 (PST) Received: by mail-pj1-x1041.google.com with SMTP id p21so2874717pjv.0 for ; Thu, 03 Dec 2020 16:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZaTj52peLvRicw4PoF/BKEFQ/jidWJ8M3lLP62y2KXw=; b=f6utJprcA2gyLCW6KhyBkBOzHNpkQeBC/6cuqkAXEhCJ6UgQtF7AxaxQ05zH+PtOVE ngRNtGmJjMrRCyxuel2vp8wlwExduHHpqG1twOhkKReqNPqwkGQzWMa9+mJvoWG5HcmU jbOXjnaGcT/4wiLyjdwdWJgjzmChyf2hSNKNMRA0G6iYjS3K3/G7IayMTdGdH0Uo72k9 UQyfZh2XIMwww4V7SZD487qSLA4wyr2Tug7LXA74/IOpJ+83Ji9ITG1XBcN0yFaI8pxB SgQFNyQB4I8CbkiYzEmqrlOY+Yh7mtMKPR0ZCZ2ZfOrRy4ilSW8kAIb/VN3BMTRjJkKB NblQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZaTj52peLvRicw4PoF/BKEFQ/jidWJ8M3lLP62y2KXw=; b=J8CjxdF0si2la0h2uoEvuCVduywDWNnt8Uz1gTTvZ5s62FezRPToaFhj7IFkjW9dPp 5q9jaoC3yI0kSpqBrdMpZSrFyuLGPbkcfawgmIaTUOyc2WBePwGcXsN/MjeB1go/aV4b 9mGB/YNJqeRKVUnuyKeGmDcgspblPki9OtcnaYDv+bvlaRQPQ3WnLVQhm2nB5qd6A7ac 5h5oPFjtNWzFhVDrAAozPBvd2oTsVtVfVLDNh7MMzYdGJlV97Y7c2e6DlvvcBPvEY84P Qiex1H7xWITBp3yiO4apxbZ7XLq49DxSUj3uz9XMukGp7fmRj5bgARfgwiEUSF5m/x/R jDlA== X-Gm-Message-State: AOAM532AmJhECyBi4eXIC9i3HMyLBGBnJSWhwvvv67FI9uow18FLAsBR /tUJTwndAwd6oncqqmkU/KN46pVAF7UQ0M/cn7SCtw== X-Received: by 2002:a17:902:e901:b029:d8:e727:2595 with SMTP id k1-20020a170902e901b02900d8e7272595mr1464109pld.56.1607041068143; Thu, 03 Dec 2020 16:17:48 -0800 (PST) MIME-Version: 1.0 References: <20201022012106.1875129-1-ndesaulniers@google.com> <20201104000016.GA2399651@rani.riverdale.lan> <20201104001703.GA2407187@rani.riverdale.lan> In-Reply-To: From: Nick Desaulniers Date: Thu, 3 Dec 2020 16:17:36 -0800 Message-ID: Subject: Re: [PATCH] Kbuild: implement support for DWARF5 To: Arvind Sankar Cc: Masahiro Yamada , Linux Kbuild mailing list , LKML , clang-built-linux , linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 2:56 PM Nick Desaulniers wrote: > > On Tue, Nov 3, 2020 at 4:17 PM Arvind Sankar wrote: > > > > On Tue, Nov 03, 2020 at 04:05:36PM -0800, Nick Desaulniers wrote: > > > On Tue, Nov 3, 2020 at 4:00 PM Arvind Sankar wrote: > > > > > > > > On Wed, Oct 21, 2020 at 06:21:06PM -0700, Nick Desaulniers wrote: > > > > > Further -gdwarf-X where X is an unsupported value doesn't > > > > > produce an error in $(CC). > > > > > > > > Do you have more details here? On godbolt.org, gcc does report an error > > > > for unsupported dwarf versions. > > > > > > > > https://godbolt.org/z/G35798 > > > > > > > > gcc does not seem to pass the -gdwarf-* options to the assembler when > > > > compiling C source. For assembler, gcc will pass an appropriate option > > > > depending on the version of binutils it was configured with: if the > > > > assembler doesn't support dwarf-5 it can call it with --gdwarf2 for eg. > > > > > > > > If the user is using a properly configured toolchain it doesn't look > > > > like it should be an issue to just use cc-option? > > > > > > I wrote the base patch back in May, and didn't revisit until recently. > > > I could have sworn the cc-option silently failed for the check > > > cc-option does, which is /dev/null input. I need to recheck that, but > > > it doesn't hurt to simply include it for now, which I've done in a v2 > > > I'm about to send. > > > -- > > > Thanks, > > > ~Nick Desaulniers > > > > This is giving me deja vu about the -gz=zlib option. > > > > Didn't Masahiro fix the cc-option issue with > > 4d0831e8a029 ("kconfig: unify cc-option and as-option") > > > > The existing -Wa,-gdwarf-2 in the Makefile seems bogus, btw. GCC 4.9.0 > > at least appears to pass on --gdwarf2 automatically. > > It looks like we don't need -Wa,-gdwarf-2 when -gdwarf-2 is set. So I > can probably drop > +DEBUG_CFLAGS += $(dwarf-aflag) > from v2. Will retest though. That's needed for non LLVM_IAS=1 builds so that clang informs GAS to assembler using DWARF Version 5; otherwise every translation unit fails to assemble with an error from GAS. -- Thanks, ~Nick Desaulniers