[MacPorts] #68734: gdal @3.8.0 is broken with gcc due to missing header: note: 'PRIu64' is defined in header '<cinttypes>'; did you forget to '#include <cinttypes>'?
MacPorts
noreply at macports.org
Sun Nov 19 04:51:31 UTC 2023
#68734: gdal @3.8.0 is broken with gcc due to missing header: note: 'PRIu64' is
defined in header '<cinttypes>'; did you forget to '#include <cinttypes>'?
--------------------------+----------------------
Reporter: barracuda156 | Owner: nilason
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: gdal
--------------------------+----------------------
{{{
:info:build [ 79%] Building CXX object
gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_eros.cpp.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/gcore/mdreader
&& /opt/local/bin/g++-mp-13 -DDONT_DEPRECATE_SPRINTF -DGDAL_COMPILATION
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/apps
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/alg
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/gcore
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/gcore
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/port
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/port
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/frmts
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/generic
-pipe -DGDAL_COMPILATION -DNDEBUG -I/opt/local/include
-I/opt/local/include/LegacySupport -D_GLIBCXX_USE_CXX11_ABI=0
-fvisibility=hidden -std=gnu++14 -arch ppc -mmacosx-version-min=10.6 -fPIC
-MD -MT gcore/mdreader/CMakeFiles/gcore_mdreader.dir/reader_eros.cpp.o -MF
CMakeFiles/gcore_mdreader.dir/reader_eros.cpp.o.d -o
CMakeFiles/gcore_mdreader.dir/reader_eros.cpp.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/gcore/mdreader/reader_eros.cpp
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/wrapper.cpp:3:
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:
In function 'bool gdal_sqlite_rtree_bl_from_feature_table(sqlite3*, const
char*, const char*, const char*, const char*, const char*, const char*,
const char*, const char*, const char*, size_t, char**,
sqlite_rtree_progress_callback, void*)':
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:972:25:
error: expected ')' before 'PRIu64'
:info:build 972 | "%" PRIu64 " rows inserted in %s
(in RAM)",
:info:build | ^~~~~~~
:info:build | )
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:971:21:
note: to match this '('
:info:build 971 | snprintf(szMsg, sizeof(szMsg),
:info:build | ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:44:1:
note: 'PRIu64' is defined in header '<cinttypes>'; did you forget to
'#include <cinttypes>'?
:info:build 43 | #include <algorithm>
:info:build +++ |+#include <cinttypes>
:info:build 44 | #else
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:972:23:
warning: spurious trailing '%' in format [-Wformat=]
:info:build 972 | "%" PRIu64 " rows inserted in %s
(in RAM)",
:info:build | ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:972:22:
warning: too many arguments for format [-Wformat-extra-args]
:info:build 972 | "%" PRIu64 " rows inserted in %s
(in RAM)",
:info:build | ^~~
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1038:29:
error: expected ')' before 'PRIu64'
:info:build 1038 | "%" PRIu64 " rows inserted in
%s", nRows, rtree_name);
:info:build | ^~~~~~~
:info:build | )
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1037:25:
note: to match this '('
:info:build 1037 | snprintf(szMsg, sizeof(szMsg),
:info:build | ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1038:30:
note: 'PRIu64' is defined in header '<cinttypes>'; did you forget to
'#include <cinttypes>'?
:info:build 1038 | "%" PRIu64 " rows inserted in
%s", nRows, rtree_name);
:info:build | ^~~~~~
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1038:27:
warning: spurious trailing '%' in format [-Wformat=]
:info:build 1038 | "%" PRIu64 " rows inserted in
%s", nRows, rtree_name);
:info:build | ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1038:26:
warning: too many arguments for format [-Wformat-extra-args]
:info:build 1038 | "%" PRIu64 " rows inserted in
%s", nRows, rtree_name);
:info:build | ^~~
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1053:43:
error: expected ')' before 'PRIu64'
:info:build 1053 | snprintf(szMsg, sizeof(szMsg), "%" PRIu64 "
rows inserted in %s",
:info:build | ~ ^~~~~~~
:info:build | )
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1053:44:
note: 'PRIu64' is defined in header '<cinttypes>'; did you forget to
'#include <cinttypes>'?
:info:build 1053 | snprintf(szMsg, sizeof(szMsg), "%" PRIu64 "
rows inserted in %s",
:info:build | ^~~~~~
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1053:41:
warning: spurious trailing '%' in format [-Wformat=]
:info:build 1053 | snprintf(szMsg, sizeof(szMsg), "%" PRIu64 "
rows inserted in %s",
:info:build | ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c:1053:40:
warning: too many arguments for format [-Wformat-extra-args]
:info:build 1053 | snprintf(szMsg, sizeof(szMsg), "%" PRIu64 "
rows inserted in %s",
:info:build | ^~~
:info:build [ 79%] Building CXX object
ogr/ogrsf_frmts/cad/libopencad/CMakeFiles/libopencad.dir/dwg/io.cpp.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/ogr/ogrsf_frmts/cad/libopencad
&& /opt/local/bin/g++-mp-13 -DDONT_DEPRECATE_SPRINTF -DGDAL_COMPILATION
-DOCAD_EXTERN=""
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/port
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build/port
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/cad
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/cad/libopencad
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/cad/libopencad/dwg
-pipe -DGDAL_COMPILATION -DNDEBUG -I/opt/local/include
-I/opt/local/include/LegacySupport -D_GLIBCXX_USE_CXX11_ABI=0
-fvisibility=hidden -std=gnu++14 -arch ppc -mmacosx-version-min=10.6 -fPIC
-Wall -Wextra -Winit-self -Wunused-parameter -Wmissing-declarations
-Wlogical-op -Wshadow -Wmissing-include-dirs -Wformat -Werror=format-
security -Wno-format-nonliteral -Werror=vla -Wno-clobbered -Wdate-time
-Wnull-dereference -Wextra-semi -Wfloat-conversion -Wnon-virtual-dtor
-Woverloaded-virtual -Wsuggest-override -fno-operator-names -Wzero-as-
null-pointer-constant -Wold-style-cast -MD -MT
ogr/ogrsf_frmts/cad/libopencad/CMakeFiles/libopencad.dir/dwg/io.cpp.o -MF
CMakeFiles/libopencad.dir/dwg/io.cpp.o.d -o
CMakeFiles/libopencad.dir/dwg/io.cpp.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.8.0/ogr/ogrsf_frmts/cad/libopencad/dwg/io.cpp
:info:build make[2]: ***
[ogr/ogrsf_frmts/sqlite/CMakeFiles/ogr_SQLite.dir/sqlite_rtree_bulk_load/wrapper.cpp.o]
Error 1
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/build'
:info:build make[1]: ***
[ogr/ogrsf_frmts/sqlite/CMakeFiles/ogr_SQLite.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68734>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list