lkml.org 
[lkml]   [2009]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] perf build questions
On Tue, Oct 06, 2009 at 10:26:26AM -0700, Randy Dunlap wrote:
> $ make NO_64BIT=1 all
> $ file perf
> perf: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not stripped
>
>
> Shouldn't that be a 32-bit executable for i386?
> Am I confused? (you don't have to answer that)
>

Are you running a 32-bit userspace, with x86_64 kernel? Or running
x86_64 userspace as well and trying to crossbuild for i386? In the
latter case NO_64BIT won't do what you hope, it's to avoid trying to
build a 64-bit binary in the former case.

You could force -m32 into CFLAGS in the second case, but unless you have
the proper i386 bi-arch toolchain installed (glibc, etc.) it likely
won't build...

regards, Kyle


\
 
 \ /
  Last update: 2009-10-06 20:13    [W:0.100 / U:2.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site