Bug#1075352: osmium-tool: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:39:07 BST 2024


Package: src:osmium-tool
Version: 1.16.0-1
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/osmium-tool_1.16.0-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
In file included from /<<PKGBUILDDIR>>/src/command_export.hpp:34,
                 from /<<PKGBUILDDIR>>/src/commands.cpp:12:
/<<PKGBUILDDIR>>/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/<<PKGBUILDDIR>>/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
[ 30%] Building CXX object src/CMakeFiles/osmium.dir/command_help.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT src/CMakeFiles/osmium.dir/command_help.cpp.o -MF CMakeFiles/osmium.dir/command_help.cpp.o.d -o CMakeFiles/osmium.dir/command_help.cpp.o -c /<<PKGBUILDDIR>>/src/command_help.cpp
[ 31%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/io.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/io.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/io.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/io.cpp.o -c /<<PKGBUILDDIR>>/src/io.cpp
make[3]: *** [src/CMakeFiles/osmium.dir/build.make:93: src/CMakeFiles/osmium.dir/commands.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 32%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/util.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/util.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/util.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/util.cpp.o -c /<<PKGBUILDDIR>>/src/util.cpp
[ 33%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/command_help.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/command_help.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/command_help.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/command_help.cpp.o -c /<<PKGBUILDDIR>>/src/command_help.cpp
[ 33%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/option_clean.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/option_clean.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/option_clean.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/option_clean.cpp.o -c /<<PKGBUILDDIR>>/src/option_clean.cpp
[ 34%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/export/export_format_json.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/export/export_format_json.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/export/export_format_json.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/export/export_format_json.cpp.o -c /<<PKGBUILDDIR>>/src/export/export_format_json.cpp
[ 35%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/export/export_format_pg.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/export/export_format_pg.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/export/export_format_pg.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/export/export_format_pg.cpp.o -c /<<PKGBUILDDIR>>/src/export/export_format_pg.cpp
[ 36%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/export/export_format_spaten.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/export/export_format_spaten.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/export/export_format_spaten.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/export/export_format_spaten.cpp.o -c /<<PKGBUILDDIR>>/src/export/export_format_spaten.cpp
[ 36%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/export/export_format_text.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/export/export_format_text.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/export/export_format_text.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/export/export_format_text.cpp.o -c /<<PKGBUILDDIR>>/src/export/export_format_text.cpp
[ 37%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/export/export_handler.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/export/export_handler.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/export/export_handler.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/export/export_handler.cpp.o -c /<<PKGBUILDDIR>>/src/export/export_handler.cpp
In file included from /usr/include/osmium/tags/tags_filter.hpp:36,
                 from /<<PKGBUILDDIR>>/src/export/options.hpp:26,
                 from /<<PKGBUILDDIR>>/src/export/export_format.hpp:26,
                 from /<<PKGBUILDDIR>>/src/export/export_format_spaten.hpp:4,
                 from /<<PKGBUILDDIR>>/src/export/export_format_spaten.cpp:2:
In static member function ‘static const unsigned char* osmium::Tag::after_null(const unsigned char*)’,
    inlined from ‘const unsigned char* osmium::Tag::next() const’ at /usr/include/osmium/osm/tag.hpp:66:30,
    inlined from ‘osmium::memory::CollectionIterator<TMember>& osmium::memory::CollectionIterator<TMember>::operator++() [with TMember = const osmium::Tag]’ at /usr/include/osmium/memory/collection.hpp:73:66,
    inlined from ‘bool ExportFormat::add_tags(const osmium::OSMObject&, TFunc&&) [with TFunc = ExportFormatSpaten::write_tags(const osmium::OSMObject&, protozero::pbf_builder<spaten_pbf::Feature>&)::<lambda(const osmium::Tag&)>]’ at /<<PKGBUILDDIR>>/src/export/export_format.hpp:75:9,
    inlined from ‘bool ExportFormatSpaten::write_tags(const osmium::OSMObject&, protozero::pbf_builder<spaten_pbf::Feature>&)’ at /<<PKGBUILDDIR>>/src/export/export_format_spaten.cpp:210:35:
/usr/include/osmium/osm/tag.hpp:58:113: warning: offset ‘5’ outside bounds of constant string [-Warray-bounds=]
   58 |             return reinterpret_cast<const unsigned char*>(std::strchr(reinterpret_cast<const char*>(ptr), 0) + 1);
      |                                                                                                                 ^
[ 38%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/extract/extract_bbox.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/extract/extract_bbox.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/extract/extract_bbox.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/extract/extract_bbox.cpp.o -c /<<PKGBUILDDIR>>/src/extract/extract_bbox.cpp
[ 39%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/extract/extract_polygon.cpp.o
[ 39%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/extract/extract.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/extract/extract.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/extract/extract.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/extract/extract.cpp.o -c /<<PKGBUILDDIR>>/src/extract/extract.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/extract/extract_polygon.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/extract/extract_polygon.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/extract/extract_polygon.cpp.o -c /<<PKGBUILDDIR>>/src/extract/extract_polygon.cpp
[ 40%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/extract/geojson_file_parser.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/extract/geojson_file_parser.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/extract/geojson_file_parser.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/extract/geojson_file_parser.cpp.o -c /<<PKGBUILDDIR>>/src/extract/geojson_file_parser.cpp
In file included from /<<PKGBUILDDIR>>/src/extract/geojson_file_parser.hpp:28,
                 from /<<PKGBUILDDIR>>/src/extract/geojson_file_parser.cpp:23:
/<<PKGBUILDDIR>>/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/<<PKGBUILDDIR>>/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
[ 41%] Building CXX object test/CMakeFiles/unit_tests.dir/__/src/extract/geometry_util.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/test/include -I/<<PKGBUILDDIR>>/test/../src -I/<<PKGBUILDDIR>>/test/../src/extract -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -pthread -std=c++14 -MD -MT test/CMakeFiles/unit_tests.dir/__/src/extract/geometry_util.cpp.o -MF CMakeFiles/unit_tests.dir/__/src/extract/geometry_util.cpp.o.d -o CMakeFiles/unit_tests.dir/__/src/extract/geometry_util.cpp.o -c /<<PKGBUILDDIR>>/src/extract/geometry_util.cpp
make[3]: *** [test/CMakeFiles/unit_tests.dir/build.make:303: test/CMakeFiles/unit_tests.dir/__/src/extract/geojson_file_parser.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:558: src/CMakeFiles/osmium.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:584: test/CMakeFiles/unit_tests.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-grass-devel mailing list