[gdal-dev] Error on building from master branch on linux
Even Rouault
even.rouault at spatialys.com
Tue Jul 22 12:33:34 PDT 2025
Fengting,
I guess you can workaround the issue by adding a #include "gdal_rat.h"
at top of gdal_priv.h (shouldn't be required as GDALExtendedDataType
declares a destructor, so I guess your compiler is more demanding than
strictly needed)
Even
Le 22/07/2025 à 20:15, Fengting Chen via gdal-dev a écrit :
>
> 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
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250722/85bd01c5/attachment.htm>
More information about the gdal-dev
mailing list