Debian Bug report logs - #1097170
libcitygml: ftbfs with GCC-15

version graph

Package: src:libcitygml; Maintainer for src:libcitygml is Debian GIS Project <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 17:31:48 UTC

Severity: important

Tags: forky, sid, upstream

Found in version libcitygml/2.5.2-1

Forwarded to https://github.com/jklimke/libcitygml/issues/105

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at maintonly) by bugs.debian.org; 17 Feb 2025 17:30:41 +0000
From [email protected] Mon Feb 17 17:30:40 2025
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-118.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_PACKAGE,
	USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
	autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 78; hammy, 150; neutral, 200; spammy,
	0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--H*F:U*doko,
	0.000-+--qa-logs.debian.net, 0.000-+--UD:qa-logs.debian.net,
	0.000-+--qalogsdebiannet
Return-path: <[email protected]>
Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:35886)
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,[email protected] (verified)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tk4x6-00AYRA-SX
	for [email protected]; Mon, 17 Feb 2025 17:30:40 +0000
Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:35250)
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=paradis.debian.org,[email protected] (verified)
	by muffat.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tk4x6-00GXQ1-Fs
	for [email protected]; Mon, 17 Feb 2025 17:30:40 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.paradis; h=Date:Message-Id:Content-Transfer-Encoding:Content-Type:
	MIME-Version:From:Subject:To:Reply-To:Cc:Content-ID:Content-Description:
	In-Reply-To:References; bh=lWepohXWAbd8Bw7gnYuyHi3d5RjxhgsZJU9sZRYFsTg=; b=Dm
	Xl1h5JDcbxRWgBzf7RlHUK2lyVUPmz/LA5s2nS5ie1CO337qOy7bzOhvXGaRdc0ZWpkTLYGqOAJs8
	eYPyua4ydTxRlZ7mGC6TRNERFhdkUbAxymJZspKaCD07CxddmmhyYm13kXFCJmXx+drgGJTVbN0gk
	3zl9Ku+wd/btvHa6CIfWqUL5dGBNOy1OBbIlgyht9RA9Yv29RBpEV47MEE5m2mX3fNBXPGU9AJQfi
	0QMCNW/KNtTNKrq/80/s85e7+keorVeKM6SBqQmmhGF3VFcubKexCGIFzn93k0YMqA0PQ3NMmAnpJ
	QLbeZJnbI/258o5cJCCmHjq7EcHBrdog==;
Received: from doko by paradis.debian.org with local (Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tk4x5-009M2U-Nj
	for [email protected]; Mon, 17 Feb 2025 17:30:39 +0000
To: [email protected]
Subject: libcitygml: ftbfs with GCC-15
From: Matthias Klose <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <[email protected]>
Date: Mon, 17 Feb 2025 17:30:39 +0000
Delivered-To: [email protected]
Package: src:libcitygml
Version: 2.5.2-1
Severity: important
Tags: sid forky
User: [email protected]
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/libcitygml_2.5.2-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
      |                                                        ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/enum_type_bitmask.h:50:33: note: in definition of macro ‘ENUM_CLASS_BITWISE_OPERATORS_DEFS’
   50 | /*constexpr*/ LIBCITYGML_EXPORT type_name operator|(type_name l, type_name r); \
      |                                 ^~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/cityobject.h:144:56: error: ‘CityObjectsType’ in ‘class citygml::CityObject’ does not name a type
  144 | ENUM_CLASS_BITWISE_OPERATORS_DEFS(citygml::CityObject::CityObjectsType);
      |                                                        ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/enum_type_bitmask.h:51:33: note: in definition of macro ‘ENUM_CLASS_BITWISE_OPERATORS_DEFS’
   51 | /*constexpr*/ LIBCITYGML_EXPORT type_name operator&(type_name l, type_name r); \
      |                                 ^~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/cityobject.h:144:56: error: ‘CityObjectsType’ in ‘class citygml::CityObject’ does not name a type
  144 | ENUM_CLASS_BITWISE_OPERATORS_DEFS(citygml::CityObject::CityObjectsType);
      |                                                        ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/enum_type_bitmask.h:52:33: note: in definition of macro ‘ENUM_CLASS_BITWISE_OPERATORS_DEFS’
   52 | /*constexpr*/ LIBCITYGML_EXPORT type_name operator^(type_name l, type_name r);\
      |                                 ^~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/cityobject.h:144:56: error: ‘CityObjectsType’ in ‘class citygml::CityObject’ does not name a type
  144 | ENUM_CLASS_BITWISE_OPERATORS_DEFS(citygml::CityObject::CityObjectsType);
      |                                                        ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/enum_type_bitmask.h:53:33: note: in definition of macro ‘ENUM_CLASS_BITWISE_OPERATORS_DEFS’
   53 | /*constexpr*/ LIBCITYGML_EXPORT type_name operator~(type_name l);
      |                                 ^~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/citymodel.h:23:35: error: ‘CityObjectsType’ is not a member of ‘citygml::CityObject’
   23 |     typedef std::map< CityObject::CityObjectsType, std::vector<const CityObject*> > CityObjectsMap;
      |                                   ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/citymodel.h:23:35: error: ‘CityObjectsType’ is not a member of ‘citygml::CityObject’
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/citymodel.h:23:83: error: template argument 1 is invalid
   23 |     typedef std::map< CityObject::CityObjectsType, std::vector<const CityObject*> > CityObjectsMap;
      |                                                                                   ^
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/citymodel.h:23:83: error: template argument 3 is invalid
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/citymodel.h:23:83: error: template argument 4 is invalid
/build/reproducible-path/libcitygml-2.5.2/sources/include/citygml/citymodel.h:40:69: error: ‘citygml::CityObject::CityObjectsType’ has not been declared
   40 |         const ConstCityObjects getAllCityObjectsOfType( CityObject::CityObjectsType type ) const;
      |                                                                     ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp: In member function ‘void citygml::CityModel::addToCityObjectsMapRecursive(const citygml::CityObject*)’:
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:48:34: error: qualified-id in declaration before ‘it’
   48 |         CityObjectsMap::iterator it = m_cityObjectsMap.find(cityObj->getType());
      |                                  ^~
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:50:13: error: ‘it’ was not declared in this scope; did you mean ‘int’?
   50 |         if (it == m_cityObjectsMap.end()) {
      |             ^~
      |             int
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:50:36: error: request for member ‘end’ in ‘((citygml::CityModel*)this)->citygml::CityModel::m_cityObjectsMap’, which is of non-class type ‘citygml::CityObjectsMap’ {aka ‘int’}
   50 |         if (it == m_cityObjectsMap.end()) {
      |                                    ^~~
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:53:39: error: ‘const class citygml::CityObject’ has no member named ‘getType’
   53 |             m_cityObjectsMap[cityObj->getType()] = std::vector<const CityObject*>(tmp);
      |                                       ^~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp: At global scope:
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:77:28: error: ‘const citygml::ConstCityObjects citygml::CityModel::getAllCityObjectsOfType’ is not a static data member of ‘class citygml::CityModel’
   77 |     const ConstCityObjects CityModel::getAllCityObjectsOfType( CityObject::CityObjectsType type ) const
      |                            ^~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:77:76: error: ‘CityObjectsType’ is not a member of ‘citygml::CityObject’
   77 |     const ConstCityObjects CityModel::getAllCityObjectsOfType( CityObject::CityObjectsType type ) const
      |                                                                            ^~~~~~~~~~~~~~~
/build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/citymodel.cpp:77:99: error: expected ‘,’ or ‘;’ before ‘const’
   77 |     const ConstCityObjects CityModel::getAllCityObjectsOfType( CityObject::CityObjectsType type ) const
      |                                                                                                   ^~~~~
[ 15%] Building CXX object sources/CMakeFiles/citygml.dir/src/citygml/georeferencedtexture.cpp.o
cd /build/reproducible-path/libcitygml-2.5.2/obj-x86_64-linux-gnu/sources && /usr/bin/c++ -DCITYGML_LIBRARY -DLIBCITYGML_BUILD -DLIBCITYGML_DYNAMIC -DUSE_GDAL -DXERCES_STATIC_LIBRARY -Dcitygml_EXPORTS -I/build/reproducible-path/libcitygml-2.5.2/sources/include -I/usr/include/gdal -g -O2 -ffile-prefix-map=/build/reproducible-path/libcitygml-2.5.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -fPIC -MD -MT sources/CMakeFiles/citygml.dir/src/citygml/georeferencedtexture.cpp.o -MF CMakeFiles/citygml.dir/src/citygml/georeferencedtexture.cpp.o.d -o CMakeFiles/citygml.dir/src/citygml/georeferencedtexture.cpp.o -c /build/reproducible-path/libcitygml-2.5.2/sources/src/citygml/georeferencedtexture.cpp
make[3]: *** [sources/CMakeFiles/citygml.dir/build.make:96: sources/CMakeFiles/citygml.dir/src/citygml/citymodel.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/libcitygml-2.5.2/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:132: sources/CMakeFiles/citygml.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/libcitygml-2.5.2/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libcitygml-2.5.2/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



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:20:16 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.