From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752729Ab3JUFxr (ORCPT ); Mon, 21 Oct 2013 01:53:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:60685 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634Ab3JUFxq (ORCPT ); Mon, 21 Oct 2013 01:53:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,535,1378882800"; d="scan'208";a="422142819" Message-ID: <5264C140.1020903@intel.com> Date: Mon, 21 Oct 2013 08:53:04 +0300 From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Jiri Olsa CC: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, David Ahern , Frederic Weisbecker , Mike Galbraith , Namhyung Kim , Paul Mackerras , Stephane Eranian Subject: Re: [PATCH 09/19] perf tools: Fix 32-bit cross build References: <1382099356-4918-1-git-send-email-adrian.hunter@intel.com> <1382099356-4918-10-git-send-email-adrian.hunter@intel.com> <20131020204251.GA12044@krava> In-Reply-To: <20131020204251.GA12044@krava> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/10/13 23:42, Jiri Olsa wrote: > On Fri, Oct 18, 2013 at 03:29:06PM +0300, Adrian Hunter wrote: >> Setting EXTRA_CFLAGS=-m32 did not work because CFLAGS >> was not passed around. > > this breaks feature detection for me on x86_64, > I've got following errors misdetection with this patch: > > ... libperl: [ OFF ] > ... on-exit: [ OFF ] > > and the build fails as well: > > CC builtin-stat.o > builtin-record.c:42:12: error: static declaration of ‘on_exit’ follows non-static declaration > In file included from util/util.h:51:0, > from builtin.h:4, > from builtin-record.c:8: > /usr/include/stdlib.h:536:12: note: previous declaration of ‘on_exit’ was here > make[1]: *** [builtin-record.o] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make: *** [all] Error 2 That is fixed in patch 11: perf tools: Fix test_on_exit for 32-bit build