Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/samba.spec'], chrootPath='/var/lib/mock/f31-build-117360-34718/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': 'C.UTF-8'}shell=Falselogger=timeout=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/samba.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': 'C.UTF-8'} and shell False BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 196: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 408: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 510: %endif # with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 532: %endif # with_libwbclient BUILDSTDERR: sh: /usr/bin/perl: No such file or directory BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 776: %endif # with_clustering_support BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1037: %endif # ! with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1042: %endif # with testsuite BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1094: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1150: %endif # with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1476: %endif # ! with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1481: %endif # ! with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1649: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1772: %endif # ! with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1776: %endif # ! with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1823: %endif # with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1836: %endif # with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 3463: %endif # with_clustering_support Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1568678400 Wrote: /builddir/build/SRPMS/samba-4.11.0-3.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/samba.spec'], chrootPath='/var/lib/mock/f31-build-117360-34718/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': 'C.UTF-8'}shell=Falselogger=timeout=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/samba.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': 'C.UTF-8'} and shell False BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 196: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 408: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 510: %endif # with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 532: %endif # with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 776: %endif # with_clustering_support BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1037: %endif # ! with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1042: %endif # with testsuite BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1094: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1150: %endif # with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1476: %endif # ! with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1481: %endif # ! with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1649: %endif # with_dc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1772: %endif # ! with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1776: %endif # ! with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1823: %endif # with_libsmbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1836: %endif # with_libwbclient BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 3463: %endif # with_clustering_support Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1568678400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.s9Rcfz + umask 022 + cd /builddir/build/BUILD + xzcat /builddir/build/SOURCES/samba-4.11.0.tar.xz + gpgv2 --quiet --keyring /builddir/build/SOURCES/gpgkey-52FBC0B86D954B0843324CDC6F33915B6568B7EA.gpg /builddir/build/SOURCES/samba-4.11.0.tar.asc - BUILDSTDERR: gpgv: Signature made Tue Sep 17 08:36:19 2019 UTC BUILDSTDERR: gpgv: using DSA key 52FBC0B86D954B0843324CDC6F33915B6568B7EA BUILDSTDERR: gpgv: issuer "samba-bugs@samba.org" BUILDSTDERR: gpgv: Good signature from "Samba Distribution Verification Key " + cd /builddir/build/BUILD + rm -rf samba-4.11.0 + /usr/bin/xz -dc /builddir/build/SOURCES/samba-4.11.0.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd samba-4.11.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/pidl.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.j2IOBD + umask 022 + cd /builddir/build/BUILD + cd samba-4.11.0 BUILDSTDERR: ++ echo -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld BUILDSTDERR: ++ sed -e s/-Wl,-z,defs//g + export 'python_LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + python_LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fuse-ld=gold' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fuse-ld=gold' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fuse-ld=gold' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ 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 --enable-fhs --with-piddir=/run --with-sockets-dir=/run/samba --with-modulesdir=/usr/lib64/samba --with-pammodulesdir=/usr/lib64/security --with-lockdir=/var/lib/samba/lock --with-statedir=/var/lib/samba --with-cachedir=/var/lib/samba --disable-rpath-install --with-shared-modules=idmap_ad,idmap_rid,idmap_ldap,idmap_hash,idmap_tdb2,pdb_tdbsam,pdb_ldap,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,auth_wbc,auth_unix,auth_server,auth_script,auth_samba4,vfs_dfs_samba4 '--bundled-libraries=!zlib,!popt,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!tdb,!pytdb,!ldb,!pyldb,!pyldb-util' --with-pam --with-pie --with-relro --without-fam --with-system-mitkrb5 --with-experimental-mit-ad-dc --with-cluster-support --with-profiling-data --with-systemd --systemd-install-services --with-systemddir=/usr/lib/systemd/system --systemd-smb-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --systemd-nmb-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --systemd-winbind-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --systemd-samba-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba Setting top to : /builddir/build/BUILD/samba-4.11.0 Setting out to : /builddir/build/BUILD/samba-4.11.0/bin Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for program 'git' : /usr/bin/git Checking for c flags '-MMD' : yes Checking for program 'gdb' : not found Checking for header sys/utsname.h : yes Checking uname sysname type : not found Checking uname machine type : not found Checking uname release type : not found Checking uname version type : not found Checking for header stdio.h : yes Checking simple C program : not found BUILDSTDERR: The configuration failed BUILDSTDERR: (complete log in /builddir/build/BUILD/samba-4.11.0/bin/config.log) RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.j2IOBD (%build) BUILDSTDERR: extra tokens at the end of %endif directive in line 196: %endif # with_dc BUILDSTDERR: extra tokens at the end of %endif directive in line 408: %endif # with_dc BUILDSTDERR: extra tokens at the end of %endif directive in line 510: %endif # with_libsmbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 532: %endif # with_libwbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 776: %endif # with_clustering_support BUILDSTDERR: extra tokens at the end of %endif directive in line 1037: %endif # ! with_dc BUILDSTDERR: extra tokens at the end of %endif directive in line 1042: %endif # with testsuite BUILDSTDERR: extra tokens at the end of %endif directive in line 1094: %endif # with_dc BUILDSTDERR: extra tokens at the end of %endif directive in line 1150: %endif # with_libwbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 1476: %endif # ! with_libwbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 1481: %endif # ! with_libsmbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 1649: %endif # with_dc BUILDSTDERR: extra tokens at the end of %endif directive in line 1772: %endif # ! with_libsmbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 1776: %endif # ! with_libwbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 1823: %endif # with_libsmbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 1836: %endif # with_libwbclient BUILDSTDERR: extra tokens at the end of %endif directive in line 3463: %endif # with_clustering_support BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.j2IOBD (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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/samba.spec