#67777 closed defect (fixed)

PDAL: possible to switch to using our Eigen3?

Reported by: barracuda156 Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: powerpc Cc:
Port: PDAL

Description

Bundled Eigen is broken for PPC: it suffers from a bug which has been fixed with upstream Eigen, and our eigen3-devel works fine. So at least it will possible to install eigen3-devel and then build the port.

Change History (4)

comment:1 Changed 16 months ago by barracuda156

:info:build [ 18%] Built target lasdump
:info:build [ 18%] Building CXX object CMakeFiles/pdalcpp.dir/filters/ColorinterpFilter.cpp.o
:info:build /opt/local/bin/g++-mp-12 -DUNIX -Dpdalcpp_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/nlohmann -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/utfcpp/source -I/opt/local/include -I/opt/local/include/libxml2 -pipe -I/opt/local/libexec/openssl3/include -Os -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -g -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 -arch ppc -mmacosx-version-min=10.6 -fPIC -Wno-implicit-fallthrough -Wno-int-in-bool-context -Wno-dangling-else -Wno-noexcept-type -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wno-error=parentheses -Wno-error=cast-qual -Wredundant-decls -Wno-unused-parameter -Wno-unused-variable -Wno-long-long -Wno-unknown-pragmas -Wno-deprecated-declarations -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/pdalcpp.dir/filters/ColorinterpFilter.cpp.o -MF CMakeFiles/pdalcpp.dir/filters/ColorinterpFilter.cpp.o.d -o CMakeFiles/pdalcpp.dir/filters/ColorinterpFilter.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/filters/ColorinterpFilter.cpp
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/Core:203,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/Dense:1,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/pdal/private/MathUtils.hpp:45,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/filters/ApproximateCoplanarFilter.cpp:39:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h: In function 'Packet Eigen::internal::psqrt(const Packet&) [with Packet = eigen_packet_wrapper<__vector(8) short unsigned int, 0>]':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1262:24: error: '__builtin_vsx_xvsqrtsp' requires the '-mvsx' option
:info:build  1262 |   Packet4f op_even = OP(a_even);\
:info:build       |                        ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1296:3: note: in expansion of macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
:info:build  1296 |   BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
:info:build       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1262:24: note: overloaded builtin '__builtin_vec_sqrt' is implemented by builtin '__builtin_vsx_xvsqrtsp'
:info:build  1262 |   Packet4f op_even = OP(a_even);\
:info:build       |                        ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1296:3: note: in expansion of macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
:info:build  1296 |   BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
:info:build       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1263:23: error: '__builtin_vsx_xvsqrtsp' requires the '-mvsx' option
:info:build  1263 |   Packet4f op_odd = OP(a_odd);\
:info:build       |                       ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1296:3: note: in expansion of macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
:info:build  1296 |   BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
:info:build       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1263:23: note: overloaded builtin '__builtin_vec_sqrt' is implemented by builtin '__builtin_vsx_xvsqrtsp'
:info:build  1263 |   Packet4f op_odd = OP(a_odd);\
:info:build       |                       ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_pdal/PDAL/work/PDAL-2.5.5-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1296:3: note: in expansion of macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
:info:build  1296 |   BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
:info:build       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

comment:2 Changed 16 months ago by barracuda156

Looks like it does not have such an option. I will fix PPC build another way.

comment:4 Changed 15 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In fcb6d6c06a317d5322266c2b4b9a28a719b09af1/macports-ports (master):

PDAL: unbreak powerpc build

Fixes: #67777

Note: See TracTickets for help on using tickets.