Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2818737ybd; Thu, 27 Jun 2019 20:44:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8ATlMUhlsQhdZ1I3gqQ0Ji1ACe3EaEHANpnADs7It34ECeWx507pSp+TWzAwsqdrppJjP X-Received: by 2002:a17:902:d915:: with SMTP id c21mr8947550plz.335.1561693485957; Thu, 27 Jun 2019 20:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561693485; cv=none; d=google.com; s=arc-20160816; b=o8KLszQR/pHIj4DhukUvBQjO3w+0YUcqiIWtx+uFWNYUmO9kh9TI446b4PoJd+FmCh gKZ8VvvW2ZgwsgHMr9K4rAO/9oo/+I7svBWZBli977s8Xjqiq8C+MucFFsr5Rm/S1ViQ w/5q3jXrGO4n5UOnhOdVIGVq/aIhCfUFsQT4FV++r7jrw5DcIzre9n7BeMXHn39G5alm liDDnXwWhMIWWC3Uwdc17GTiLeSVvJd4lWxqX0PLQSGqXL9ElbXk1xamPe8N0ubwGdOy ZuzydARKteTH/7N3MuygCTczr+nj0/N/EqyvS7oBkhVS/lPeXIFM5ke8cw7rxbjJFTxV hyug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H94wx8BA9J9GrxF8s1ReCKmwP5vlxA1zO/6P1Z9SjDk=; b=GGngeFYQ+MqiklwKMDaQS/KTmJHWTglLtVU7Dk4h4dajjttNtACYIarUDwrq1Xpy4o 5LFhqXVvdibp+UnDnJYAzaWkAevqk+HmHjzbsd1lcxblEsISsRMJIwTqrU+A5vomF5Cr qnjGvGSIRAGh+R48sm4NQeywEoYVjwAf/HFIZHneX2SL6w0RBLwpU/clisDLRLhpjrn3 tLPT7lfU33echDh/TmaTkd9XS8C55Zb6oR4xpC5bPmKXApJs1Mzeo8Jvf5X4VFhe0If7 P2A6vBrAWSCcdFXmEs3tt701U64asun6FwnuK8qkEj8ZnNXYHc9t8WKkxp+fQRbw2d9m 4B0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=jdecO9TB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t135si1125189pfc.251.2019.06.27.20.44.29; Thu, 27 Jun 2019 20:44:45 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=jdecO9TB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbfF1DoX (ORCPT + 99 others); Thu, 27 Jun 2019 23:44:23 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:46708 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbfF1DoX (ORCPT ); Thu, 27 Jun 2019 23:44:23 -0400 Received: by mail-io1-f67.google.com with SMTP id i10so9468949iol.13 for ; Thu, 27 Jun 2019 20:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H94wx8BA9J9GrxF8s1ReCKmwP5vlxA1zO/6P1Z9SjDk=; b=jdecO9TBf25X5vOPSzeZ6Q4Ub0nwztKuiukrJk0YmMpJGrQ+ZiSaFzZuw0B5MNNJKz kcDBVaWNphJ1LgXyee3sUAIP2DCieVutHU8EhQnsUDHISPESChbnx3yePpe5tyvhS0k6 1ffm+c1WspOZlgOIE9I+ki+KVft/O87Wizxw/Hz5MhjtK1URq0zDwUK8uWHBGzkk0o33 ca/ZDi2qfNvAwBJ7up4l/em+s1655WtwzAdCVowMPrkkah/D4dB5L5TNFuxU7X7UwbzS TyOapXZLKsEKvXeiesdHoc+yq87LUrG4ax6oxGM1kaBXTYqYKeFltfNmDSHmJJWtotWp ziIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H94wx8BA9J9GrxF8s1ReCKmwP5vlxA1zO/6P1Z9SjDk=; b=Oxw/cUrsXrAKchgSTguRSOAE9qWpIciRZkprZtrLrHGi11uCq4HDEOr3XVKDI4XKlK AVMxECflRJXMeox4Jb6nomvdx6WWGGuZCXN688It+zx60lEM+oy7Wai5LVaUTngkl/fZ X5vBIe7fR5DnI2b1nUKfIsts/RoYxfs39uukt0HeKc1uW3FuI1h7MQg0mbqjf+E+UjJB z5Uh7wvRzcB9tm+a/ecpPEaIkfGZ8C3kh3gDixqjThxGEKZ+dbMguRwKi9cGP1us7v9I GHmZhLFDdsUwkm7d9d5G6oVCOUfcvJD2kwKoA1S8YZyrSKiTNPEphwYpvUxXgLiShFg8 SZTg== X-Gm-Message-State: APjAAAXr0XEH5cQLnZ5AqAwBRQ25IjIQWfcwoxW4Zs3UINXtaD4m2dRs zIB0yItOE8LrtU8FTxYLNnly5hR5kHK9CklVwX6gQw== X-Received: by 2002:a6b:ee15:: with SMTP id i21mr7951115ioh.281.1561693462611; Thu, 27 Jun 2019 20:44:22 -0700 (PDT) MIME-Version: 1.0 References: <20190619120337.78624-1-olof@lixom.net> <20190628000033.ipcypg4kny2whfz7@treble> In-Reply-To: <20190628000033.ipcypg4kny2whfz7@treble> From: Olof Johansson Date: Fri, 28 Jun 2019 11:44:10 +0800 Message-ID: Subject: Re: [PATCH] objtool: Be lenient about -Wundef To: Josh Poimboeuf Cc: Peter Zijlstra , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 8:00 AM Josh Poimboeuf wrote: > > 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. Yeah, looks like my docker image pulled in the very old libelf 0.8.13, but has elfutils available. I'll switch it over locally to resolve this. -Olof