Source: aspectc++
Version: 2.0+svn20160329
Severity: normal
Tags: patch

Dear Maintainer,

The package aspectc++ fails to build from source on ppc64el.

The error begins at:
  error: '__Call__ZN4Puma7CSyntax13gnu_attributeEv_1_1' was not declared in 
this scope

Full log:
https://buildd.debian.org/status/fetch.php?pkg=aspectc%2B%2B&arch=ppc64el&ver=1%3A2.0%2Bsvn20160329-1&stamp=1460486482

This is because altivec is enabled by default on ppc64el and it defines
the word 'bool' as a macro.

The patch attached corrects that without disabling altivec, which could
affect performance.

Thanks

Fernando
Index: aspectc++-2.0+svn20160329/Puma/src/parser/cparser/CSyntax.cc
===================================================================
--- aspectc++-2.0+svn20160329.orig/Puma/src/parser/cparser/CSyntax.cc
+++ aspectc++-2.0+svn20160329/Puma/src/parser/cparser/CSyntax.cc
@@ -21,6 +21,11 @@
 #include "Puma/CTokens.h"
 #include "Puma/CTree.h"
 
+#if defined(__powerpc64__) && defined(__ALTIVEC__)
+# include <altivec.h>
+# undef bool
+#endif
+
 namespace Puma {
 
 

Reply via email to