Bug#925798: ortp: ftbfs with GCC-9
Matthias Klose
doko at debian.org
Wed Mar 27 19:47:30 GMT 2019
Package: src:ortp
Version: 1:1.0.2-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/ortp_1.0.2-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.
[...]
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -Dortp_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp.dir/extremum.c.o -c /<<PKGBUILDDIR>>/src/extremum.c
[ 14%] Building C object src/CMakeFiles/ortp-static.dir/congestiondetector.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/congestiondetector.c.o -c /<<PKGBUILDDIR>>/src/congestiondetector.c
[ 16%] Building C object src/CMakeFiles/ortp.dir/jitterctl.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -Dortp_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp.dir/jitterctl.c.o -c /<<PKGBUILDDIR>>/src/jitterctl.c
[ 18%] Building C object src/CMakeFiles/ortp.dir/kalmanrls.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -Dortp_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp.dir/kalmanrls.c.o -c /<<PKGBUILDDIR>>/src/kalmanrls.c
[ 19%] Building C object src/CMakeFiles/ortp.dir/logging.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -Dortp_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp.dir/logging.c.o -c /<<PKGBUILDDIR>>/src/logging.c
[ 21%] Building C object src/CMakeFiles/ortp-static.dir/event.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/event.c.o -c /<<PKGBUILDDIR>>/src/event.c
[ 22%] Building C object src/CMakeFiles/ortp.dir/netsim.c.o
In file included from /usr/include/string.h:494,
from /<<PKGBUILDDIR>>/include/ortp/port.h:41,
from /<<PKGBUILDDIR>>/include/ortp/logging.h:29,
from /<<PKGBUILDDIR>>/src/logging.c:24:
In function 'strncat',
inlined from 'ortp_strcat_vprintf' at /<<PKGBUILDDIR>>/src/logging.c:220:3:
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -Dortp_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp.dir/netsim.c.o -c /<<PKGBUILDDIR>>/src/netsim.c
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:10: error: '__builtin_strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/logging.c: In function 'ortp_strcat_vprintf':
/<<PKGBUILDDIR>>/src/logging.c:217:11: note: length computed here
217 | retlen = strlen(ret);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/ortp.dir/build.make:157: src/CMakeFiles/ortp.dir/logging.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 24%] Building C object src/CMakeFiles/ortp-static.dir/extremum.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/extremum.c.o -c /<<PKGBUILDDIR>>/src/extremum.c
[ 26%] Building C object src/CMakeFiles/ortp-static.dir/jitterctl.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/jitterctl.c.o -c /<<PKGBUILDDIR>>/src/jitterctl.c
[ 27%] Building C object src/CMakeFiles/ortp-static.dir/kalmanrls.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/kalmanrls.c.o -c /<<PKGBUILDDIR>>/src/kalmanrls.c
[ 29%] Building C object src/CMakeFiles/ortp-static.dir/logging.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/logging.c.o -c /<<PKGBUILDDIR>>/src/logging.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:169: src/CMakeFiles/ortp.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 31%] Building C object src/CMakeFiles/ortp-static.dir/netsim.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/netsim.c.o -c /<<PKGBUILDDIR>>/src/netsim.c
[ 32%] Building C object src/CMakeFiles/ortp-static.dir/ortp.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_STATIC -DHAVE_CONFIG_H -DORTP_EXPORTS -DORTP_STATIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wuninitialized -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/ortp-static.dir/ortp.c.o -c /<<PKGBUILDDIR>>/src/ortp.c
In file included from /usr/include/string.h:494,
from /<<PKGBUILDDIR>>/include/ortp/port.h:41,
from /<<PKGBUILDDIR>>/include/ortp/logging.h:29,
from /<<PKGBUILDDIR>>/src/logging.c:24:
In function 'strncat',
inlined from 'ortp_strcat_vprintf' at /<<PKGBUILDDIR>>/src/logging.c:220:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:10: error: '__builtin_strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/logging.c: In function 'ortp_strcat_vprintf':
/<<PKGBUILDDIR>>/src/logging.c:217:11: note: length computed here
217 | retlen = strlen(ret);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/ortp-static.dir/build.make:157: src/CMakeFiles/ortp-static.dir/logging.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 32%] Built target ortp-html-doc
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:206: src/CMakeFiles/ortp-static.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:155: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: cd obj-x86_64-linux-gnu && make -j4 returned exit code 2
make: *** [debian/rules:10: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
More information about the Pkg-voip-maintainers
mailing list