Bug#957367: ipe: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:03:01 BST 2020


Package: src:ipe
Version: 7.2.13-2
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/ipe_7.2.13-2_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
   dh_autoreconf_clean -O--sourcedirectory=src
   dh_clean -O--sourcedirectory=src
 debian/rules build
make: 'build' is up to date.
 fakeroot debian/rules binary
rm -f build/doc/jquery.js
dh binary --sourcedirectory=src
   debian/rules install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
sed < debian/ipetoipe.sh > debian/ipetoipe -e 's,xIPELIBDIRx,/usr/bin,'
chmod +x debian/ipetoipe
rm -f build/doc/jquery.js
dh install --sourcedirectory=src
   dh_update_autotools_config -O--sourcedirectory=src
   dh_autoreconf -O--sourcedirectory=src
   dh_auto_configure -O--sourcedirectory=src
   dh_auto_build -O--sourcedirectory=src
	cd src && make -j4 "INSTALL=install --strip-program=true"
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make --directory=ipelib all
make --directory=ipelets/lua all
make --directory=ipeui all
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/ipelib'
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/ipelets/lua'
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/ipeui'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/ipelets/lua'
mkdir -p ../../build/obj/ipelib; echo "" > ../../build/obj/ipelib/depend.mak; for f in ipebase.cpp ipeplatform.cpp ipegeo.cpp ipexml.cpp ipeattributes.cpp ipebitmap.cpp ipeshape.cpp ipegroup.cpp ipeimage.cpp ipetext.cpp ipepath.cpp ipereference.cpp ipeobject.cpp ipefactory.cpp ipestdstyles.cpp ipeiml.cpp ipepage.cpp ipepainter.cpp ipetoolbase.cpp ipepdfparser.cpp ipepdfwriter.cpp iperesources.cpp ipestyle.cpp ipesnap.cpp ipeutils.cpp ipelatex.cpp ipedoc.cpp ipebitmap_unix.cpp ; do g++ -MM -MT ../../build/obj/ipelib/${f%%.cpp}.o -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -I../include     -I/usr/include/libpng16 $f >> ../../build/obj/ipelib/depend.mak; done
mkdir -p ../../build/obj/ipeui; echo "" > ../../build/obj/ipeui/depend.mak; for f in ipeui_common.cpp ipeui_qt.cpp; do g++ -MM -MT ../../build/obj/ipeui/${f%%.cpp}.o -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/lua5.3 $f >> ../../build/obj/ipeui/depend.mak; done
Compiling ipeui_common.cpp...
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wall -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/lua5.3  -c -o ../../build/obj/ipeui/ipeui_common.o ipeui_common.cpp
Compiling ipeui_qt.cpp...
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wall -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/lua5.3  -c -o ../../build/obj/ipeui/ipeui_qt.o ipeui_qt.cpp
Running moc on ipeui_qt.h...
moc -o moc_ipeui_qt.cpp ipeui_qt.h
Compiling moc_ipeui_qt.cpp...
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wall -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/lua5.3  -c -o ../../build/obj/ipeui/moc_ipeui_qt.o moc_ipeui_qt.cpp
Compiling ipebase.cpp...
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wall -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -I../include     -I/usr/include/libpng16  -c -o ../../build/obj/ipelib/ipebase.o ipebase.cpp
Compiling ipeplatform.cpp...
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wall -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DIPEUI_QT -fPIC -std=c++14 -I../include     -I/usr/include/libpng16  -c -o ../../build/obj/ipelib/ipeplatform.o ipeplatform.cpp
ipeplatform.cpp: In static member function ‘static ipe::String ipe::Platform::realPath(ipe::String)’:
ipeplatform.cpp:420:7: error: ‘errno’ was not declared in this scope
  420 |   if (errno != ENOENT || fname.left(1) == "/")
      |       ^~~~~
ipeplatform.cpp:59:1: note: ‘errno’ is defined in header ‘<cerrno>’; did you forget to ‘#include <cerrno>’?
   58 | #include <cstring>
  +++ |+#include <cerrno>
   59 | 
ipeplatform.cpp:420:16: error: ‘ENOENT’ was not declared in this scope
  420 |   if (errno != ENOENT || fname.left(1) == "/")
      |                ^~~~~~
make[3]: *** [../common.mak:256: ../../build/obj/ipelib/ipeplatform.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/ipelib'
make[2]: *** [Makefile:51: ipelib] Error 2
make[2]: *** Waiting for unfinished jobs....
mkdir -p ../../build/lib
g++ -Wl,-z,relro -Wl,-z,now -shared  -Wl,-soname,libipeui.so.7.2.13 -o ../../build/lib/libipeui.so.7.2.13 ../../build/obj/ipeui/ipeui_common.o ../../build/obj/ipeui/ipeui_qt.o ../../build/obj/ipeui/moc_ipeui_qt.o -lQt5Widgets -lQt5Gui -lQt5Core -llua5.3
ln -sf libipeui.so.7.2.13 ../../build/lib/libipeui.so
rm moc_ipeui_qt.cpp
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/ipeui'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
dh_auto_build: error: cd src && make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:15: install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list