Source: chiark-tcl Version: 1.2.1 Severity: important User: debian-...@lists.debian.org Usertag: ftbfs-gcc-8
Hi, I recently performed an (unofficial) archive rebuild with GCC 8 on mips64el. The main purpose of the rebuild was to discover mips toolchain regressions, however I noticed this error in the logs which might be interesting to you: > mips64el-linux-gnuabi64-gcc -g -Wall -Wmissing-prototypes -Wstrict-prototypes > -Werror -O2 -Wno-pointer-sign -fno-strict-aliasing -fPIC > -I/usr/include/tcl8.6 -I../base -DTCL_MEM_DEBUG -MMD -o adns.o -c adns.c > adns.c: In function 'query_submit': > adns.c:497:40: error: division 'sizeof (const int *) / sizeof (int)' does not > compute the number of array elements [-Werror=sizeof-pointer-div] > for (af=aftry; af < af + sizeof(af)/sizeof(*af); af++) { > ^ > adns.c:496:16: note: first 'sizeof' operand was declared here > const int *af; > ^~ > cc1: all warnings being treated as errors > ../base/final.make:23: recipe for target 'adns.o' failed > make[2]: *** [adns.o] Error 1 > make[2]: Leaving directory '/<<PKGBUILDDIR>>/adns' > Makefile:15: recipe for target 'all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory '/<<PKGBUILDDIR>>' > debian/rules:47: recipe for target 'build-arch' failed > make: *** [build-arch] Error 2 > dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit > status 2 Probably the for loop condition should be: af < aftry + sizeof(aftry)/sizeof(*aftry) James
signature.asc
Description: OpenPGP digital signature