error: ‘class SparseMatrix<T>’ has no member named ‘m_N’ error: ‘class PlyOrientedVertex<Real>’ has no member named ‘value’ Reproducible: Always Actual Results: FAILED: CMakeFiles/pdalcpp.dir/filters/PoissonFilter.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DUNIX -Dpdalcpp_EXPORTS -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/gtest/include -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/gtest -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src_build/include -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/eigen -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/nlohmann -I/var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/utfcpp/source -I/usr/include/libxml2 -I/usr/include/gdal -march=native -O3 -flto=jobserver -mprefer-vector-width=512 -fno-vect-cost-model -pipe -std=c++17 -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 -Wno-pedantic -MD -MT CMakeFiles/pdalcpp.dir/filters/PoissonFilter.cpp.o -MF CMakeFiles/pdalcpp.dir/filters/PoissonFilter.cpp.o.d -o CMakeFiles/pdalcpp.dir/filters/PoissonFilter.cpp.o -c /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/filters/PoissonFilter.cpp In file included from /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/SparseMatrix.h:189, from /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/MultiGridOctreeData.h:64, from /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/PoissonRecon.h:50, from /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/filters/PoissonFilter.cpp:39: /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/SparseMatrix.inl: In member function ‘void SparseMatrix<T>::SetZero()’: /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/SparseMatrix.inl:195:18: error: ‘class SparseMatrix<T>’ has no member named ‘m_N’ 195 | Resize(this->m_N, this->m_M); | ^~~ /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/SparseMatrix.inl:195:29: error: ‘class SparseMatrix<T>’ has no member named ‘m_M’ 195 | Resize(this->m_N, this->m_M); | ^~~ In file included from /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/MultiGridOctreeData.IsoSurface.inl:36, from /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/MultiGridOctreeData.h:1001: /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/Ply.h: In member function ‘PlyOrientedVertex<Real> PlyOrientedVertex<Real>::operator-(PlyOrientedVertex<Real>) const’: /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/Ply.h:320:104: error: ‘class PlyOrientedVertex<Real>’ has no member named ‘value’ 320 | PlyOrientedVertex operator - ( PlyOrientedVertex p ) const { return PlyOrientedVertex( point-p.value , normal-p.normal ); } | ^~~~~ /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/Ply.h: In member function ‘PlyColorVertex<Real>::_PlyColorVertex PlyColorVertex<Real>::_PlyColorVertex::operator-(PlyColorVertex<Real>::_PlyColorVertex) const’: /var/tmp/portage/sci-libs/pdal-2.6.2/work/PDAL-2.6.2-src/vendor/kazhdan/Ply.h:366:106: error: ‘struct PlyColorVertex<Real>::_PlyColorVertex’ has no member named ‘value’ 366 | _PlyColorVertex operator - ( _PlyColorVertex p ) const { return _PlyColorVertex( point-p.value , color-p.color ); } | ^~~~~ The error message is reproducible using gcc-13/14/15
Created attachment 899646 [details] pdal build fail log
- can you add your emerge info in an attachment? - can you try to reproduce on clean gentoo package tree and post your repro steps? - you most probably run an incopatible combination of compiler and packages... feel free to report any discovered bugs upstream. - currently unable to reproduce the reported message here on stable gentoo package tree using stable gcc-13.3.1_p20240614
Created attachment 899850 [details] emerge info
Thomas, gcc-13.3.1_p20240614 used to test reproducing the failure is far less strict. Build env for this is a gcc-15 chroot
Ted, can you reproduce with standard gcc-13 ? and which are the repro steps for gcc-13 ?
You won't be able to reproduce this with GCC 13 or GCC 14. GCC 15 now diagnoses failed lookups in non-instantiated templates since r15-2117-g313afcfdabeab3 [0]. This exposes broken latent code. [0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=r15-2117-g313afcfdabeab3. Clang 19 does the same.
https://github.com/PDAL/PDAL/blob/master/vendor/kazhdan/Ply.h#L366
Sam thanks for clarification this will be an issue with gcc-15 only...
gcc15_tinderbox has reproduced this issue with version 2.7.2 - Updating summary.
does this still reproduce with pdal 2.8.1 ? if yes please report upstream to pdal or gcc whichever applies... THX
Thanks for your update, great to see it'll be fixed with pdal 2.8.2 :-)