#1097571 pgmodeler: ftbfs with GCC-15

#1097571#5
Date:
2025-02-17 17:43:20 UTC
From:
To:
[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/pgmodeler_1.1.5-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

[...]

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b
dpkg-buildpackage: info: source package pgmodeler
dpkg-buildpackage: info: source version 1.1.5-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Christoph Berg <myon@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   dh_auto_clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/reproducible-path/pgmodeler-1.1.5'
qmake6 PREFIX=/usr CONFIG+=debug NO_UPDATE_CHECK=1 pgmodeler.pro
Info: creating stash file /build/reproducible-path/pgmodeler-1.1.5/.qmake.stash
Project WARNING: The subproject /build/reproducible-path/pgmodeler-1.1.5/plugins wasn't found! pgModeler will be build without plug-ins.
Project WARNING: If you want to compile pgModeler with plug-ins make sure to clone https://github.com/pgmodeler/plugins inside pgModeler's root folder and rerun qmake.
make[1]: Leaving directory '/build/reproducible-path/pgmodeler-1.1.5'
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/pgmodeler-1.1.5'
cd libs/libutils/ && ( test -e Makefile || /usr/bin/qmake6 -o Makefile /build/reproducible-path/pgmodeler-1.1.5/libs/libutils/libutils.pro PREFIX=/usr CONFIG+=debug NO_UPDATE_CHECK=1 ) && make -f Makefile
make[2]: Entering directory '/build/reproducible-path/pgmodeler-1.1.5/libs/libutils'
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/exception.o src/exception.cpp
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/customuistyle.o src/customuistyle.cpp
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/globalattributes.o src/globalattributes.cpp
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/pgsqlversions.o src/pgsqlversions.cpp
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/application.o src/application.cpp
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/utilsns.o src/utilsns.cpp
g++ -c -pipe -Wall -Wextra -Wuninitialized -g -std=gnu++1z -Wall -Wextra -frtti -D_REENTRANT -fPIC -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"Debian\" -DBUILDDATE=\"1.1.5-1\" -DBINDIR=\"/usr/bin\" -DPLUGINSDIR=\"/usr/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/bin\" -DCONFDIR=\"/usr/share/pgmodeler/conf\" -DDOCDIR=\"/usr/share/pgmodeler\" -DLANGDIR=\"/usr/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/share/pgmodeler/schemas\" -DUTILS_SYMBOLS -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/build/reproducible-path/pgmodeler-1.1.5/plugins/src -I/usr/include/postgresql -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtCore -Imoc -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o obj/pgmodelerplugin.o src/pgmodelerplugin.cpp
rm -f libutils.so.1.0.0 libutils.so libutils.so.1 libutils.so.1.0
g++ -Wl,-rpath,'$ORIGIN' -Wl,-rpath,'$ORIGIN/../lib/pgmodeler' -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -shared -Wl,-soname,libutils.so.1 -o libutils.so.1.0.0 obj/exception.o obj/customuistyle.o obj/globalattributes.o obj/pgsqlversions.o obj/application.o obj/utilsns.o obj/pgmodelerplugin.o  -lpq -lxml2 /usr/lib/x86_64-linux-gnu/libQt6PrintSupport.so /usr/lib/x86_64-linux-gnu/libQt6Widgets.so /usr/lib/x86_64-linux-gnu/libQt6Svg.so /usr/lib/x86_64-linux-gnu/libQt6Gui.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libQt6Network.so /usr/lib/x86_64-linux-gnu/libQt6Core.so -lpthread -lGLX -lOpenGL -lXext -lX11 -lm
/usr/bin/ld: obj/customuistyle.o:(.rodata+0x10): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; obj/exception.o:(.rodata+0x10): first defined here
/usr/bin/ld: obj/globalattributes.o:(.rodata+0x10): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; obj/exception.o:(.rodata+0x10): first defined here
/usr/bin/ld: obj/pgsqlversions.o:(.rodata+0x10): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; obj/exception.o:(.rodata+0x10): first defined here
/usr/bin/ld: obj/application.o:(.rodata+0x10): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; obj/exception.o:(.rodata+0x10): first defined here
/usr/bin/ld: obj/utilsns.o:(.rodata+0x18): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; obj/exception.o:(.rodata+0x10): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:181: libutils.so.1.0.0] Error 1
make[2]: Leaving directory '/build/reproducible-path/pgmodeler-1.1.5/libs/libutils'
make[1]: *** [Makefile:58: sub-libs-libutils-make_first-ordered] Error 2
make[1]: Leaving directory '/build/reproducible-path/pgmodeler-1.1.5'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2