D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 warning: Macro expanded in comment on line 9: %{name}-%{version}.tar.gz warning: Macro expanded in comment on line 10: %{name}.1.gz Installing /home/baz/rpmbuild/SRPMS/pngcheck-4.0.0-1.mga.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.x1OUFN Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.AB8y1P + umask 022 + cd /home/baz/rpmbuild/BUILD/pngcheck-4.0.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD/pngcheck-4.0.0-build + rm -rf pngcheck-4.0.0 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/pngcheck-4.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pngcheck-4.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.zFPWFy + umask 022 + cd /home/baz/rpmbuild/BUILD/pngcheck-4.0.0-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pngcheck-4.0.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j4 V=1 VERBOSE=1 -f Makefile.unx gcc -O -Werror -Wall -Wextra -Wundef -Wpointer-arith -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wno-implicit-fallthrough -Wwrite-strings -I../zlib -DUSE_ZLIB -o pngsplit gpl/pngsplit.c -L../zlib -lz gpl/pngsplit.c: In function 'pngsplit': gpl/pngsplit.c:333:25: error: comparison of integer expressions of different signedness: 'ulg' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare] 333 | while (chunklen > incnt) { | ^ cc1: all warnings being treated as errors make: *** [Makefile.unx:67: pngsplit] Error 1 make: *** Waiting for unfinished jobs.... gcc -O -Werror -Wall -Wextra -Wundef -Wpointer-arith -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wno-implicit-fallthrough -Wwrite-strings -I../zlib -DUSE_ZLIB -o png-fix-IDAT-windowsize gpl/png-fix-IDAT-windowsize.c -L../zlib -lz gpl/png-fix-IDAT-windowsize.c: In function 'png_fix_IDAT_windowsize': gpl/png-fix-IDAT-windowsize.c:209:9: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 209 | "grayscale", "[INVALID]", "RGB", "palette", | ^~~~~~~~~~~ gpl/png-fix-IDAT-windowsize.c:209:22: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 209 | "grayscale", "[INVALID]", "RGB", "palette", | ^~~~~~~~~~~ gpl/png-fix-IDAT-windowsize.c:209:35: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 209 | "grayscale", "[INVALID]", "RGB", "palette", | ^~~~~ gpl/png-fix-IDAT-windowsize.c:209:42: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 209 | "grayscale", "[INVALID]", "RGB", "palette", | ^~~~~~~~~ gpl/png-fix-IDAT-windowsize.c:210:9: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 210 | "gray+alpha", "[INVALID]", "RGBA" | ^~~~~~~~~~~~ gpl/png-fix-IDAT-windowsize.c:210:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 210 | "gray+alpha", "[INVALID]", "RGBA" | ^~~~~~~~~~~ gpl/png-fix-IDAT-windowsize.c:210:36: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 210 | "gray+alpha", "[INVALID]", "RGBA" | ^~~~~~ cc1: all warnings being treated as errors make: *** [Makefile.unx:70: png-fix-IDAT-windowsize] Error 1 gcc -O -Werror -Wall -Wextra -Wundef -Wpointer-arith -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wno-implicit-fallthrough -Wwrite-strings -I../zlib -DUSE_ZLIB -o pngcheck pngcheck.c -L../zlib -lz pngcheck.c: In function 'pngcheck': pngcheck.c:1964:36: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] 1964 | if (i == Z_OK || i == Z_STREAM_ERROR) | ^~ cc1: all warnings being treated as errors make: *** [Makefile.unx:64: pngcheck] Error 1 error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.zFPWFy (%build) RPM build warnings: Macro expanded in comment on line 9: %{name}-%{version}.tar.gz Macro expanded in comment on line 10: %{name}.1.gz RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.zFPWFy (%build) I: [iurt_root_command] ERROR: chroot