Skip to contentSkip to conversation

compiling of tools/perf fail on x86 64bit kernel and 32bit userspace

DISCUSSION Riccardo Magliocchetti 2 participants 3 messages May 6, 2011 – May 7, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Riccardo Magliocchetti

Hi,

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

Quoted 14 lines

~/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

#2 lore raw

Hi there,

Il 07/05/2011 06:55, Lin Ming ha scritto:

Quoted 22 lines
Quoted 5 lines · Riccardo Magliocchetti

Hi,

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

Quoted 14 lines

~/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'

Quoted 6 lines

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