Bug#942113: 3depict: FTBFS on PPC64EL - POWERPC macro not always defined

Thierry Fauck@linux.ibm.com thierry at linux.ibm.com
Thu Oct 10 15:02:42 BST 2019


Package: 3depict
Version 0.0.22-1
Severity: normal


The error when compiling on ppc64el:

g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -I/usr/include/libpng16 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security --std=gnu++11   -I/usr/lib/powerpc64le-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -I/usr/include  -I/usr/include/libxml2 -L/lib -fopenmp -D_GLIBCXX_PARALLEL  -pipe  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security --std=gnu++11 -c -o backend/3Depict-viscontrol.o `test -f 'backend/viscontrol.cpp' || echo './'`backend/viscontrol.cpp
In file included from /usr/include/qhull/qhull_a.h:28,
                 from backend/filters/algorithms/spatial.cpp:29:
/usr/include/qhull/libqhull.h:46:30: error: operator '&&' has no right operand
   46 | #if __MWERKS__ && __POWERPC__
      |                              ^ 
is due to the fact that __POWERPC__ macro is not defined by default on g++

A see a couple of solutions I have tested ,
- define __POWERPC__   before including  qhull_a.h
- or have the included library qhull_a.h using __powerpc__ instead of __POWERPC__

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20191010/fd310cdc/attachment-0001.html>


More information about the debian-science-maintainers mailing list