From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753446AbZKVMCy (ORCPT ); Sun, 22 Nov 2009 07:02:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751479AbZKVMCx (ORCPT ); Sun, 22 Nov 2009 07:02:53 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:41958 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbZKVMCx (ORCPT ); Sun, 22 Nov 2009 07:02:53 -0500 Date: Sun, 22 Nov 2009 13:02:43 +0100 From: Ingo Molnar To: "Michael S. Tsirkin" Cc: Peter Zijlstra , Paul Mackerras , Frederic Weisbecker , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf tools: support static build Message-ID: <20091122120243.GA6217@elte.hu> References: <20091029152002.GA5406@redhat.com> <20091104110604.GE13194@elte.hu> <20091117092331.GA23585@elte.hu> <20091122112726.GC13644@redhat.com> <20091122113942.GD13644@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091122113942.GD13644@redhat.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Michael S. Tsirkin wrote: > Seems to work fine here on a 32 bit Fedora, > provided that I supply NO_64BIT (my kernel > is 64 bit with 32 bit userspace). > > So this worked for me: > [perf]$ $make -s -j LDFLAGS=-static NO_64BIT=yes > Makefile:498: No libdwarf.h found or old libdwarf.h found, disables dwarf support. Please install libdwarf-dev/libdwarf-devel >= 20081231 > PERF_VERSION = 0.0.2.PERF > Makefile:498: No libdwarf.h found or old libdwarf.h found, disables dwarf support. Please install libdwarf-dev/libdwarf-devel >= 20081231 > * new build flags or prefix > /usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libpthread.a(libpthread.o): In function `sem_open': > (.text+0x69ea): warning: the use of `mktemp' is dangerous, better use `mkstemp' > [perf]$ ldd perf > not a dynamic executable > > Ingo, could you please apply my debugging patch and then run with V=2? Still doesnt work here (on a 32-bit/32-bit system, F11) - i've applied your debug patch and added V=2: earth4:~/tip/tools/perf> make -s -j LDFLAGS=-static NO_64BIT=yes V=2 /usr/bin/ld: cannot find -lpthread collect2: ld returned 1 exit status Makefile:493: *** No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel and glibc-dev[el]. Stop. > Btw, why is it a good idea to force 64/32 bit mode? > Why not use the default gcc mode? Sure, we could do that - mind sending a patch for that? Ingo