Skip to contentSkip to conversation

perf not compiling on 64bit kernel 32bit userspace

PATCH Riccardo Magliocchetti 1 participant 1 message May 4, 2014 perf events

lore
Share & tools
lore
#0 lore raw

Hello,

compiling perf on 32 bit userspace and 64 bit kernel fails on x86 because x86-64 assembly is compiled in:

CC bench/mem-memcpy-x86-64-asm.o
CC bench/mem-memset-x86-64-asm.o
bench/../../../arch/x86/lib/memcpy_64.S: Assembler messages:
bench/../../../arch/x86/lib/memcpy_64.S:29: Error: bad register name `%rdi'

Switching the check from RAW_ARCH to ARCH does the trick here on 3.14.2. If someone could please take care of fixing Linus' master and add this to the stable queue it would be much appreciated.

Thanks!

tools/perf/Makefile.perf +1 -1
index 7257e7e..00f632f 100644
@@ -414,7 +414,7 @@ BUILTIN_OBJS += $(OUTPUT)builtin-bench.o
 # Benchmark modules
 BUILTIN_OBJS += $(OUTPUT)bench/sched-messaging.o
 BUILTIN_OBJS += $(OUTPUT)bench/sched-pipe.o
-ifeq ($(RAW_ARCH),x86_64)
+ifeq ($(ARCH),x86_64)
 BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy-x86-64-asm.o
 BUILTIN_OBJS += $(OUTPUT)bench/mem-memset-x86-64-asm.o
 endif
Signature · 1 line
Riccardo Magliocchetti