passwd,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) BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.tsDdWU (%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 RPM build errors: 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.tsDdWU (%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