Skip to contentSkip to conversation

no 32-bit support on LE powerpc64le

PATCH than 1 participant 1 message Jun 2, 2015 perf events

lore
Share & tools
lore

than

author
#0 lore raw

Hello all,

we have a problem to build kernel-4.0 on ppc64le. The real problem is that there's no 32 bit code generator support in gcc on the ppc64le. So the option NO_PERF_READ_VDSO32 should be set to 1 on ppc64le.

I have create a patch which fixes the issue for me.

tools/perf/config/Makefile 2015-06-02 12:31:04.898865043 +0200 renamed from tools/perf/config/Makefile.than 2015-06-02 11:58:17.525763988 +0200 +3 -0
diff -Nur linux-4.0/tools/perf/config/Makefile.than linux-4.0/tools/perf/config/Makefile
@@ -642,6 +642,9 @@
     CFLAGS += -DHAVE_KVM_STAT_SUPPORT
 endif
 
+ifeq ($(ARCH),ppc64le)
+  NO_PERF_READ_VDSO32 := 1
+endif
 ifeq (${IS_64_BIT}, 1)
   ifndef NO_PERF_READ_VDSO32
     $(call feature_check,compile-32)

For more infos please take a look at https://bugzilla.redhat.com/show_bug.cgi?id=1227260

Thanks,

Best Regards,
Than