[gdal-dev] Error on building from master branch on linux
Fengting Chen
fengting.chen at oracle.com
Tue Jul 22 11:15:51 PDT 2025
Hi,
I got the following error while trying to build gdal using “gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-26.0.1)”:
[ 0%] Building CXX object frmts/pdf/CMakeFiles/gdal_PDF_core.dir/ pdfdrivercore.cpp.o
In file included from /usr/include/c++/8/memory:80,
from /scratch/gdal/gdal/port/cpl_error.h:372,
from /scratch/gdal/gdal/gcore/gdal.h:30,
from /scratch/gdal/gdal/gcore/gdal_priv.h:45,
from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.h:16,
from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.cpp:13:
/usr/include/c++/8/bits/unique_ptr.h: In instantiation of ?~@~Xvoid std:: default_delete<_Tp>::operator()(_Tp*) const [with _Tp = GDALRasterAttributeTable]?~@~Y:
/usr/include/c++/8/bits/unique_ptr.h:277:17: required from ?~@~Xstd:: unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = GDALRasterAttributeTable; _Dp = std::default_delete<GDALRasterAttributeTable>]?~@~Y
/scratch/gdal/gdal/gcore/gdal_priv.h:3664:55: required from here
/usr/include/c++/8/bits/unique_ptr.h:79:16: error: invalid application of ?~@~Xsizeof?~@~Y to incomplete type ?~@~XGDALRasterAttributeTable?~@~Y
static_assert(sizeof(_Tp)>0,
^~~~~~~~~~~
gmake[2]: *** [frmts/pdf/CMakeFiles/gdal_PDF_core.dir/build.make:76: frmts/pdf/ CMakeFiles/gdal_PDF_core.dir/pdfdrivercore.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:6099: frmts/pdf/CMakeFiles/gdal_PDF_core. dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Any idea how to fix this?
Thanks,
-Fengting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250722/eb552a36/attachment-0001.htm>
More information about the gdal-dev
mailing list