Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1235726 > unrolled thread
| Started by | He Kuang <hekuang@huawei.com> |
|---|---|
| First post | 2015-09-30 05:20 +0200 |
| Last post | 2015-09-30 08:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[BUG] perf cross-compile error dual to fixdep not host-exe He Kuang <hekuang@huawei.com> - 2015-09-30 05:20 +0200
Re: [BUG] perf cross-compile error dual to fixdep not host-exe Jiri Olsa <jolsa@redhat.com> - 2015-09-30 08:20 +0200
| From | He Kuang <hekuang@huawei.com> |
|---|---|
| Date | 2015-09-30 05:20 +0200 |
| Subject | [BUG] perf cross-compile error dual to fixdep not host-exe |
| Message-ID | <qeg5X-10c-3@gated-at.bofh.it> |
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
Thank you
--
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-09-30 08:20 +0200 |
| Message-ID | <qeiUa-53l-11@gated-at.bofh.it> |
| In reply to | #1235726 |
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
---
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] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web