Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp848241rwe; Wed, 24 Aug 2022 09:57:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Fp8rKSVSBEFCUc7AcYaeFuG+j5HJOueDMTKuADmQ46yY7bVrFQSMfAutrD4JtX6E+1TSX X-Received: by 2002:a17:906:c10:b0:6f4:6c70:b00f with SMTP id s16-20020a1709060c1000b006f46c70b00fmr3611747ejf.660.1661360262836; Wed, 24 Aug 2022 09:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661360262; cv=none; d=google.com; s=arc-20160816; b=X/6oX9Ie66IAsngAnkhxVK7LlDPftp3bfSDRRTbH4HhfqWJOs0JktEkj2Mhh64p4N2 ukyZXFCSctk9e/6tEXXZdFEsnB3clVpv68t/aaU4nnyry8q0C6x0yI4TBfkOikpwaHVD /0D/9p2AKA6cFUekb+dtKmp7I74St4mLMwHnwo4zkHUN0YdySFLlX6Ykui3ePa4ugctY e7EQiIGemnhoR3XxEUaXzIZDFn6mpYnowFCFAlRSS8Y/VBDrdQzavOwWLCx1toxBlX7E Epsad72Eg2H+IYLfTRdUbU1stBYSxZGqH8WsomtqX9IIi85y6K2Yom7qLRQ2jKS66cEL guYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mnP9dO06W3WXTIEjbJN8UIpdRplONg7lRleG2nKKOlE=; b=zZR8U2TIloqtDhWmT16sstNMwDILrXit9GyIPj4rId3ynsTE+7NHOxdXMbtHR1D5mS juqduyWwX//8V+4TG/s00VIPC33yOIeaHwfL8JY5rcqpL+lLUrUTfWjUX2fKEkK+hnW0 qRsFvxtBeolA6Fr8ILF+0uLG37fTKrlBY6DsZwUFWgqTSWA1gPg5u8HPDGwqm6nBh6CG FOf/A5gu4cjyyECkDf8rIaUA5ZyD2/lmB45GJLAB/fqL7ljVtuxjEZD5WLUiOG1l4wfd h+K5ONo/TOcri6Ewr9Aeor8Dr7p+UbPVKcisz53WM6EglCA/smiQ6jvc6icsbB9cfS9V rWNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tesOcLeU; 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 y9-20020a056402440900b00445f21c2b32si5634947eda.132.2022.08.24.09.57.17; Wed, 24 Aug 2022 09:57:42 -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=@kernel.org header.s=k20201202 header.b=tesOcLeU; 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 S239173AbiHXQY6 (ORCPT + 99 others); Wed, 24 Aug 2022 12:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238977AbiHXQY4 (ORCPT ); Wed, 24 Aug 2022 12:24:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0062C121; Wed, 24 Aug 2022 09:24:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 193DDB825C4; Wed, 24 Aug 2022 16:24:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 402E9C433C1; Wed, 24 Aug 2022 16:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661358291; bh=lrE15h5VJPmZzV9dWh6JsVYc+o1YiOd+6WU2aXZYLp4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tesOcLeUBhxTxfpO3YEeJ92V55wvXkRHMKetD3LMUacnm6KUcaBwBFF4GJWfdHQsh GvWbO9LOc9VspJUf5nVTzPiQZo0MlG4I5q/JbJS7RhlzwFV8aorikM62McnS0xXy2H UieLm2Y/XxJXhF0Jf7dL88/0HnwhsaccIQH/HCC6AJRj1DzltNiAVcrwjxEUmRsC9P j9Tmte7vlEL2Ows3Pme112NMv+PuTykx0AmGkTdWBh7SyG1czuDyumrTDvjM8E4svz PY8VWpjRqU8InO0Gydrpgjao7DkWx8AlePxiNRTeMMbisZ1w03TllxMX5mYD3TwNhT MvmndtRW6JkvQ== Date: Wed, 24 Aug 2022 09:24:49 -0700 From: Nathan Chancellor To: Arnaldo Carvalho de Melo Cc: dwarves@vger.kernel.org, Linux Kernel Mailing List , Alibek Omarov , Kornilios Kourtis , Kui-Feng Lee , Yonghong Song , bpf@vger.kernel.org, Jiri Olsa Subject: Re: ANNOUNCE: pahole v1.24 (Faster BTF encoding, 64-bit BTF enum entries) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Arnaldo, On Mon, Aug 22, 2022 at 08:28:42PM -0300, Arnaldo Carvalho de Melo wrote: > Hi, > > The v1.24 release of pahole and its friends is out, with faster > BTF generation by parallelizing the encoding part in addition to the > previoulsy parallelized DWARF loading, support for 64-bit BTF enumeration > entries, signed BTF encoding of 'char', exclude/select DWARF loading > based on the language that generated the objects, etc. > - Introduce --lang and --lang_exclude to specify the language the > DWARF compile units were originated from to use or filter. This appears to break building pahole with older versions of libdw (?). I build container images with older versions of compilers for easy matrix testing and my gcc-5 and gcc-6 images (based off Ubuntu Xenial and Debian Stretch respectively) fail to build. $ podman run --rm -ti -v $TMP_FOLDER/dwarves-1.24.tar.xz:/tmp/dwarves-1.24.tar.xz:ro docker.io/ubuntu:xenial # apt update # apt install build-essential cmake libdw-dev libelf-dev xz-utils zlib1g-dev # cd $(mktemp -d) # tar -xJf /tmp/dwarves-1.24.tar.xz # mkdir build # cd build # cmake -DBUILD_SHARED_LIBS=OFF -D__LIB=lib ../dwarves-1.24 # make -j$(nproc) ... /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c: In function 'lang__str2int': /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2093:3: error: 'DW_LANG_BLISS' undeclared (first use in this function) [DW_LANG_BLISS] = "bliss", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2093:3: note: each undeclared identifier is reported only once for each function it appears in /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2093:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2093:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2100:3: error: 'DW_LANG_C_plus_plus_03' undeclared (first use in this function) [DW_LANG_C_plus_plus_03] = "c++03", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2100:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2100:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2105:3: error: 'DW_LANG_Dylan' undeclared (first use in this function) [DW_LANG_Dylan] = "dylan", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2105:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2105:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2114:3: error: 'DW_LANG_Julia' undeclared (first use in this function) [DW_LANG_Julia] = "julia", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2114:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2114:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2116:3: error: 'DW_LANG_Modula3' undeclared (first use in this function) [DW_LANG_Modula3] = "modula3", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2116:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2116:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2119:3: error: 'DW_LANG_OCaml' undeclared (first use in this function) [DW_LANG_OCaml] = "ocaml", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2119:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2119:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2120:3: error: 'DW_LANG_OpenCL' undeclared (first use in this function) [DW_LANG_OpenCL] = "opencl", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2120:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2120:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2122:3: error: 'DW_LANG_PLI' undeclared (first use in this function) [DW_LANG_PLI] = "pli", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2122:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2122:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2124:3: error: 'DW_LANG_RenderScript' undeclared (first use in this function) [DW_LANG_RenderScript] = "renderscript", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2124:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2124:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2125:3: error: 'DW_LANG_Rust' undeclared (first use in this function) [DW_LANG_Rust] = "rust", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2125:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2125:3: note: (near initialization for 'languages') /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2126:3: error: 'DW_LANG_Swift' undeclared (first use in this function) [DW_LANG_Swift] = "swift", ^ /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2126:3: error: array index in initializer not of integer type /tmp/tmp.pQ2GsHbGAx/dwarves-1.24/dwarves.c:2126:3: note: (near initialization for 'languages') CMakeFiles/dwarves.dir/build.make:62: recipe for target 'CMakeFiles/dwarves.dir/dwarves.c.o' failed ... If there is any additional information I can provide or patches I can test, please let me know! Cheers, Nathan