From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752874AbbI3DSo (ORCPT ); Tue, 29 Sep 2015 23:18:44 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:17337 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbbI3DSl (ORCPT ); Tue, 29 Sep 2015 23:18:41 -0400 To: CC: David Ahern , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo , , Wang Nan From: He Kuang Subject: [BUG] perf cross-compile error dual to fixdep not host-exe Message-ID: <560B547C.6080205@huawei.com> Date: Wed, 30 Sep 2015 11:18:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.110.54.65] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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