Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp690290pxb; Tue, 14 Sep 2021 06:43:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEMSGPN8hbivlkV6F/d1khtUqt5yYivHtHJxvL/Z/5eINhRtITPS1gKerGxEx7NxFLySWi X-Received: by 2002:a92:cbc2:: with SMTP id s2mr11794163ilq.228.1631627035809; Tue, 14 Sep 2021 06:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631627035; cv=none; d=google.com; s=arc-20160816; b=vS9S1/jEK7PmnKkQ39EwxW6LiqGrUT0Os2Lp/yDVHE+jQVwQPR/urWdYj0whlLnniS jDTsMR1bWTF3hTG0DV/V0G/Iy0d/M6tnq9MChsw9lWns7rojpb3HEbAKieHPLq6UImoQ ve1hJ/zdyxqsUMWlZzgbD+0myyZbJ+9yqFvTPtYKlA2zVeNwGUj1p62OWVUpmtkt94o0 l9/oiXRurcK2Yy+u/+9NCV0xniojKs7c6GapW+xFdrv7RZExBdpQ9zG3CKOAPDAmZ5jY +57u62hRXFMA+Va6ve5LjOqIt4HszfS/slsKKnENubHNxTAALD3LvWz8RiO4WvSzD7GS NBsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to; bh=DE3Do1B4URDX4oBijiy91FGOocHNwIkMIXikpAW+YL4=; b=bj8WKUmEhIzjmGOWAGQ+RfgVKh/xjb5wVjAeqjvZYlV9NBCVdPzPhITHMgOcW/NxCs FuhfyG/ezhZy2/Bdfm5tK8qL9gbF6AjvSBwv9oYJRT5RrzKRklB8aMM8d3pLssFbvGFY 7xK2hbWlEG3lJMuC3YkigZ2nzhZWnQ1mSds32mx7PzO0sFvw8xw/ahkWlGQru2mBAsiP 5hfAK7EakQ37D8fAnAlpPgZyjW+Ih5H7+aZq1AvGVFy3frz/nkY2yH0piYhOA5PZad0u 8xIYENIVa7uNkjWQV/aCFiGHE/1YCvKf3dy7aBVXfxB1FA41pWDzb8eGXEfvks/1+RPC 63Jw== ARC-Authentication-Results: i=1; mx.google.com; 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 d3si10319807ilu.98.2021.09.14.06.43.43; Tue, 14 Sep 2021 06:43: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; 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 S233495AbhINNno (ORCPT + 99 others); Tue, 14 Sep 2021 09:43:44 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:57405 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233606AbhINNnT (ORCPT ); Tue, 14 Sep 2021 09:43:19 -0400 Received: from fsav115.sakura.ne.jp (fsav115.sakura.ne.jp [27.133.134.242]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 18EDfjtP001530; Tue, 14 Sep 2021 22:41:46 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav115.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav115.sakura.ne.jp); Tue, 14 Sep 2021 22:41:45 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav115.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 18EDfj5F001479 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Tue, 14 Sep 2021 22:41:45 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) To: Nathan Chancellor , Stephen Rothwell Cc: Linus Torvalds , LKML From: Tetsuo Handa Subject: linux: build faulure: error: "__has_attribute" is not defined Message-ID: Date: Tue, 14 Sep 2021 22:41:45 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. With gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3) on d0ee23f9d78be553 ("tools: compiler-gcc.h: Guard error attribute use with __has_attribute"), I get CC /usr/src/linux/tools/objtool/exec-cmd.o In file included from /usr/src/linux/tools/include/linux/compiler_types.h:36:0, from /usr/src/linux/tools/include/linux/compiler.h:5, from exec-cmd.c:2: /usr/src/linux/tools/include/linux/compiler-gcc.h:19:5: error: "__has_attribute" is not defined [-Werror=undef] #if __has_attribute(__error__) ^ /usr/src/linux/tools/include/linux/compiler-gcc.h:19:20: error: missing binary operator before token "(" #if __has_attribute(__error__) ^ cc1: all warnings being treated as errors make[5]: *** [/usr/src/linux/tools/objtool/exec-cmd.o] Error 1 make[4]: *** [/usr/src/linux/tools/objtool/libsubcmd-in.o] Error 2 make[3]: *** [/usr/src/linux/tools/objtool/libsubcmd.a] Error 2 make[2]: *** [objtool] Error 2 make[1]: *** [tools/objtool] Error 2 make: *** [__sub-make] Error 2 On 2021/09/14 15:22, Stephen Rothwell wrote: > This is known and being addressed. Can you tell me the commit ?