Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5121924iog; Wed, 22 Jun 2022 12:28:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tyTUwomKV2SanoW1brlt55EwUHeFv2VxKnL8LUZ/ZxfREjCjDXtYDuXsqPBmaEdprUJTg9 X-Received: by 2002:a17:90a:d805:b0:1ec:870e:1dd2 with SMTP id a5-20020a17090ad80500b001ec870e1dd2mr28262426pjv.146.1655926104159; Wed, 22 Jun 2022 12:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655926104; cv=none; d=google.com; s=arc-20160816; b=Rd7h1EAQB5Q3wciDOGeoKyx/XeyPJJqXCAl2wP1Mbt11b26PiJojEyMxOVqixKF3/T FsDu7oAIGL4jcC6DSlFIgrDKJU14p4eQaAnVQ24pwA2kHp4Vrh5qLrbdIE2l78ef8tkK sqRw93YBMZ11xo/DG5lGnp+T+LoGq/xggP+KV00VNpowjmpqGxwgW9dKMLHMpLT7ICDz I0tckHUu0vNytuj1bnf+mHlwpq98lil4cRrAwMIohVgO7pAwE3VKemDfB6oDMHcsOwfd ECTKZz9WXfrv7xopqCnCCPAYp2eji+fbYXNzE8ZHLpXcjA9iuOkwGo8i4KKLVCllf0Ue YsMA== 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; bh=A9VFNYk2roIt7o1MMmu8e2pgKDUSymDyGpZ7HEMVVas=; b=uM5DYlBhR19lCj9HW8oN3F7yJwWhfR6OPVl/Y7nh42Usi/0dMeJ83MDO+KyoR1W+d5 ZfG0AEGqmR8JXhowGAxawkMU9ng2xyDVOBogR158a1508O7jtQ7whR7PDIBfURZVz51z KmpC7jdqBuvuEVZug+5Nv3NsKPMMsbVI+efI9h7jgiKyt+L171Ycng1kZl6WyEfz+hcg ThE62d2BQGGDMhQFJagXrnjWnS1+lhXbUdPSrxF/f9wC95chefw2SE/4UDEWHpgY/yBL FV2W0mBSAVxz2A7CldRszFAg/IzPewPJz2HGMPqse0oYBUjqJW577NAXvpoBnaaUeLPz /F1w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u184-20020a6385c1000000b0040d29e0634esi3077098pgd.474.2022.06.22.12.28.12; Wed, 22 Jun 2022 12:28:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235842AbiFVTWG (ORCPT + 99 others); Wed, 22 Jun 2022 15:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiFVTWD (ORCPT ); Wed, 22 Jun 2022 15:22:03 -0400 X-Greylist: delayed 529 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 22 Jun 2022 12:21:59 PDT Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12BF738D8A for ; Wed, 22 Jun 2022 12:21:59 -0700 (PDT) Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 4C2D972C8B1; Wed, 22 Jun 2022 22:13:09 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 3796D7CF60C; Wed, 22 Jun 2022 22:13:09 +0300 (MSK) Date: Wed, 22 Jun 2022 22:13:09 +0300 From: "Dmitry V. Levin" To: Arnaldo Carvalho de Melo Cc: Gleb Fotengauer-Malinovskiy , Vitaly Chikunov , Mikhail Gordeev , Hendrik Brueckner , Ian Rogers , Linux Kernel Mailing List Subject: Re: [PATCH 1/1 FYI] perf trace beauty: Fix generation of errno id->str table on ALT Linux Message-ID: <20220622191308.GA2045@altlinux.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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, On Wed, Jun 22, 2022 at 01:24:15PM -0300, Arnaldo Carvalho de Melo wrote: > Fyi, I'm carrying this on my perf tools tree to keep building on: > > [perfbuilder@five sisyphus]$ podman pull alt:sisyphus > Trying to pull docker.io/library/alt:sisyphus... > Getting image source signatures > Copying blob 2b39ef1520dd skipped: already exists > Copying blob 12717fd4baa0 skipped: already exists > Copying config 6d48f46445 done > Writing manifest to image destination > Storing signatures > 6d48f4644518cd96ffe1de6cd0333d2abc8312c0e4449e03b58b1d480f0f5905 > [perfbuilder@five sisyphus]$ dsh . > sh-4.4# bash > [root@b8318c77142b /]# cat /etc/os-release > NAME="starter kit" > VERSION="p10 (Hypericum)" > ID=altlinux > VERSION_ID=p10 > PRETTY_NAME="ALT Starterkit (Hypericum)" > ANSI_COLOR="1;33" > CPE_NAME="cpe:/o:alt:starterkit:p10" > HOME_URL="http://en.altlinux.org/starterkits" > BUG_REPORT_URL="https://bugs.altlinux.org/" > [root@b8318c77142b /]# rpm -qi bash > Name : bash > Version : 4.4.23 > Release : alt1 > DistTag : sisyphus+221902.500.4.1 > Architecture: noarch > Install Date: Fri Jun 3 23:03:32 2022 > Group : Shells > Size : 0 > License : None > Signature : DSA/SHA1, Tue Feb 19 14:40:44 2019, Key ID 95c584d5ae4ae412 > Source RPM : bash-defaults-4.4.23-alt1.src.rpm > Build Date : Tue Feb 19 14:40:42 2019 > Build Host : ldv-sisyphus.hasher.altlinux.org > Relocations : (not relocatable) > Packager : Dmitry V. Levin > Vendor : ALT Linux Team > Summary : The GNU Bourne Again SHell (/bin/bash) > Description : > This package provides default setup for the GNU Bourne Again SHell (/bin/bash). > [root@b8318c77142b /]# > > Perf uses that script to generate an id->str errno table for all arches, > implemented in: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0337cf74ccf2a43437bff2e23b278e4f2dc4c6e2 > > But it is failing on: > > 10 62.99 alt:p8 : Ok x86_64-alt-linux-gcc (GCC) 5.3.1 20151207 (ALT p8 5.3.1-alt3.M80P.1) , clang version 3.8.0 (tags/RELEASE_380/final) > 11 91.50 alt:p9 : Ok x86_64-alt-linux-gcc (GCC) 8.4.1 20200305 (ALT p9 8.4.1-alt0.p9.1) , clang version 10.0.0 > 12 89.80 alt:p10 : Ok x86_64-alt-linux-gcc (GCC) 10.3.1 20210703 (ALT Sisyphus 10.3.1-alt2) , clang version 11.0.1 > 13 8.99 alt:sisyphus : FAIL gcc version 12.1.1 20220518 (ALT Sisyphus 12.1.1-alt1) (GCC) > | ^~~~ > 442 | case 47: return "EL3RST"; > | ^~~~ > 443 | case 48: return "ELNRNG"; > > The generated file lacks the function start/end due to some strange > glitch: > > http://vger.kernel.org/~acme/perf/generated-altlinux-sisyphus-arch_errno_name_array.c > > So I'm adding this workaround, can you please check why this is > happening? arch_errno_names.sh uses here-documents which are implemented in bash using temporary files. Looks like it couldn't create a temporary file, e.g. because $TMPDIR points to a directory that doesn't exist or not writable. If there was some "cannot create temp file for here-document" diagnostics in stderr, that's it. If that's the case, it's not a problem in the script but in the environment. I've Cc'ed more people, maybe they could have a look. -- ldv