Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937597 - sci-libs/pdal-2.7.2 fails to build with gcc:15 (error: ‘class xxx has no member named ...)
Summary: sci-libs/pdal-2.7.2 fails to build with gcc:15 (error: ‘class xxx has no me...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Bettler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-08 23:00 UTC by tdr
Modified: 2024-12-13 18:21 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pdal build fail log (pdal-build-fail.log,192.99 KB, text/plain)
2024-08-08 23:02 UTC, tdr
Details
emerge info (emerge--info.txt,6.10 KB, text/plain)
2024-08-11 16:18 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-08-08 23:00:04 UTC
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
Comment 1 tdr 2024-08-08 23:02:40 UTC
Created attachment 899646 [details]
pdal build fail log
Comment 2 Thomas Bettler 2024-08-10 06:55:04 UTC
- 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
Comment 3 tdr 2024-08-11 16:18:39 UTC
Created attachment 899850 [details]
emerge info
Comment 4 tdr 2024-08-11 17:48:20 UTC
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
Comment 5 Thomas Bettler 2024-08-11 19:54:51 UTC
Ted, can you reproduce with standard gcc-13 ? and which are the repro steps for gcc-13 ?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-15 20:31:39 UTC
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.
Comment 8 Thomas Bettler 2024-08-16 11:08:53 UTC
Sam thanks for clarification this will be an issue with gcc-15 only...
Comment 9 Agostino Sarubbo gentoo-dev 2024-09-05 12:13:23 UTC
gcc15_tinderbox has reproduced this issue with version 2.7.2 - Updating summary.
Comment 10 Thomas Bettler 2024-11-21 06:58:37 UTC
does this still reproduce with pdal 2.8.1 ? 

if yes please report upstream to pdal or gcc whichever applies... THX
Comment 11 Thomas Bettler 2024-11-22 17:19:30 UTC
Thanks for your update, great to see it'll be fixed with pdal 2.8.2 :-)