[Pkg-electronics-devel] Bug#1066713: gplcver: FTBFS: v_dbg.c:1524:32: error: implicit declaration of function ‘wait’ [-Werror=implicit-function-declaration]
Lucas Nussbaum
lucas at debian.org
Wed Mar 13 11:50:59 GMT 2024
Source: gplcver
Version: 2.12a-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration
Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_dbg.o `test -f 'v_dbg.c' || echo './'`v_dbg.c
> v_dbg.c: In function ‘__escape_to_shell’:
> v_dbg.c:1524:32: error: implicit declaration of function ‘wait’ [-Werror=implicit-function-declaration]
> 1524 | if (pid != -1) { while ((rc = wait(&status)) != pid && rc != -1) ; }
> | ^~~~
> v_dbg.c: In function ‘__exec_history_list’:
> v_dbg.c:1604:6: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 1604 | fgets(s1, RECLEN, stdin);
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> v_sdf.c: In function ‘chkset_interconn_dels’:
> v_sdf.c:4790:48: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 4066 [-Wformat-overflow=]
> 4790 | sprintf(s1, "(INTERCONNECT destination port %s in %s", dport,
> | ^~ ~~~~~
> In function ‘sprintf’,
> inlined from ‘chkset_interconn_dels’ at v_sdf.c:4790:4:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 36 or more bytes (assuming 4132) into a destination of size 4097
> 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 31 | __glibc_objsize (__s), __fmt,
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 32 | __va_arg_pack ());
> | ~~~~~~~~~~~~~~~~~
> v_sdf.c: In function ‘chkset_interconn_dels’:
> v_sdf.c:4785:66: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 4039 [-Wformat-overflow=]
> 4785 | "(INTERCONNECT (but invalid source port %s) destination port %s in %s",
> | ^~
> 4786 | portsrc, dport, dmdp->msym->synam);
> | ~~~~~
> In function ‘sprintf’,
> inlined from ‘chkset_interconn_dels’ at v_sdf.c:4784:4:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 63 or more bytes (assuming 4159) into a destination of size 4097
> 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 31 | __glibc_objsize (__s), __fmt,
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 32 | __va_arg_pack ());
> | ~~~~~~~~~~~~~~~~~
> v_sdf.c: In function ‘set_mipd_dels’:
> v_sdf.c:4339:21: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 4091 [-Wformat-overflow=]
> 4339 | sprintf(s1, "(PORT %s in %s", port, mdp->msym->synam);
> | ^~ ~~~~
> In function ‘sprintf’,
> inlined from ‘set_mipd_dels’ at v_sdf.c:4339:2:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 11 or more bytes (assuming 4107) into a destination of size 4097
> 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 31 | __glibc_objsize (__s), __fmt,
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 32 | __va_arg_pack ());
> | ~~~~~~~~~~~~~~~~~
> v_sdf.c: In function ‘rd_iopath’:
> v_sdf.c:2571:52: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 4088 [-Wformat-overflow=]
> 2540 | if ((plhd = bld_match_spcpth(ctmdp, portsrc, si1, si2, eval, portdst,
> | ~~~~~~~
> ......
> 2571 | else if (eval == E_NEGEDGE) sprintf(s3, "(negedge %s%s)", psrcnam, s1);
> | ^~
> In function ‘sprintf’,
> inlined from ‘msg_sdfpath_tostr’ at v_sdf.c:2571:30,
> inlined from ‘bld_match_spcpth’ at v_sdf.c:2947:4,
> inlined from ‘rd_iopath’ at v_sdf.c:2540:14:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 11 or more bytes (assuming 4107) into a destination of size 4097
> 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 31 | __glibc_objsize (__s), __fmt,
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 32 | __va_arg_pack ());
> | ~~~~~~~~~~~~~~~~~
> v_sdf.c: In function ‘rd_iopath’:
> v_sdf.c:2570:52: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 4088 [-Wformat-overflow=]
> 2540 | if ((plhd = bld_match_spcpth(ctmdp, portsrc, si1, si2, eval, portdst,
> | ~~~~~~~
> ......
> 2570 | else if (eval == E_POSEDGE) sprintf(s3, "(posedge %s%s)", psrcnam, s1);
> | ^~
> In function ‘sprintf’,
> inlined from ‘msg_sdfpath_tostr’ at v_sdf.c:2570:30,
> inlined from ‘bld_match_spcpth’ at v_sdf.c:2947:4,
> inlined from ‘rd_iopath’ at v_sdf.c:2540:14:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 11 or more bytes (assuming 4107) into a destination of size 4097
> 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 31 | __glibc_objsize (__s), __fmt,
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 32 | __va_arg_pack ());
> | ~~~~~~~~~~~~~~~~~
> gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_dbg2.o `test -f 'v_dbg2.c' || echo './'`v_dbg2.c
> gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_ms.o `test -f 'v_ms.c' || echo './'`v_ms.c
> gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_tf.o `test -f 'v_tf.c' || echo './'`v_tf.c
> v_tf.c: In function ‘tf_getp’:
> v_tf.c:1637:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> 1637 | rv = (int32) chp;
> | ^
> v_tf.c: In function ‘tf_getlongp’:
> v_tf.c:1723:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> 1723 | rv = (int32) chp;
> | ^
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:725: cver-v_dbg.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/03/13/gplcver_2.12a-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-electronics-devel
mailing list