Processed: Re: Bug#1016224: binutils-z80: FTBFS: stdlib.h:134:10: error: argument 1 is null but the corresponding size argument 3 value is [128, 9223372036854775807] [-Werror=nonnull]

2022-08-10 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 fixed-upstream
Bug #1016224 [src:binutils-z80] binutils-z80: FTBFS: stdlib.h:134:10: error: 
argument 1 is null but the corresponding size argument 3 value is [128, 
9223372036854775807] [-Werror=nonnull]
Added tag(s) fixed-upstream.

-- 
1016224: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016224
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1016224: binutils-z80: FTBFS: stdlib.h:134:10: error: argument 1 is null but the corresponding size argument 3 value is [128, 9223372036854775807] [-Werror=nonnull]

2022-08-10 Thread Alberto Garcia
Control: tags -1 fixed-upstream

On Fri, Jul 29, 2022 at 06:20:14PM +0200, Lucas Nussbaum wrote:

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

> > In function ‘mbstowcs’,
> > inlined from ‘read_symbol_name’ at 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);
> >   |  ^~

Hi,

this has been fixed in binutils upstream, is the normal binutils
package not affected?

   
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=5858ac626e548772407c038b09b7837550b127dd

I can fix this in binutils-z80 but I'd rather have the fix in the
binutils-source package directly.

Berto



Bug#1016224: binutils-z80: FTBFS: stdlib.h:134:10: error: argument 1 is null but the corresponding size argument 3 value is [128, 9223372036854775807] [-Werror=nonnull]

2022-07-29 Thread Lucas Nussbaum
Source: binutils-z80
Version: 4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@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. -I. -I../bfd -I./config -I./../include -I./.. 
> -I./../bfd -DLOCALEDIR="\"/usr/share/locale\"" -Wdate-time 
> -D_FORTIFY_SOURCE=2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wshadow -Wstack-usage=262144 -Werror -Wwrite-strings -I./../zlib -g -O2 
> -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -c -o config/obj-coff.o config/obj-coff.c
> yes
> checking if gcc supports -c -o file.o... gcc -DHAVE_CONFIG_H -I.  -I. -I. 
> -I../bfd -I./config -I./../include -I./.. -I./../bfd 
> -DLOCALEDIR="\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wall 
> -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 
> -Werror -Wwrite-strings -I./../zlib -g -O2 
> -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -c -o config/atof-ieee.o config/atof-ieee.c
> yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (ld -m elf_x86_64) supports shared 
> libraries... yes
> checking dynamic linker characteristics... touch doc/as.1
> perl ./../etc/texi2pod.pl -I "./doc" -I doc -I "./../libiberty" -I 
> "./../bfd/doc" -I ../bfd/doc --no-split -Dman < ./doc/as.texi > doc/as.pod
> 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... (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)
> no
> checking for aclocal... ${SHELL} /<>/build/missing aclocal-1.15
> checking for autoconf... ${SHELL} /<>/build/missing autoconf
> checking for autoheader... ${SHELL} /<>/build/missing autoheader
> checking whether gcc supports -W... yes
> checking whether gcc supports -Wall... yes
> checking whether gcc supports -Wnarrowing... restore=: && backupdir=".am$$" 
> && \
> rm -rf $backupdir && mkdir $backupdir && \
> if (makeinfo --split-size=500 --split-size=500 --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=500 --split-size=500 -I "./doc" -I doc -I 
> "./../libiberty" -I "./../bfd/doc" -I ../bfd/doc --no-split  -I doc -I ./doc \
>  -o doc/as.info `test -f 'doc/as.texi' || echo './'`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 -Wwrite-strings... yes
> checking whether gcc supports -Wmissing-format-attribute... yes
> checking whether gcc supports -Wstrict-prototypes... yes
> checking whether gcc supports -Wmissing-prototypes... yes
> checking whether gcc supports -Wold-style-definition... rm -f doc/as.pod
> 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... yes
> checking for working mmap... In file included from /usr/include/stdlib.h:1018,
>  from as.h:44,
>  from read.c:33:
> In function ‘mbstowcs’,
> inlined from ‘read_symbol_name’ at 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 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)’