+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ed.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.JjYhIm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ed-1.14.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/ed-1.14.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ed-1.14.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -f stamp-h.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.BFZjSp + umask 022 + cd /builddir/build/BUILD + cd ed-1.14.1 + CFLAGS='-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 ' + export CFLAGS + CXXFLAGS='-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 ' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --exec-prefix=/ configure: WARNING: unrecognized option: '--build=riscv64-redhat-linux-gnu' configure: WARNING: unrecognized option: '--host=riscv64-redhat-linux-gnu' configure: WARNING: unrecognized option: '--disable-dependency-tracking' configure: WARNING: unrecognized option: '--sbindir=/usr/sbin' configure: WARNING: unrecognized option: '--sysconfdir=/etc' configure: WARNING: unrecognized option: '--datadir=/usr/share' configure: WARNING: unrecognized option: '--includedir=/usr/include' configure: WARNING: unrecognized option: '--libdir=/usr/lib64' configure: WARNING: unrecognized option: '--libexecdir=/usr/libexec' configure: WARNING: unrecognized option: '--localstatedir=/var' configure: WARNING: unrecognized option: '--sharedstatedir=/var/lib' creating config.status creating Makefile VPATH = . prefix = /usr exec_prefix = bindir = /usr/bin datarootdir = $(prefix)/share infodir = /usr/share/info mandir = /usr/share/man program_prefix = CC = gcc CPPFLAGS = CFLAGS = -Wall -W -O2 LDFLAGS = OK. Now you can run make. + make -j4 'CFLAGS=-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 ' 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 -c -o buffer.o buffer.c 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 -c -o carg_parser.o carg_parser.c 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 -c -o global.o global.c 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 -c -o io.o io.c 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 -DPROGVERSION=\"1.14.1\" -c -o main.o main.c 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 -c -o main_loop.o main_loop.c 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 -c -o regex.o regex.c 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 -c -o signal.o signal.c main_loop.c: In function 'exec_command': main_loop.c:617:15: warning: this 'while' clause does not guard... [-Wmisleading-indentation] case '#': while( *(*ibufpp)++ != '\n' ) ; ^~~~~ main_loop.c:618:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' break; ^~~~~ cat ./red.in > red chmod a+x red 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 ed buffer.o carg_parser.o global.o io.o main.o main_loop.o regex.o signal.o + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.I4IJyq + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64 + cd ed-1.14.1 + rm -rf /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64//usr/share/man/man1 + make install DESTDIR=/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64 bindir=/bin mandir=/usr/share/man if [ ! -d "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/bin" ] ; then install -d -m 755 "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/bin" ; fi install -m 755 ./ed "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/bin/ed" install -m 755 ./red "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/bin/red" if [ ! -d "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/info" ] ; then install -d -m 755 "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/info" ; fi rm -f "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/info/ed.info"* install -m 644 ./doc/ed.info "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/info/ed.info" if /bin/sh -c "install-info --version" > /dev/null 2>&1 ; then \ install-info --info-dir="/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/info" "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/info/ed.info" ; \ fi if [ ! -d "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/man/man1" ] ; then install -d -m 755 "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/man/man1" ; fi rm -f "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/man/man1/ed.1"* rm -f "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/man/man1/red.1"* install -m 644 ./doc/ed.1 "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/man/man1/ed.1" cd "/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/man/man1" && ln -s "ed.1" "red.1" + rm -f /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64//usr/share/info/dir + gzip -9qnf /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64//usr/share/info/ed.info + /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 mangling shebang in ./bin/red from #! /bin/sh to #!/bin/sh Processing files: ed-1.14.1-4.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.0AmATJ + umask 022 + cd /builddir/build/BUILD + cd ed-1.14.1 + DOCDIR=/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + cp -pr ChangeLog /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + cp -pr NEWS /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + cp -pr README /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + cp -pr TODO /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + cp -pr AUTHORS /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/doc/ed + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.aLCbaD + umask 022 + cd /builddir/build/BUILD + cd ed-1.14.1 + LICENSEDIR=/builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/licenses/ed + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/licenses/ed + cp -pr COPYING /builddir/build/BUILDROOT/ed-1.14.1-4.fc28.riscv64/usr/share/licenses/ed + exit 0 Provides: ed = 1.14.1-4.fc28 ed(riscv-64) = 1.14.1-4.fc28 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /sbin/install-info Requires(preun): /bin/sh /sbin/install-info Requires: /bin/sh 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/ed-1.14.1-4.fc28.riscv64 Wrote: /builddir/build/SRPMS/ed-1.14.1-4.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/ed-1.14.1-4.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.YDKAz5 + umask 022 + cd /builddir/build/BUILD + cd ed-1.14.1 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff