#1013014 pipexec: ftbfs with GCC-12

#1013014#5
Date:
2022-06-16 12:12:27 UTC
From:
To:
[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/pipexec_2.5.5-2_unstable_gcc12.log
The last lines of the build log are at the end of this report.

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

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking whether to build with debug information... no
checking whether to build with profiling support... no
checking whether to build with coverage... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
   dh_auto_build
	make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-am
make[2]: Entering directory '/<<PKGBUILDDIR>>'
bash ./build/version-gen.sh .
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/pipexec.o src/pipexec.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/logging.o src/logging.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/version.o src/version.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/command_info.o src/command_info.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/pipe_info.o src/pipe_info.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/ptee.o src/ptee.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/peet.o src/peet.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o test/ptest.o test/ptest.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=c99 -Wall -Wextra -Werror -O3 -c -o src/app_version.o src/app_version.c
/bin/bash ./libtool  --tag=CC   --mode=link gcc  -std=c99 -Wall -Wextra -Werror -O3  -Wl,-z,relro -o test/ptest test/ptest.o
In function ‘pipes_end_info_parse’,
    inlined from ‘pipe_info_parse’ at src/pipe_info.c:59:11:
src/pipe_info.c:17:10: error: dangling pointer ‘colon’ to ‘end_fd’ may be used [-Werror=dangling-pointer=]
   17 |   *colon = '\0';
      |   ~~~~~~~^~~~~~
src/pipe_info.c: In function ‘pipe_info_parse’:
src/pipe_info.c:19:9: note: ‘end_fd’ declared here
   19 |   char *end_fd;
      |         ^~~~~~
In function ‘pipes_end_info_parse’,
    inlined from ‘pipe_info_parse’ at src/pipe_info.c:59:11:
src/pipe_info.c:20:14: error: dangling pointer ‘colon’ to ‘end_fd’ may be used [-Werror=dangling-pointer=]
   20 |   pend->fd = strtol(colon + 1, &end_fd, 10);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pipe_info.c: In function ‘pipe_info_parse’:
src/pipe_info.c:19:9: note: ‘end_fd’ declared here
   19 |   char *end_fd;
      |         ^~~~~~
/bin/bash ./libtool  --tag=CC   --mode=link gcc  -std=c99 -Wall -Wextra -Werror -O3  -Wl,-z,relro -o bin/ptee src/version.o src/app_version.o src/ptee.o
/bin/bash ./libtool  --tag=CC   --mode=link gcc  -std=c99 -Wall -Wextra -Werror -O3  -Wl,-z,relro -o bin/peet src/version.o src/app_version.o src/peet.o
libtool: link: gcc -std=c99 -Wall -Wextra -Werror -O3 -Wl,-z -Wl,relro -o test/ptest test/ptest.o
cc1: all warnings being treated as errors
make[2]: *** [Makefile:824: src/pipe_info.o] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: gcc -std=c99 -Wall -Wextra -Werror -O3 -Wl,-z -Wl,relro -o bin/peet src/version.o src/app_version.o src/peet.o
libtool: link: gcc -std=c99 -Wall -Wextra -Werror -O3 -Wl,-z -Wl,relro -o bin/ptee src/version.o src/app_version.o src/ptee.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:589: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

#1013014#10
Date:
2022-06-20 18:06:38 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pipexec, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013014@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Alteholz <debian@alteholz.de> (supplier of updated pipexec package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 20 Jun 2022 19:19:18 +0200
Source: pipexec
Architecture: source
Version: 2.6.0-1
Distribution: unstable
Urgency: medium
Maintainer: Thorsten Alteholz <debian@alteholz.de>
Changed-By: Thorsten Alteholz <debian@alteholz.de>
Closes: 1013014
Changes:
 pipexec (2.6.0-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #1013014)
   * debian/control: bump standard to 4.6.1 (no changes)
   * debian/control: use dh13
   * debian/control: add Rules-Requires-Root: no
   * debian/upstream/metadata: add some contents
Checksums-Sha1:
 5f0c695870a9d1e0a9b491a7d908ee75d878ffdb 1980 pipexec_2.6.0-1.dsc
 19c823aea93916bb178c2c5ace7e7c068b66c75c 352160 pipexec_2.6.0.orig.tar.xz
 f52eee3491d3d514a9d7a065e489bf1b2eb97f5b 2152 pipexec_2.6.0-1.debian.tar.xz
 5c9016da25b7564b0220f43a9eabfddcc93b355e 6321 pipexec_2.6.0-1_amd64.buildinfo
Checksums-Sha256:
 7732b5f1abf54a3d25ea50b43c6ab249e60586ab6f8d7bbb0e68c635ce446354 1980 pipexec_2.6.0-1.dsc
 55eb2105435a4b81a8626f8d891b9f6196d75a002f8dc9f8596abea63f3722f6 352160 pipexec_2.6.0.orig.tar.xz
 1e40a8f6bc644dd268d24e291598d6d7db01ee5b53b940ddbb7fe223365b947f 2152 pipexec_2.6.0-1.debian.tar.xz
 af4e12930e3a22c3c83a5e4de5eeb0e732f6ff8c254fee43654c7a2cb4ace2fb 6321 pipexec_2.6.0-1_amd64.buildinfo
Files:
 f7bd632452691e931763af1c61a39022 1980 utils optional pipexec_2.6.0-1.dsc
 53b63904a84fb05e16da3c26b3e3744a 352160 utils optional pipexec_2.6.0.orig.tar.xz
 6d2b88be25ec793145d038f255bf5be3 2152 utils optional pipexec_2.6.0-1.debian.tar.xz
 855dceddac3da4ef4c8d8d64127a3a00 6321 utils optional pipexec_2.6.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQKnBAEBCgCRFiEEYgH7/9u94Hgi6ruWlvysDTh7WEcFAmKws1NfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYy
MDFGQkZGREJCREUwNzgyMkVBQkI5Njk2RkNBQzBEMzg3QjU4NDcTHGRlYmlhbkBh
bHRlaG9sei5kZQAKCRCW/KwNOHtYR6QSEACCLXjlnGnSSPVLMDDdrWqT8SG8JGM3
Iiv6RUds2IRBP4gkkjb5ypijyymRR30n3qJ1Ta/aHjb4zy8yTE8bT5NI7azM5CTl
64vPDAPB2rYjqWcQYkth5gUtgHuN7xgXGLrVxnwqoO2pz0hjD2FrnPNoyZ/re3aU
PrlH/bX9ohPQc+hMmrM/OvdIE6jNdCjr/Ln8IsnBz5mSasOjuGmpz1lIZYgLmP7y
iJcPoW3e3dsR2fBQyBVr5nNw5ljzX5lsOHWKALnX+LLh64UplLzqLp4/Dw4DNauZ
S+dgxz0DVL3TlmwqzQN7mas1DbYJozZUP00UWojnbeBiYbqDIyTsy64HissqAN9M
3cpRdxC+x5AKRt7mEo8XgRGJQ+QHV/diUaECW4XC0uXrf8/M/ftN7cVuBW3bNIHk
pEsAF2vQsKy1amLaj8jfnkiBYsqy6v5T/ZrQWdckvsREq5cmJ/IMyD1AIhLL2vKY
Tp9BXZI46OvdUbQxzPe8eeEdkJc8YNYMHh7/Bq9eXXM+t/9aBGhQ2gqi4O53eWvd
Vx1jaS4kF6UuyvjKe0Yc04kM8y2UL8AwH/SCXgi+bPBsgYUnRoUft3Tyqa8F4udL
15WfF4cZ//9vXhHpN/yAz20+bEcryUXFp/+7KVtPELGBECQ1kDbwISwuP1MKwYGt
g1bz//WjQMygTg==
=Pbzl
-----END PGP SIGNATURE-----