[Pkg-electronics-devel] Bug#1016253: binutils-sh-elf: FTBFS: stdlib.h:134:10: error: argument 1 is null but the corresponding size argument 3 value is [128, 9223372036854775807] [-Werror=nonnull]

Lucas Nussbaum lucas at debian.org
Fri Jul 29 17:20:12 BST 2022


Source: binutils-sh-elf
Version: 1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220728 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -I../../binutils/gas  -I. -I../../binutils/gas -I../bfd -I../../binutils/gas/config -I../../binutils/gas/../include -I../../binutils/gas/.. -I../../binutils/gas/../bfd -DLOCALEDIR="\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -Wwrite-strings  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security     -c -o config/atof-ieee.o ../../binutils/gas/config/atof-ieee.c
> 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... no
> checking whether to build static libraries... yes
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for aclocal... ${SHELL} '/<<PKGBUILDDIR>>/binutils/missing' aclocal-1.16
> checking for autoconf... ${SHELL} '/<<PKGBUILDDIR>>/binutils/missing' autoconf
> checking for autoheader... ${SHELL} '/<<PKGBUILDDIR>>/binutils/missing' autoheader
> checking whether gcc supports -W... touch doc/as.1
> yes
> perl ../../binutils/gas/../etc/texi2pod.pl -I "../../binutils/gas/doc" -I doc -I "../../binutils/gas/../libiberty" -I "../../binutils/gas/../bfd/doc" -I ../bfd/doc --no-split -Dman < ../../binutils/gas/doc/as.texi > doc/as.pod
> checking whether gcc supports -Wall... yes
> checking whether gcc supports -Wnarrowing... (pod2man --center="GNU Development Tools" --release="binutils-2.38.90" --section=1 doc/as.pod | \
>         sed -e '/^.if n .na/d' > doc/as.1.T$$ && \
>         mv -f doc/as.1.T$$ doc/as.1) || \
>         (rm -f doc/as.1.T$$ && exit 1)
> yes
> checking whether gcc supports -Wwrite-strings... yes
> checking whether gcc supports -Wmissing-format-attribute... restore=: && backupdir=".am$$" && \
> rm -rf $backupdir && mkdir $backupdir && \
> if (makeinfo --split-size=5000000 --split-size=5000000 --version) >/dev/null 2>&1; then \
>   for f in doc/as.info doc/as.info-[0-9] doc/as.info-[0-9][0-9] doc/as.i[0-9] doc/as.i[0-9][0-9]; do \
>     if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
>   done; \
> else :; fi && \
> if makeinfo --split-size=5000000 --split-size=5000000 -I "../../binutils/gas/doc" -I doc -I "../../binutils/gas/../libiberty" -I "../../binutils/gas/../bfd/doc" -I ../bfd/doc --no-split  -I doc -I ../../binutils/gas/doc \
>  -o doc/as.info `test -f 'doc/as.texi' || echo '../../binutils/gas/'`doc/as.texi; \
> then \
>   rc=0; \
> else \
>   rc=$?; \
>   $restore $backupdir/* `echo "./doc/as.info" | sed 's|[^/]*$||'`; \
> fi; \
> rm -rf $backupdir; exit $rc
> yes
> checking whether gcc supports -Wstrict-prototypes... yes
> checking whether gcc supports -Wmissing-prototypes... yes
> checking whether gcc supports -Wold-style-definition... yes
> checking whether gcc supports -pedantic -Wlong-long... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking whether to install libbfd... no
> checking whether gcc supports -Wall... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for sys/param.h... yes
> checking for getpagesize... rm -f doc/as.pod
> yes
> checking for working mmap... yes
> checking for library containing dlsym... -ldl
> checking for ELF support in BFD... In file included from /usr/include/stdlib.h:1018,
>                  from ../../binutils/gas/as.h:44,
>                  from ../../binutils/gas/read.c:33:
> In function ‘mbstowcs’,
>     inlined from ‘read_symbol_name’ at ../../binutils/gas/read.c:1670:11:
> /usr/include/x86_64-linux-gnu/bits/stdlib.h:134:10: error: argument 1 is null but the corresponding size argument 3 value is [128, 9223372036854775807] [-Werror=nonnull]
>   134 |   return __mbstowcs_alias (__dst, __src, __len);
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/features.h:472,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdio.h:27,
>                  from ../../binutils/gas/as.h:42:
> /usr/include/x86_64-linux-gnu/bits/stdlib.h: In function ‘read_symbol_name’:
> /usr/include/x86_64-linux-gnu/bits/stdlib.h:107:15: note: in a call to function ‘__mbstowcs_alias’ declared with attribute ‘access (read_only, 2)’
>   107 | extern size_t __REDIRECT_NTH (__mbstowcs_alias,
>       |               ^~~~~~~~~~~~~~
> as.texi:2101: warning: @refill is obsolete.
> as.texi:3012: warning: @refill is obsolete.
> as.texi:3032: warning: @refill is obsolete.
> as.texi:3231: warning: @refill is obsolete.
> yes
> checking whether byte ordering is bigendian... no
> checking byteswap.h usability... yes
> checking byteswap.h presence... yes
> checking for byteswap.h... yes
> checking endian.h usability... yes
> checking endian.h presence... yes
> checking for endian.h... yes
> checking for pread... yes
> checking whether bswap_16 is declared... yes
> checking whether bswap_32 is declared... cc1: all warnings being treated as errors
> yes
> make[5]: *** [Makefile:1486: read.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/07/28/binutils-sh-elf_1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&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 marking 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