Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1242040 > unrolled thread
| Started by | He Kuang <hekuang@huawei.com> |
|---|---|
| First post | 2015-10-08 10:20 +0200 |
| Last post | 2015-10-14 15:20 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [BUG] perf cross-compile error dual to fixdep not host-exe He Kuang <hekuang@huawei.com> - 2015-10-08 10:20 +0200
Re: [BUG] perf cross-compile error dual to fixdep not host-exe Jiri Olsa <jolsa@redhat.com> - 2015-10-08 10:40 +0200
build: Fix cross compile build Jiri Olsa <jolsa@redhat.com> - 2015-10-13 14:50 +0200
[tip:perf/core] tools build: Fix cross compile build tip-bot for Jiri Olsa <tipbot@zytor.com> - 2015-10-14 15:20 +0200
| From | He Kuang <hekuang@huawei.com> |
|---|---|
| Date | 2015-10-08 10:20 +0200 |
| Subject | Re: [BUG] perf cross-compile error dual to fixdep not host-exe |
| Message-ID | <qheAH-6eu-11@gated-at.bofh.it> |
hi, Jirka
On 2015/9/30 14:13, Jiri Olsa wrote:
> On Wed, Sep 30, 2015 at 11:18:20AM +0800, He Kuang wrote:
>> Hi,
>>
>> perf cross-compile error dual to fixdep is not a host executable, first bad commit
>> is 7c422f557266("tools build: Build fixdep helper from perf and basic libs")
>>
>> Cross-compiling an aarch64 target on x86_64 host, error like this:
>>
>> $ make ARCH=aarch64 O=xx/aarch64 CROSS_COMPILE=aarch64-linux-gnu
>> ...
>> make[3]: *** [xx/aarch64/parse-utils.o] Error 126
>> make[3]: *** Waiting for unfinished jobs....
>> /bin/sh: xx/aarch64//fixdep: cannot execute binary file
>>
>> $ uname -a
>> x86_64 x86_64 x86_64 GNU/Linux
>>
>> $ file xx/aarch64//fixdep
>> xx/aarch64//fixdep : ELF 64-bit LSB executable, ARM aarch64, version 1
>> (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for
>> GNU/Linux 3.7.0, not stripped
>
> hum, we need fixdep to stay the host arch.. I should have seen it :-\
> could you please check attached patch?
>
> thanks,
> jirka
>
It does not work, 'fixdep' still be compiled as target executable.
Thank you.
>
> ---
> diff --git a/tools/build/Makefile b/tools/build/Makefile
> index a93036272d43..648897694992 100644
> --- a/tools/build/Makefile
> +++ b/tools/build/Makefile
> @@ -5,15 +5,6 @@ endif
>
> include $(srctree)/tools//scripts/Makefile.include
>
> -define allow-override
> - $(if $(or $(findstring environment,$(origin $(1))),\
> - $(findstring command line,$(origin $(1)))),,\
> - $(eval $(1) = $(2)))
> -endef
> -
> -$(call allow-override,CC,$(CROSS_COMPILE)gcc)
> -$(call allow-override,LD,$(CROSS_COMPILE)ld)
> -
> ifeq ($(V),1)
> Q =
> else
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2015-10-08 10:40 +0200 |
| Message-ID | <qheU4-6Ba-51@gated-at.bofh.it> |
| In reply to | #1242040 |
On Thu, Oct 08, 2015 at 04:02:48PM +0800, He Kuang wrote:
> hi, Jirka
>
> On 2015/9/30 14:13, Jiri Olsa wrote:
> >On Wed, Sep 30, 2015 at 11:18:20AM +0800, He Kuang wrote:
> >>Hi,
> >>
> >>perf cross-compile error dual to fixdep is not a host executable, first bad commit
> >>is 7c422f557266("tools build: Build fixdep helper from perf and basic libs")
> >>
> >>Cross-compiling an aarch64 target on x86_64 host, error like this:
> >>
> >> $ make ARCH=aarch64 O=xx/aarch64 CROSS_COMPILE=aarch64-linux-gnu
> >> ...
> >> make[3]: *** [xx/aarch64/parse-utils.o] Error 126
> >> make[3]: *** Waiting for unfinished jobs....
> >> /bin/sh: xx/aarch64//fixdep: cannot execute binary file
> >>
> >> $ uname -a
> >> x86_64 x86_64 x86_64 GNU/Linux
> >>
> >> $ file xx/aarch64//fixdep
> >> xx/aarch64//fixdep : ELF 64-bit LSB executable, ARM aarch64, version 1
> >> (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for
> >> GNU/Linux 3.7.0, not stripped
> >
> >hum, we need fixdep to stay the host arch.. I should have seen it :-\
> >could you please check attached patch?
> >
> >thanks,
> >jirka
> >
>
> It does not work, 'fixdep' still be compiled as target executable.
could you please provide output from that build with 'JOBS=1 V=1'
last chance before I kick myself to actualy setup cross compiling :-\
thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2015-10-13 14:50 +0200 |
| Subject | build: Fix cross compile build |
| Message-ID | <qj7bH-6QI-1@gated-at.bofh.it> |
| In reply to | #1242067 |
On Thu, Oct 08, 2015 at 10:30:04AM +0200, Jiri Olsa wrote:
> On Thu, Oct 08, 2015 at 04:02:48PM +0800, He Kuang wrote:
> > hi, Jirka
> >
> > On 2015/9/30 14:13, Jiri Olsa wrote:
> > >On Wed, Sep 30, 2015 at 11:18:20AM +0800, He Kuang wrote:
> > >>Hi,
> > >>
> > >>perf cross-compile error dual to fixdep is not a host executable, first bad commit
> > >>is 7c422f557266("tools build: Build fixdep helper from perf and basic libs")
> > >>
> > >>Cross-compiling an aarch64 target on x86_64 host, error like this:
> > >>
> > >> $ make ARCH=aarch64 O=xx/aarch64 CROSS_COMPILE=aarch64-linux-gnu
> > >> ...
> > >> make[3]: *** [xx/aarch64/parse-utils.o] Error 126
> > >> make[3]: *** Waiting for unfinished jobs....
> > >> /bin/sh: xx/aarch64//fixdep: cannot execute binary file
> > >>
> > >> $ uname -a
> > >> x86_64 x86_64 x86_64 GNU/Linux
> > >>
> > >> $ file xx/aarch64//fixdep
> > >> xx/aarch64//fixdep : ELF 64-bit LSB executable, ARM aarch64, version 1
> > >> (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for
> > >> GNU/Linux 3.7.0, not stripped
> > >
> > >hum, we need fixdep to stay the host arch.. I should have seen it :-\
> > >could you please check attached patch?
> > >
> > >thanks,
> > >jirka
> > >
> >
> > It does not work, 'fixdep' still be compiled as target executable.
>
> could you please provide output from that build with 'JOBS=1 V=1'
>
> last chance before I kick myself to actualy setup cross compiling :-\
>
> thanks,
> jirka
posting patch for the issue
thanks,
jirka
---
He Kuang the new fixdep tool breaks cross compiling. The reason
is it wouldn't get compiled under host arch, but under cross arch
and failed to run.
We need to add support for host side tools build, meanwhile
disabling fixdep usage for cross arch builds.
Reported-by: He Kuang <hekuang@huawei.com>
Link: http://lkml.kernel.org/n/tip-3h8xhjd858qf03mnqbmzfvgl@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
tools/build/Makefile.include | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/build/Makefile.include b/tools/build/Makefile.include
index 6572bb023543..4e09ad617a60 100644
--- a/tools/build/Makefile.include
+++ b/tools/build/Makefile.include
@@ -1,6 +1,10 @@
build := -f $(srctree)/tools/build/Makefile.build dir=. obj
+ifdef CROSS_COMPILE
+fixdep:
+else
fixdep:
$(Q)$(MAKE) -C $(srctree)/tools/build fixdep
+endif
.PHONY: fixdep
--
2.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | tip-bot for Jiri Olsa <tipbot@zytor.com> |
|---|---|
| Date | 2015-10-14 15:20 +0200 |
| Subject | [tip:perf/core] tools build: Fix cross compile build |
| Message-ID | <qju8j-81e-51@gated-at.bofh.it> |
| In reply to | #1245677 |
Commit-ID: 3a70fcd3a4db56731f67f0189514953c74257944 Gitweb: http://git.kernel.org/tip/3a70fcd3a4db56731f67f0189514953c74257944 Author: Jiri Olsa <jolsa@redhat.com> AuthorDate: Tue, 13 Oct 2015 14:43:58 +0200 Committer: Arnaldo Carvalho de Melo <acme@redhat.com> CommitDate: Tue, 13 Oct 2015 11:59:43 -0300 tools build: Fix cross compile build He Kuang the new fixdep tool breaks cross compiling. The reason is it wouldn't get compiled under host arch, but under cross arch and failed to run. We need to add support for host side tools build, meanwhile disabling fixdep usage for cross arch builds. Reported-by: He Kuang <hekuang@huawei.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/20151013124358.GB9467@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> --- tools/build/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile.include b/tools/build/Makefile.include index 6572bb0..4e09ad6 100644 --- a/tools/build/Makefile.include +++ b/tools/build/Makefile.include @@ -1,6 +1,10 @@ build := -f $(srctree)/tools/build/Makefile.build dir=. obj +ifdef CROSS_COMPILE +fixdep: +else fixdep: $(Q)$(MAKE) -C $(srctree)/tools/build fixdep +endif .PHONY: fixdep -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web