<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hi,</div>
<div>I'm trying to build GDAL 2.4.1 with gcc 8.3.0 on a CentOS 7 system. However, I get the below error. Any ideas on how to proceed? This works fine with older gcc, e.g., 5.4<br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Chris</div>
<div><br>
</div>
<div><br>
</div>
<div>$ uname -a<br>
Linux gra-login3 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 GNU/Linux</div>
<div><br>
</div>
<div>configure command:</div>
<div>CXXFLAGS=-DDONT_DEPRECATE_SPRINTF ./configure --prefix=${CMAKE_BINARY_DIR}/lib/gdal --with-static-proj4=${CMAKE_BINARY_DIR}/lib/proj4 --without-hdf5 --without-netcdf<br>
<br>
</div>
<div>The error:</div>
<div><br>
</div>
<div>bin/sh /home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/libtool --mode=compile --silent --tag=CXX g++ -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/port -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/gcore -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/alg
-I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/ogr -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/ogr/ogrsf_frmts -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/gnm -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/apps -DHAVE_AVX_AT_COMPILE_TIME
-DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -DDONT_DEPRECATE_SPRINTF -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond
-Wextra-semi -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough -I.. -I/usr/include -DGNM_ENABLED -I/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/port
-I/cvmfs/<a href="http://soft.computecanada.ca/nix/store/k8yicfria8gwr06km6qda1mdm9kz1h7r-openjpeg-2.3.0-dev/include/openjpeg-2.3">soft.computecanada.ca/nix/store/k8yicfria8gwr06km6qda1mdm9kz1h7r-openjpeg-2.3.0-dev/include/openjpeg-2.3</a> -DGDAL_COMPILATION
-DHAVE_PCRE -DSQLITE_HAS_COLUMN_METADATA -c -o ../o/ogrsqliteexecutesql.lo ogrsqliteexecutesql.cpp<br>
In file included from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/cstdlib:75">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/cstdlib:75</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/ext/string_conversions.h:41">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/ext/string_conversions.h:41</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/bits/basic_string.h:6400">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/bits/basic_string.h:6400</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/string:52">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/string:52</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/stdexcept:39">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/stdexcept:39</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/array:39">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/array:39</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/tuple:39">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/tuple:39</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/bits/stl_map.h:63">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/bits/stl_map.h:63</a>,<br>
from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/map:61">soft.computecanada.ca/nix/var/nix/profiles/gcc-8.3.0/include/c++/8.3.0/map:61</a>,<br>
from ogr_sqlite.h:35,<br>
from ogrsqliteexecutesql.cpp:29:<br>
/cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/16.09/include/stdlib.h:471:35">soft.computecanada.ca/nix/var/nix/profiles/16.09/include/stdlib.h:471:35</a>:
<br>
__THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur;<br>
^~~~~~~~~~~~~~~~~~~~~~~~<br>
make[3]: *** [../../../GDALmake.opt:670: ../o/ogrsqliteexecutesql.lo] Error 1<br>
make[3]: Leaving directory '/home/cmarsh/build-test/lib/GDAL-prefix/src/GDAL/ogr/ogrsf_frmts/sqlite'<br>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>