Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2661557ybd; Thu, 27 Jun 2019 17:00:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmOLVUrTZpUfE9wRtYL7EWTkmvLq13wg+vqK7dTqI8QeHVL2c3TW0EC52nuY/+L4OY75jD X-Received: by 2002:a17:902:26c:: with SMTP id 99mr8114630plc.215.1561680057221; Thu, 27 Jun 2019 17:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561680057; cv=none; d=google.com; s=arc-20160816; b=P3ELas0MheGgU+wVbVITL7GC9GBalzJStjQl76wbkXCJF6cLwfD4hFvFXIe0GWYC23 s43zJ+Z5D+jL6ecHspEz4yg+1qmybxlMlBs5iJAEajTCHr0Vq7oWAl80YERnUbcBxHAt EcN+DtB59oMRA7F5TQ9B5r58rNFcVtcr3N4mN6V3C/jacHAxNsoRXkQfGqZD+X9JWuL8 MURiwvwJPLbmerH1XHHFFwzKB//CmWsBShOALr79QaqTqYVAJMTD0vCM11OmVuEVdWul fTvyQe9/mGQVnBsDFfWMTTSf+l2m2qDeaWDcSsTuLTML8UK85svzCYFB5XqqPRN0URgU JQjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VDLNziJof0gv4jXw94+E6W9B9/B5HpCPLg3j4XXxxKo=; b=wKjUEykVeybIA9s6VD27f52Echq1oPgwhTT8mI1kKGWCBY4VLL9YxDA76hy8s9Sxjr r0BIjh1Mai/poWRjIypLYv6WH4zPd+2/nyJn7hn6No9u8cg/DmBLKGBoGWV9QCwOV7KE jcM5Htrd5Vi8e2XBqcck0VC/7HPoUjWpJTIAY5lpBDBXnAuXdj9QnGVReg3YB7j0jN3+ 6jHAHTEa+cfOgEeaMwhCCq0yo9Q5vJR1jVgNf4Sfotx3XiXvwI6q8N1DAmkzftluh6tV A5Jz3wMGNW0PuAIV6voqv73jZ26EV39yv6xJ+GlSuM8oa8/jR1PuYJ+C+UyNUhyBg97Z Vxpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si329748plr.381.2019.06.27.17.00.40; Thu, 27 Jun 2019 17:00:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726620AbfF1AAg (ORCPT + 99 others); Thu, 27 Jun 2019 20:00:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36000 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfF1AAg (ORCPT ); Thu, 27 Jun 2019 20:00:36 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9D94AC04BD4A; Fri, 28 Jun 2019 00:00:36 +0000 (UTC) Received: from treble (ovpn-126-66.rdu2.redhat.com [10.10.126.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0BA9360BE0; Fri, 28 Jun 2019 00:00:35 +0000 (UTC) Date: Thu, 27 Jun 2019 19:00:34 -0500 From: Josh Poimboeuf To: Olof Johansson Cc: Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool: Be lenient about -Wundef Message-ID: <20190628000033.ipcypg4kny2whfz7@treble> References: <20190619120337.78624-1-olof@lixom.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190619120337.78624-1-olof@lixom.net> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 28 Jun 2019 00:00:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 05:03:37AM -0700, Olof Johansson wrote: > Some libelf versions use undefined macros, which combined with newer GCC > makes for errors from system headers. This isn't overly useful to fail > compiling objtool for. > > Error as seen: > > cc1: all warnings being treated as errors > In file included from arch/x86/../../elf.h:10, > from arch/x86/decode.c:14: > /usr/include/libelf/gelf.h:25:5: error: "__LIBELF_INTERNAL__" is not defined, evaluates to 0 [-Werror=undef] > #if __LIBELF_INTERNAL__ > ^~~~~~~~~~~~~~~~~~~ > > For this reason, skip -Wundef on objtool. > > Signed-off-by: Olof Johansson Sorry for the delay, I was out last week and I'm still getting caught up. Which libelf was this? I'm guessing it's the old non-elfutils version which has been unmaintained for 10 years (and which doesn't work with objtool anyway). It would be nice if we could figure out a way to detect that libelf and report a more useful error for it. -- Josh