<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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)”:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[ 0%] Building CXX object frmts/pdf/CMakeFiles/gdal_PDF_core.dir/ pdfdrivercore.cpp.o<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">In file included from /usr/include/c++/8/memory:80,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/port/cpl_error.h:372,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/gcore/gdal.h:30,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/gcore/gdal_priv.h:45,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.h:16,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.cpp:13:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/usr/include/c++/8/bits/unique_ptr.h: In instantiation of ?~@~Xvoid std:: default_delete<_Tp>::operator()(_Tp*) const [with _Tp = GDALRasterAttributeTable]?~@~Y:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/scratch/gdal/gdal/gcore/gdal_priv.h:3664:55: required from here<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/usr/include/c++/8/bits/unique_ptr.h:79:16: error: invalid application of ?~@~Xsizeof?~@~Y to incomplete type ?~@~XGDALRasterAttributeTable?~@~Y<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> static_assert(sizeof(_Tp)>0,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ^~~~~~~~~~~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake[2]: *** [frmts/pdf/CMakeFiles/gdal_PDF_core.dir/build.make:76: frmts/pdf/ CMakeFiles/gdal_PDF_core.dir/pdfdrivercore.cpp.o] Error 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake[1]: *** [CMakeFiles/Makefile2:6099: frmts/pdf/CMakeFiles/gdal_PDF_core. dir/all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake: *** [Makefile:146: all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any idea how to fix this? <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-Fengting<o:p></o:p></span></p>
</div>
</body>
</html>