Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2099690pxb; Fri, 29 Jan 2021 13:12:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwACTdIkO6BiDrWDRDJ4H9ss1Esxz2Ys6xniwJHxYIIknqQ0Ozf8fVkOBwQbbv1lwHjAadk X-Received: by 2002:aa7:ce05:: with SMTP id d5mr7375825edv.63.1611954759397; Fri, 29 Jan 2021 13:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611954759; cv=none; d=google.com; s=arc-20160816; b=wTDsEiiCIOGY6516PViJhEQUOk8XHWdhbg371jR2njfFqQ+GbNPeunLc+LS03o0Z4y FM6SH6r4WlSfLY0oh91TkvbCBWSLYXmbGgQPeX6rWgWVRPAJEe3vS5l7jhqQXzvcsttL jv7vI4OAcc/I/jCoqcj9YtEBf+/NFF17305wYGSPEgNiDxPGLuLtNSQvvwVZUjbgj02W 7mQSjMKFJBnMVrW3dhd3BIm11aOXoyRAB0fvgxKXEv2iA0qeCIcEVjIhzCjiT2ySxiFQ R5JHnwZT1dMI/K6rsWM0TDAR69S0vm0WHD5Bpewconpni4Iw6M5TTQTYqsJXPS+t8Uqh GY1Q== 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=RYeBCM1n6l4ocBSebSg/m7g9I7gGkp0ycMnAlPc92B8=; b=etkIv+fO0Yfjp+g/5/0f1Ug8E8R3PTZO/QbqvRJ1WCwxyhNPd+lO/OwpXw2JFK1D0Z aURVtR/npMwk9lm6cZb/HW2ZDXwrgslUXzgH+8YzcC5IIk6ytHBnqECw/vdXQ8Oa5fR7 pQDcyz4dYSL3H108tRMVR0A1wXg8XVtZFB8BczJFT5KFcEXX+NfdJLEUYsF3TNce2/Ec YDe0eu1L4EgLhMrwoDLuCEQTfqCstiRdflwBL7XBPrdiPHNnBszKds5wm9xsVi6nu1Lr cEU0+x2uheXBVY0kxnf9hNaR/Ni4zm5vdDms93EMJusR7VBDeKf5t2Y/P1xT86kWccnE 8v2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=S3tklrxm; 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 ch15si5717573edb.370.2021.01.29.13.12.14; Fri, 29 Jan 2021 13:12:39 -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=S3tklrxm; 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 S233380AbhA2VKY (ORCPT + 99 others); Fri, 29 Jan 2021 16:10:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233372AbhA2VKT (ORCPT ); Fri, 29 Jan 2021 16:10:19 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC840C061573 for ; Fri, 29 Jan 2021 13:09:38 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id j12so6992057pfj.12 for ; Fri, 29 Jan 2021 13:09:38 -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=RYeBCM1n6l4ocBSebSg/m7g9I7gGkp0ycMnAlPc92B8=; b=S3tklrxmGuXpMHcYLnRVK+jeO5qFc0et2gxfHJPQ0maQI1TeXudon4C5RUBooPCbtB goYiM4KLrjpEgSVh614bPfwnqkxKbGnEWD5ZgbuV9ghFGquGz8RsqJOdxC056XkyI8lU pd5WC2uWhmIhqxmn0OBQw9LoOS6gY1SYZrbRbWe3qgx8Ieaaw/LEjU1gYbWnnG2zPGHj qQbw3c6WjrjcaqDzcG5TnhzJgLNdnIfhj6iG45ssDD8s7PV60/XSdIS6QT2VUkZX08uQ m//NN9Ux3wCuB0CiNg3HAYgZ1K+DBpmMZLVJr0jJxqLXx5EjQxst8zY2wazLv14aA7Xs 3xag== 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=RYeBCM1n6l4ocBSebSg/m7g9I7gGkp0ycMnAlPc92B8=; b=ucgp/q1KhZooURSejcM1y3y0ssRP1B/QWNP+OOu7ECG3umtESx8UH6StNucwqRGIL7 HVappUpc21+7ym8a95j7mGdp2zjCLMMIBSwNI/7Hr1tGJC9uFO4sMHsabtGgrhETaj6y d8mIp1b7UjmNxyGqwWjqpDTy7108UsJFJJFj0MZTSoEMIo+mVlS8ZEzbnB14GEHifCPw DzlT7VBoe+HGpavgfJm28MAO4AJT1w/7FKFGJac7k6Uhq2KwAIKkhSHD8qcVYnd1Z2f/ z+sDBFWBEhIGHp7a/57Y7cb+zhK7klOc+nzMDChn50JakJFRHwfQoITUID8s+OdpYmmQ UpFQ== X-Gm-Message-State: AOAM532tJz9ItK7PjR4C95LJVR2HVdlYgDNHZ918g+8pKrw37es324Zt OtsrprTwaK5RGdobIPH+kigJ3234Q6KWFMEFb/u1Xg== X-Received: by 2002:a63:7e10:: with SMTP id z16mr6507613pgc.263.1611954578268; Fri, 29 Jan 2021 13:09:38 -0800 (PST) MIME-Version: 1.0 References: <20210129194318.2125748-1-ndesaulniers@google.com> <20210129194318.2125748-3-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 29 Jan 2021 13:09:27 -0800 Message-ID: Subject: Re: [PATCH v6 2/2] Kbuild: implement support for DWARF v5 To: Sedat Dilek Cc: Masahiro Yamada , Nathan Chancellor , Andrew Morton , LKML , Clang-Built-Linux ML , Linux Kbuild mailing list , linux-arch , Jakub Jelinek , Fangrui Song , Caroline Tice , Nick Clifton , Yonghong Song , Jiri Olsa , Andrii Nakryiko , Arnaldo Carvalho de Melo , Arvind Sankar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 12:55 PM Sedat Dilek wrote: > > On Fri, Jan 29, 2021 at 9:48 PM Nick Desaulniers > wrote: > > > > On Fri, Jan 29, 2021 at 12:41 PM Sedat Dilek wrote: > > > > > > On Fri, Jan 29, 2021 at 8:43 PM Nick Desaulniers > > > wrote: > > > > > > > > diff --git a/Makefile b/Makefile > > > > index 20141cd9319e..bed8b3b180b8 100644 > > > > --- a/Makefile > > > > +++ b/Makefile > > > > @@ -832,8 +832,20 @@ endif > > > > > > > > dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 > > > > dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 > > > > +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF5) := 5 > > > > DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) > > > > > > > > +# If using clang without the integrated assembler, we need to explicitly tell > > > > +# GAS that we will be feeding it DWARF v5 assembler directives. Kconfig should > > > > +# detect whether the version of GAS supports DWARF v5. > > > > +ifdef CONFIG_CC_IS_CLANG > > > > +ifneq ($(LLVM_IAS),1) > > > > +ifeq ($(dwarf-version-y),5) > > > > +DEBUG_CFLAGS += -Wa,-gdwarf-5 > > > > > > I noticed double "-g -gdwarf-5 -g -gdwarf-5" (a different issue) and > > > that's why I looked again into the top-level Makefile. > > > > That's...unexpected. I don't see where that could be coming from. > > Can you tell me please what is the precise command line invocation of > > make and which source file you observed this on so that I can > > reproduce? > > > > That's everywhere... > > $ zstdgrep --color '\-g -gdwarf-5 -g -gdwarf-5' > build-log_5.11.0-rc5-8-amd64-clang12-lto.txt.zst > | wc -l > 29529 I'm not able to reproduce. $ make LLVM=1 -j72 V=1 2>&1 | grep dwarf ... clang ... -g -gdwarf-5 -Wa,-gdwarf-5 ... ... $ make LLVM=1 LLVM_IAS=1 -j72 V=1 2>&1 | grep dwarf ... clang ... -g -gdwarf-5 ... ... Can you tell me please what is the precise command line invocation of make and which source file you observed this on so that I can reproduce? -- Thanks, ~Nick Desaulniers