[Debian-iot-maintainers] Bug#925697: glewlwyd: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:45:19 GMT 2019


Package: src:glewlwyd
Version: 1.4.9-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. 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/gcc9-20190321/glewlwyd_1.4.9-1_unstable_gcc9.log
The last lines of the build log are at the end of this report.

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

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
-- Found Jansson: /usr/lib/x86_64-linux-gnu/libjansson.so (found suitable version "2.12", minimum required is "2.4") 
-- Found LibJWT: /usr/lib/x86_64-linux-gnu/libjwt.so  
-- Found mhd: /usr/lib/x86_64-linux-gnu/libmicrohttpd.so (found version "0.9.62") 
-- Found GnuTLS: /usr/lib/x86_64-linux-gnu/libgnutls.so (found version "3.6.6") 
-- Found Ldap: /usr/lib/x86_64-linux-gnu/libldap.so  
-- Found Libconfig: /usr/lib/x86_64-linux-gnu/libconfig.so  
-- Found UUID: /usr/lib/x86_64-linux-gnu/libuuid.so  
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY


-- Build files have been written to: /<<PKGBUILDDIR>>/build
   dh_auto_build -a -O--buildsystem=cmake -O--builddirectory=build
	cd build && make -j4 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>/build'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/build/CMakeFiles /<<PKGBUILDDIR>>/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[2]: Entering directory '/<<PKGBUILDDIR>>/build'
make -f CMakeFiles/glewlwyd.dir/build.make CMakeFiles/glewlwyd.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/build'
cd /<<PKGBUILDDIR>>/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/build /<<PKGBUILDDIR>>/build /<<PKGBUILDDIR>>/build/CMakeFiles/glewlwyd.dir/DependInfo.cmake --color=
Scanning dependencies of target glewlwyd
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make -f CMakeFiles/glewlwyd.dir/build.make CMakeFiles/glewlwyd.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/build'
[ 16%] Building C object CMakeFiles/glewlwyd.dir/src/oauth.c.o
[ 16%] Building C object CMakeFiles/glewlwyd.dir/src/authorization.c.o
[ 33%] Building C object CMakeFiles/glewlwyd.dir/src/token.c.o
[ 33%] Building C object CMakeFiles/glewlwyd.dir/src/webservice.c.o
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/authorization.c.o   -c /<<PKGBUILDDIR>>/src/authorization.c
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/oauth.c.o   -c /<<PKGBUILDDIR>>/src/oauth.c
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/webservice.c.o   -c /<<PKGBUILDDIR>>/src/webservice.c
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/token.c.o   -c /<<PKGBUILDDIR>>/src/token.c
[ 50%] Building C object CMakeFiles/glewlwyd.dir/src/client.c.o
[ 50%] Building C object CMakeFiles/glewlwyd.dir/src/user.c.o
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/user.c.o   -c /<<PKGBUILDDIR>>/src/user.c
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/client.c.o   -c /<<PKGBUILDDIR>>/src/client.c
[ 58%] Building C object CMakeFiles/glewlwyd.dir/src/admin.c.o
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/admin.c.o   -c /<<PKGBUILDDIR>>/src/admin.c
[ 66%] Building C object CMakeFiles/glewlwyd.dir/src/scope.c.o
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/scope.c.o   -c /<<PKGBUILDDIR>>/src/scope.c
[ 75%] Building C object CMakeFiles/glewlwyd.dir/src/resource.c.o
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/resource.c.o   -c /<<PKGBUILDDIR>>/src/resource.c
[ 83%] Building C object CMakeFiles/glewlwyd.dir/src/password.c.o
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/password.c.o   -c /<<PKGBUILDDIR>>/src/password.c
In file included from /usr/include/string.h:494,
                 from /<<PKGBUILDDIR>>/src/password.c:31:
In function 'strncat',
    inlined from 'generate_digest' at /<<PKGBUILDDIR>>/src/password.c:98:13:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:10: error: '__builtin_strncat' output may be truncated copying 16 bytes from a string of length 16 [-Werror=stringop-truncation]
  136 |   return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[ 91%] Building C object CMakeFiles/glewlwyd.dir/src/glewlwyd.c.o
make[3]: *** [CMakeFiles/glewlwyd.dir/build.make:183: CMakeFiles/glewlwyd.dir/src/password.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/bin/cc -D_GNU_SOURCE -I/usr/include/uuid  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror   -std=gnu99 -o CMakeFiles/glewlwyd.dir/src/glewlwyd.c.o   -c /<<PKGBUILDDIR>>/src/glewlwyd.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [CMakeFiles/Makefile2:108: CMakeFiles/glewlwyd.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[1]: *** [Makefile:155: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: cd build && make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:17: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Debian-iot-maintainers mailing list