Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1449717

[tip:perf/core] objtool: Always use host headers

From tip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com>
Newsgroups linux.kernel
Subject [tip:perf/core] objtool: Always use host headers
Date 2016-07-25 20:20 +0200
Message-ID <rYSDV-7Sa-33@gated-at.bofh.it> (permalink)
References <rXzDj-hE-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Commit-ID:  0cf6eb603b83ea386f26363b5b12e64297822bb1
Gitweb:     http://git.kernel.org/tip/0cf6eb603b83ea386f26363b5b12e64297822bb1
Author:     Arnaldo Carvalho de Melo <acme@redhat.com>
AuthorDate: Fri, 22 Jul 2016 16:28:46 -0300
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 22 Jul 2016 16:28:46 -0300

objtool: Always use host headers

From a conversation with Josh:

From http://lkml.kernel.org/r/20160722034118.guckaniobf3f7czc@treble :

It needs to be compiled with the host (powerpc) compiler, but then it
needs to disassemble target (x86) files.

 ----

So use HOSTARCH instead of ARCH.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20160722034118.guckaniobf3f7czc@treble
Link: http://lkml.kernel.org/n/tip-le1m1yzxnfpt3msbblu40nm8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index 988129c..91b5f98 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -24,7 +24,7 @@ OBJTOOL_IN := $(OBJTOOL)-in.o
 
 all: $(OBJTOOL)
 
-INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi
+INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi
 CFLAGS   += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES)
 LDFLAGS  += -lelf $(LIBSUBCMD)
 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

linux-next: build failure after merge of the luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-15 09:10 +0200
  Re: linux-next: build failure after merge of the luto-misc tree Peter Zijlstra <peterz@infradead.org> - 2016-07-15 09:30 +0200
    Re: linux-next: build failure after merge of the luto-misc tree Peter Zijlstra <peterz@infradead.org> - 2016-07-15 09:40 +0200
      Re: linux-next: build failure after merge of the luto-misc tree Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-07-15 17:10 +0200
        Re: linux-next: build failure after merge of the luto-misc tree Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-07-15 17:30 +0200
          Re: linux-next: build failure after merge of the luto-misc tree Peter Zijlstra <peterz@infradead.org> - 2016-07-15 17:30 +0200
            Re: linux-next: build failure after merge of the luto-misc tree Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-07-15 18:00 +0200
          Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Peter Zijlstra <peterz@infradead.org> - 2016-07-15 17:50 +0200
            Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-07-15 18:30 +0200
              Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree "H. Peter Anvin" <hpa@zytor.com> - 2016-07-15 22:30 +0200
          [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-07-15 17:50 +0200
            Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-18 07:20 +0200
              Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Andy Lutomirski <luto@amacapital.net> - 2016-07-18 22:10 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-18 22:40 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-19 00:30 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-19 01:50 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-19 02:30 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-19 02:40 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-19 05:30 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-19 15:00 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-19 19:50 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-20 01:30 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-20 02:00 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Andy Lutomirski <luto@amacapital.net> - 2016-07-20 05:00 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-07-20 05:10 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-20 05:20 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-20 05:00 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-21 01:40 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-21 15:20 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-22 01:30 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Josh Poimboeuf <jpoimboe@redhat.com> - 2016-07-22 05:50 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-22 16:40 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Josh Poimboeuf <jpoimboe@redhat.com> - 2016-07-22 21:20 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-22 21:40 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Josh Poimboeuf <jpoimboe@redhat.com> - 2016-07-22 21:50 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-22 22:00 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-07-23 07:10 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Andy Lutomirski <luto@amacapital.net> - 2016-07-24 20:50 +0200
                Re: [PATCH/RFC] Re: linux-next: build failure after merge of the  luto-misc tree Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-25 15:00 +0200
                [tip:perf/core] x86: Make the vdso2c compiler use the host  architecture headers tip-bot for Stephen Rothwell <tipbot@zytor.com> - 2016-07-25 20:20 +0200
                [tip:perf/core] tools build: Fix objtool build with ARCH=x86_64 tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-07-25 20:20 +0200
                [tip:perf/core] objtool: Always use host headers tip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com> - 2016-07-25 20:20 +0200
    [tip:perf/core] tools: Simplify BITS_PER_LONG define tip-bot for Peter Zijlstra <tipbot@zytor.com> - 2016-07-16 22:50 +0200

csiph-web