+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/wgrib.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.34Dj2g + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf wgrib-1.8.1.2c + /usr/bin/mkdir -p wgrib-1.8.1.2c + cd wgrib-1.8.1.2c + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /builddir/build/SOURCES/wgrib.c.v1.8.1.2c wgrib.c + cp /builddir/build/SOURCES/Changes . + cp /builddir/build/SOURCES/NOTICE . + cp /builddir/build/SOURCES/double_prec.txt . + cp /builddir/build/SOURCES/formats.txt . + cp /builddir/build/SOURCES/formats_update.txt . + cp /builddir/build/SOURCES/grib2ieee.txt . + cp /builddir/build/SOURCES/misc.txt . + cp /builddir/build/SOURCES/porting.txt . + cp /builddir/build/SOURCES/usertables.txt . + cp /builddir/build/SOURCES/tricks.wgrib . + cp /builddir/build/SOURCES/land.grb . + cp /builddir/build/SOURCES/testbin.c . + cp /builddir/build/SOURCES/testbin.f . + echo 'Patch #1 (testbin.c.patch):' Patch #1 (testbin.c.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file testbin.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gDXkBi + umask 022 + cd /builddir/build/BUILD + cd wgrib-1.8.1.2c + gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -o wgrib wgrib.c wgrib.c: In function 'main': wgrib.c:1060:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation] else if (gds && GDS_Harmonic(gds)) ^~ wgrib.c:1064:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (gds && GDS_Harmonic_type(gds) == 1) ^~ wgrib.c: In function 'EC_ext': wgrib.c:10858:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ wgrib.c:10859:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' strcpy(string, "Perturbed forecasts"); break; ^~~~~ wgrib.c: In function 'wrtieee': wgrib.c:1949:16: warning: 'h4[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] buff[nbuf++] = h4[1]; ~~~~~~~~~~~~~^~~~~~~ wgrib.c:1950:16: warning: 'h4[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] buff[nbuf++] = h4[0]; ~~~~~~~~~~~~~^~~~~~~ wgrib.c:1947:16: warning: 'h4[3]' may be used uninitialized in this function [-Wmaybe-uninitialized] buff[nbuf++] = h4[3]; ~~~~~~~~~~~~~^~~~~~~ wgrib.c:1948:16: warning: 'h4[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] buff[nbuf++] = h4[2]; ~~~~~~~~~~~~~^~~~~~~ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.8eTr7j + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 + cd wgrib-1.8.1.2c + rm -rf /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 + install -d -m 755 /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/bin + install -m 755 wgrib /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/bin/ + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: wgrib-1.8.1.2c-8.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Ive2yd + umask 022 + cd /builddir/build/BUILD + cd wgrib-1.8.1.2c + DOCDIR=/builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + cp -pr Changes /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + cp -pr double_prec.txt formats.txt formats_update.txt grib2ieee.txt misc.txt porting.txt usertables.txt /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + cp -pr tricks.wgrib /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + cp -pr testbin.c testbin.f /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + cp -pr land.grb /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64/usr/share/doc/wgrib + exit 0 Provides: wgrib = 1.8.1.2c-8.fc28 wgrib(riscv-64) = 1.8.1.2c-8.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 Wrote: /builddir/build/SRPMS/wgrib-1.8.1.2c-8.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/wgrib-1.8.1.2c-8.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.01Mt47 + umask 022 + cd /builddir/build/BUILD + cd wgrib-1.8.1.2c + rm -rf /builddir/build/BUILDROOT/wgrib-1.8.1.2c-8.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff