linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* compiling of tools/perf fail on x86 64bit kernel and 32bit userspace
@ 2011-05-06 16:54 Riccardo Magliocchetti
  2011-05-07  4:55 ` Lin Ming
  0 siblings, 1 reply; 3+ messages in thread
From: Riccardo Magliocchetti @ 2011-05-06 16:54 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Peter Zijlstra, Arnaldo Carvalho de Melo, Ingo Molnar

Hi,

with latest git, i cannot compile perf on 32 bit userspace with a 64 bit 
kernel.

~/src/linux-2.6/tools/perf$ make
PERF_VERSION = 2.6.39.rc6.224.g06d006f
     GEN common-cmds.h
     * new build flags or prefix
     CC perf.o
     CC builtin-annotate.o
     CC builtin-bench.o
     CC bench/sched-messaging.o
     CC bench/sched-pipe.o
     CC bench/mem-memcpy-x86-64-asm.o
bench/../../../arch/x86/lib/memcpy_64.S: Assembler messages:
bench/../../../arch/x86/lib/memcpy_64.S:28: Error: bad register name `%rdi'
bench/../../../arch/x86/lib/memcpy_64.S:33: Error: invalid instruction 
suffix for `movs'

ARCH=x86 make works fine

thanks,
riccardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: compiling of tools/perf fail on x86 64bit kernel and 32bit userspace
  2011-05-06 16:54 compiling of tools/perf fail on x86 64bit kernel and 32bit userspace Riccardo Magliocchetti
@ 2011-05-07  4:55 ` Lin Ming
  2011-05-07 14:46   ` Riccardo Magliocchetti
  0 siblings, 1 reply; 3+ messages in thread
From: Lin Ming @ 2011-05-07  4:55 UTC (permalink / raw)
  To: Riccardo Magliocchetti
  Cc: Linux Kernel Mailing List, Peter Zijlstra,
	Arnaldo Carvalho de Melo, Ingo Molnar

On Sat, May 7, 2011 at 12:54 AM, Riccardo Magliocchetti
<riccardo.magliocchetti@gmail.com> wrote:
> Hi,
>
> with latest git, i cannot compile perf on 32 bit userspace with a 64 bit
> kernel.
>
> ~/src/linux-2.6/tools/perf$ make
> PERF_VERSION = 2.6.39.rc6.224.g06d006f
>    GEN common-cmds.h
>    * new build flags or prefix
>    CC perf.o
>    CC builtin-annotate.o
>    CC builtin-bench.o
>    CC bench/sched-messaging.o
>    CC bench/sched-pipe.o
>    CC bench/mem-memcpy-x86-64-asm.o
> bench/../../../arch/x86/lib/memcpy_64.S: Assembler messages:
> bench/../../../arch/x86/lib/memcpy_64.S:28: Error: bad register name `%rdi'
> bench/../../../arch/x86/lib/memcpy_64.S:33: Error: invalid instruction
> suffix for `movs'

Hi,

I just send out a patch to fix this.
https://lkml.org/lkml/2011/5/7/4

Could you have a try it?

Thanks,
Lin Ming

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: compiling of tools/perf fail on x86 64bit kernel and 32bit userspace
  2011-05-07  4:55 ` Lin Ming
@ 2011-05-07 14:46   ` Riccardo Magliocchetti
  0 siblings, 0 replies; 3+ messages in thread
From: Riccardo Magliocchetti @ 2011-05-07 14:46 UTC (permalink / raw)
  To: Lin Ming
  Cc: Linux Kernel Mailing List, Peter Zijlstra,
	Arnaldo Carvalho de Melo, Ingo Molnar

Hi there,

Il 07/05/2011 06:55, Lin Ming ha scritto:
> On Sat, May 7, 2011 at 12:54 AM, Riccardo Magliocchetti
> <riccardo.magliocchetti@gmail.com>  wrote:
>> Hi,
>>
>> with latest git, i cannot compile perf on 32 bit userspace with a 64 bit
>> kernel.
>>
>> ~/src/linux-2.6/tools/perf$ make
>> PERF_VERSION = 2.6.39.rc6.224.g06d006f
>>     GEN common-cmds.h
>>     * new build flags or prefix
>>     CC perf.o
>>     CC builtin-annotate.o
>>     CC builtin-bench.o
>>     CC bench/sched-messaging.o
>>     CC bench/sched-pipe.o
>>     CC bench/mem-memcpy-x86-64-asm.o
>> bench/../../../arch/x86/lib/memcpy_64.S: Assembler messages:
>> bench/../../../arch/x86/lib/memcpy_64.S:28: Error: bad register name `%rdi'
>> bench/../../../arch/x86/lib/memcpy_64.S:33: Error: invalid instruction
>> suffix for `movs'
>
> Hi,
>
> I just send out a patch to fix this.
> https://lkml.org/lkml/2011/5/7/4
>
> Could you have a try it?

Works fine, thanks!

riccardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-07 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 16:54 compiling of tools/perf fail on x86 64bit kernel and 32bit userspace Riccardo Magliocchetti
2011-05-07  4:55 ` Lin Ming
2011-05-07 14:46   ` Riccardo Magliocchetti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).