[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1020280: mixxx FTBFs on hppa architecture (with patch)



Package: mixxx
Version: 2.3.3~dfsg-1
Severity: important
Tags: hppa, patch, ftbfs

attached patch fixes this build error on hppa:

In file included from /<<PKGBUILDDIR>>/lib/benchmark/src/sysinfo.cc:64:
/<<PKGBUILDDIR>>/lib/benchmark/src/cycleclock.h:219:2: error: #error You need to define CycleTimer for your OS and CPU
  219 | #error You need to define CycleTimer for your OS and CPU

Please include in next upload.
Thanks!
Helge
diff -up ./lib/benchmark/src/cycleclock.h.org ./lib/benchmark/src/cycleclock.h
--- ./lib/benchmark/src/cycleclock.h.org	2022-09-19 06:14:28.454775112 +0000
+++ ./lib/benchmark/src/cycleclock.h	2022-09-19 06:20:45.298702719 +0000
@@ -108,6 +108,10 @@ inline BENCHMARK_ALWAYS_INLINE int64_t N
   int64_t itc;
   asm("mov %0 = ar.itc" : "=r"(itc));
   return itc;
+#elif defined(__hppa__)
+  unsigned long cr16;
+  asm("mfctl 16,%0" : "=r" (cr16));
+  return cr16;
 #elif defined(COMPILER_MSVC) && defined(_M_IX86)
   // Older MSVC compilers (like 7.x) don't seem to support the
   // __rdtsc intrinsic properly, so I prefer to use _asm instead

Reply to: