Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec'], chrootPath='/var/lib/mock/f33-build-419879-62956/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595894400 Wrote: /builddir/build/SRPMS/jpcap-0.7-28.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec'], chrootPath='/var/lib/mock/f33-build-419879-62956/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595894400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9kFqCE + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jpcap-0.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/jpcap-0.7.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd jpcap-0.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's:System.loadLibrary("jpcap"):System.load("/usr/lib64/jpcap/libjpcap.so"):g' src/java/jpcap/JpcapWriter.java + sed -i 's:System.loadLibrary("jpcap"):System.load("/usr/lib64/jpcap/libjpcap.so"):g' src/java/jpcap/JpcapCaptor.java + rm -rf lib/Jpcap.dll lib/jpcap.jar + dos2unix ChangeLog dos2unix: converting file ChangeLog to Unix format... + dos2unix README dos2unix: converting file README to Unix format... + dos2unix doc/javadoc/package-list dos2unix: converting file doc/javadoc/package-list to Unix format... + dos2unix doc/javadoc/stylesheet.css dos2unix: converting file doc/javadoc/stylesheet.css to Unix format... + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.V1RDvE + umask 022 + cd /builddir/build/BUILD + cd jpcap-0.7 + export JAVA_HOME=/usr/lib/jvm/jre-11-openjdk + JAVA_HOME=/usr/lib/jvm/jre-11-openjdk + set JAVA_HOME=/usr/lib/jvm/jre-11-openjdk + mkdir bin + JAVA_HOME=/usr/lib/jvm/jre-11-openjdk + ant jar Buildfile: /builddir/build/BUILD/jpcap-0.7/build.xml compile: [javac] /builddir/build/BUILD/jpcap-0.7/build.xml:29: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 16 source files to /builddir/build/BUILD/jpcap-0.7/bin [javac] Note: /builddir/build/BUILD/jpcap-0.7/src/java/jpcap/packet/IPPacket.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. jar: [jar] Building jar: /builddir/build/BUILD/jpcap-0.7/lib/jpcap.jar BUILD SUCCESSFUL Total time: 4 minutes 48 seconds + cd src/c + make clean rm libjpcap.so rm: cannot remove 'libjpcap.so': No such file or directory make: [Makefile:56: clean] Error 1 (ignored) + make -j4 'CC=gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -shared -L. -I/usr/lib/jvm/jre-11-openjdk/include -I/usr/lib/jvm/jre-11-openjdk/include/linux\ -I/usr/include\ JpcapCaptor.c JpcapSender.c JpcapWriter.c\ packet_arp.c packet_datalink.c packet_icmp.c packet_ip.c\ packet_ipv6.c packet_tcp.c packet_udp.c\ -o libjpcap.so -lpcap JpcapCaptor.c:6:9: fatal error: jni.h: No such file or directory 6 | #include | ^~~~~~~ compilation terminated. JpcapSender.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. JpcapWriter.c:2:9: fatal error: jni.h: No such file or directory 2 | #include | ^~~~~~~ compilation terminated. packet_arp.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. packet_datalink.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. packet_icmp.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. packet_ip.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. packet_ipv6.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. packet_tcp.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. packet_udp.c:1:9: fatal error: jni.h: No such file or directory 1 | #include | ^~~~~~~ compilation terminated. make: *** [Makefile:49: libjpcap.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.V1RDvE (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.V1RDvE (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jpcap.spec