Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp182228ybg; Tue, 9 Jun 2020 20:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0dWRIyOaoDLpFEsDO7BKDHJvbYjJGbKREGY/d8JefWpcMQdiRrhsGEFB1SU0xuy5UGP9q X-Received: by 2002:a17:906:b207:: with SMTP id p7mr1374552ejz.23.1591759735108; Tue, 09 Jun 2020 20:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591759735; cv=none; d=google.com; s=arc-20160816; b=ulPEY7YbVblfwMj0b+0M0GjWFenKSzak8k5eA4sIk6gdn3ID1pFex4uhvsZixFsI7Y BUlHmpHs3zjpN9XAgcrhgBQp2oYBjlxXeEmnwc2NOkbiLQ8snxzFcDwg3gdY0m+qjMHD iUtSXZfzs6Ydh6S7lNYZzN87w9MWDVw6MevSRKYlAojhGJxOMMC/q8ZM+gzb3N4c9lNg IBy7PF10F9ALKbRBZ/9Z4Eaqr2Ss4cpIhcwYqmFPeLJHSeFet9xkaz/0VN0jJ1PoyIfc +n7gUijrZq8QxY6rlwVxfOokzFkS+/LcVYi6xEEDcjDI6x9EjG9wSg34ZTaWl+WheQEc jh8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=HK9ir5YqLJV5ZUuAryCYskq/ln3yZyDIMSHc1NLebXg=; b=HtubN5FlxwqrbB0gSdFriDwV0wYl+0qotjvFP4/V6bGh/0Knvs5HALu4YrwLexSOoa kCpwRz/+I5+lFGyrk1t1983Gu/37iCUejbkJoYqmjQUhni2kSh9zBNrpmxYFItEt2pPw YlWO7nhj4Tsk9hWzv+7tJufXfyAcq8RHASenV40VwgljYuRaTOI24NcF7J3TxZQZoEN6 1BfBl19DiN05+YwZUbi1WLeuid7U59h/J1iadGg3tl67jAHNy9BgbwEz1yRYDlS/lBtT xy6inz/yYUnM+HvjispmsOjCCdAzhd9h9IQfJKyDqHRpFe59S3e/72HvIMeKh60xq4FV IXHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mNgWJODn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de28si12159840edb.492.2020.06.09.20.28.32; Tue, 09 Jun 2020 20:28:55 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=mNgWJODn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbgFJDXg (ORCPT + 99 others); Tue, 9 Jun 2020 23:23:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbgFJDXg (ORCPT ); Tue, 9 Jun 2020 23:23:36 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60F6FC05BD1E for ; Tue, 9 Jun 2020 20:23:35 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id i16so697607qtr.7 for ; Tue, 09 Jun 2020 20:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=HK9ir5YqLJV5ZUuAryCYskq/ln3yZyDIMSHc1NLebXg=; b=mNgWJODnGAFOJr8jjBzMg/pgjvwUpSTYa8yWWLmwL2RF6xCJyqVM38dwoYwwBXtybT xlexCTs6kvb0Y1mBI3o+EY9N1BIn4kdPIQJ80DAhUO6JYcBvNAwsRKDucMPoiy7V8G6F z+Yb7/i696nor9y1Hfw5V5t1KLoBSvn12Y43vWyNcUnVtO6l7nYkS7z0gtttaEreeEc0 nd7b2a7QSsS0TaoYoYtC7Nva+gh52slD5wHVfCweLI72wYh70SPZnWAB6JWtrIrxds9D OZVzhmJ62/BemwfzC5G1J36B7OSWAF0FlbYbjaGrYscQPgwIjQG7TIlJzsAq9VI0SKGB qaDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=HK9ir5YqLJV5ZUuAryCYskq/ln3yZyDIMSHc1NLebXg=; b=gIruLtRK1d3O/H14ETOfUelbADM44Sqi7xnsLb0yfjUWgrcw8XaorkKKE4JDfayzMo 83mLffyAEaruJmfQsgNVQ2JzDOz2yMi2rZAIgkdcR1ulQ25eomlqpE3307TNjPQ9DJOP cUkeByVPUghQtYEwKLAeTift7tGNWvG1nx+tR1xKvliVThaLseVfGbQYQoOS6S0w7wgt cGI1SVamIbqj9dW5fHKNBHpG9adwjy7szAIJD2n3fgCTp258bdZoMoqhAayGMxmCgDUz gy2WAQ17LGbVYR+DJLtJ+Kke2+vrM+cl7CcPplbNQXh2zo2FGWgX20RGgMbFC3URLGaV YC6Q== X-Gm-Message-State: AOAM532/M7TUX3yCSpPRKDLNbguc19doHwNffb96mRVt9+gak14UBI6C UPlTWpB04Pl9SsKV5FwqCMA= X-Received: by 2002:ac8:f47:: with SMTP id l7mr1137460qtk.292.1591759414495; Tue, 09 Jun 2020 20:23:34 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id w3sm11717431qkb.85.2020.06.09.20.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 20:23:33 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Tue, 9 Jun 2020 23:23:31 -0400 To: Arvind Sankar Cc: Rong Chen , Fangrui Song , Nick Desaulniers , kernel test robot , Masahiro Yamada , kbuild-all@lists.01.org, LKML Subject: Re: [kbuild-all] Re: gcc-5: error: -gz is not supported in this configuration Message-ID: <20200610032331.GA1928844@rani.riverdale.lan> References: <202006092115.nevT7m8D%lkp@intel.com> <20200609174954.cckelwl6etwztmhv@google.com> <05c88916-7d91-ad1a-1ea6-15167a994a0b@intel.com> <20200610005830.s6gus7r3umwgzozk@google.com> <20200610031225.GA1917869@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200610031225.GA1917869@rani.riverdale.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2020 at 11:12:25PM -0400, Arvind Sankar wrote: > On Wed, Jun 10, 2020 at 09:49:01AM +0800, Rong Chen wrote: > > > > > > On 6/10/20 8:58 AM, Fangrui Song wrote: > > > On 2020-06-10, Rong Chen wrote: > > >> > > >> > > >> On 6/10/20 1:49 AM, Fangrui Song wrote: > > >>> On 2020-06-09, Nick Desaulniers wrote: > > >>>> On Tue, Jun 9, 2020 at 6:12 AM kernel test robot > > >>>> wrote: > > >>>>> > > >>>>> tree: > > >>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > >>>>> master > > >>>>> head:   abfbb29297c27e3f101f348dc9e467b0fe70f919 > > >>>>> commit: 10e68b02c861ccf2b3adb59d3f0c10dc6b5e3ace Makefile: support > > >>>>> compressed debug info > > >>>>> date:   12 days ago > > >>>>> config: x86_64-randconfig-r032-20200609 (attached as .config) > > >>>>> compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 > > >>>>> reproduce (this is a W=1 build): > > >>>>>         git checkout 10e68b02c861ccf2b3adb59d3f0c10dc6b5e3ace > > >>>>>         # save the attached .config to linux build tree > > >>>>>         make W=1 ARCH=x86_64 > > >>>>> > > >>>>> If you fix the issue, kindly add following tag as appropriate > > >>>>> Reported-by: kernel test robot > > >>>>> > > >>>>> All errors (new ones prefixed by >>, old ones prefixed by <<): > > >>>>> > > >>>>>>> gcc-5: error: -gz is not supported in this configuration > > >>>> > > >>>> Hmm...I wonder if the feature detection is incomplete?  I suspect it's > > >>>> possible to not depend on zlib. > > >>>> > > >>>>> make[2]: *** [scripts/Makefile.build:277: scripts/mod/empty.o] > > >>>>> Error 1 > > >>>>> make[2]: Target '__build' not remade because of errors. > > >>>>> make[1]: *** [Makefile:1169: prepare0] Error 2 > > >>>>> make[1]: Target 'prepare' not remade because of errors. > > >>>>> make: *** [Makefile:185: __sub-make] Error 2 > > >>> > > >>> The output of gcc-5 -v --version on that machine may help. The > > >>> convoluted gcc_cv_ld_compress_de logic in gcc/configure.ac may be > > >>> related, but I can't find any mistake that our > > >>> CONFIG_DEBUG_INFO_COMPRESSED conditions may make. > > >> > > The output of gcc-5 -dumpspecs may also be useful. > > The exact Kconfig check should have been > gcc-5 -Werror -gz=zlib -S -x c /dev/null -o /dev/null > > I can't see how that would succeed if the a.c test didn't but maybe just > in case? Oh wait, -S instead of -c. Which means it runs neither the assembler nor the linker, so gcc won't error out. But if that gcc was originally _configured_ with a version of binutils that doesn't support -gz=zlib, it will give an error on -c regardless of whether the runtime binutils would actually support it or not.