Skip to content

Commit

Permalink
math/pdal: fix build on powerpc64
Browse files Browse the repository at this point in the history
vec_sqrt() requires VSX:
/wrkdirs/usr/ports/math/pdal/work/PDAL-2.3.0/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1296:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrte'?
  BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
                               ^~~~~~~~
                               vec_rsqrte
  • Loading branch information
pkubaj committed Oct 22, 2021
1 parent 828299c commit 4042b3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions math/pdal/Makefile
Expand Up @@ -68,6 +68,8 @@ MBIO_CMAKE_BOOL= BUILD_PLUGIN_MBIO
PGPOINTCLOUD_CMAKE_BOOL= BUILD_PLUGIN_PGPOINTCLOUD
PGPOINTCLOUD_USES= pgsql

CXXFLAGS_powerpc64= -mvsx

post-install-BASH-on:
${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
${INSTALL_DATA} ${WRKSRC}/scripts/bash-completion/pdal \
Expand Down

0 comments on commit 4042b3c

Please sign in to comment.