Bug#1068119: s390-tools: FTBFS: ../../include/boot/s390.h:418:17: error: array subscript 0 is outside array bounds of ‘void[0]’ [-Werror=array-bounds=]

Sebastian Ramacher <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <ZgkeXslhlji0Qyv9__5265.03852322406$1711873837$gmane$org@ramacher.at>
Source: s390-tools
Version: 2.16.0-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source
X-Debbugs-Cc: [email protected]

https://buildd.debian.org/status/fetch.php?pkg=s390-tools&arch=s390x&ver=2.16.0-2%2Bb4&stamp=1711742603&raw=0

gcc -I ../../include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -fno-pie -Os -g -I../..//zipl/boot -I../..//zipl/include -I../..//include -DENABLE_SCLP_ASCII=1 -DS390_TOOLS_RELEASE=2.16.0-build-20240329 -fno-builtin -ffreestanding -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -fno-stack-protector -fexec-charset=IBM1047 -m64 -mpacked-stack -mstack-size=4096 -mstack-guard=128 -msoft-float -Wall -Wformat-security -Wextra -Werror -c stage3a.c -o stage3a.o
In file included from stage3a.c:14:
In function ‘__test_facility’,
    inlined from ‘test_facility’ at ../../include/boot/s390.h:428:9,
    inlined from ‘start’ at stage3a.c:42:7:
../../include/boot/s390.h:418:17: error: array subscript 0 is outside array bounds of ‘void[0]’ [-Werror=array-bounds=]
  418 |         return (*ptr & (0x80 >> (nr & 7))) != 0;
      |                 ^~~~
In function ‘start’:
cc1: note: source object is likely at address zero
cc1: all warnings being treated as errors
make[4]: *** [../../common.mak:253: stage3a.o] Error 1

Cheers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.