Source: wham-align
Version: 0.1.5-1
Severity: important
Tags: patch ftbfs

https://buildd.debian.org/status/package.php?p=wham-align&suite=sid

...
pair.h:840:2: error: #error "POPCNT is only supported in Intel X86/IA-64 
architectures"
  840 | #error "POPCNT is only supported in Intel X86/IA-64 architectures"
      |  ^~~~~
...


Fix is attached.
Description: Fix FTBFS on !x86
Author: Adrian Bunk <b...@debian.org>

--- wham-align-0.1.5.orig/pair.h
+++ wham-align-0.1.5/pair.h
@@ -831,6 +831,7 @@ bool  pairAlignEnum(int64 * key, int64 *
     return false;
   }
 
+#if POPCNT
   static inline int64 popcnt(int64 v)
   {
     int64 ret;
@@ -841,6 +842,7 @@ bool  pairAlignEnum(int64 * key, int64 *
 #endif
     return ret;
   }
+#endif
 
   static inline int64 BitCount(int64 x)
   {
--- wham-align-0.1.5.orig/perfcounters.cpp
+++ wham-align-0.1.5/perfcounters.cpp
@@ -4,6 +4,8 @@
 
 #include "perfcounters.h"
 
+#ifdef PERFCOUNT
+
 #if defined(__sparc__)
 #include <iostream>
 using namespace std;
@@ -80,4 +82,6 @@ void PerfCounters::threadinit() {
 #else
 #error Performance counters not known for this architecture.
 #endif
 }
+
+#endif

Reply via email to