rebuilding rpm SRPM failed on RISC-V Linux

27 views
Skip to first unread message

Billa Surendra

unread,
Jun 1, 2022, 8:47:36 AM6/1/22
to RISC-V SW Dev
Dear All,

I am having a problem in rebuilding the rpm SRPM package on RISC-V Linux. I have installed rpm-4.16.1.3 package from source and now I am trying to rebuild rpm SRPM with the rpmbuild -ba rpm.spec command. Here I am getting the following errors. Can anyone please help me to solve this problem.

make[7]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/plugins'
make[6]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/plugins'
Making install in tests
make[6]: Entering directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/tests'
make[7]: Entering directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/tests'
make[7]: Nothing to be done for 'install-exec-am'.
make[7]: Nothing to be done for 'install-data-am'.
make[7]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/tests'
make[6]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/tests'
make[5]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3'
make[4]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3'
cp -r ./data/ testing/
for d in dev etc magic tmp var; do if [ ! -d testing/${d} ]; then mkdir testing/${d}; fi; done
for node in urandom stdin stderr stdout null full; do ln -s /dev/${node} testing/dev/${node}; done
for cf in hosts resolv.conf passwd shadow group gshadow mtab ; do [ -f /etc/${cf} ] && ln -s /etc/${cf} testing/etc/${cf}; done
make[3]: *** [Makefile:694: populate_testing] Error 1
make[3]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/tests'
make[2]: *** [Makefile:534: check-am] Error 2
make[2]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/tests'
make[1]: *** [Makefile:1366: check-recursive] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3'
make: *** [Makefile:1666: check] Error 2
+ cat tests/rpmtests.log
cat: can't open 'tests/rpmtests.log': No such file or directory
error: Bad exit status from /usr/var/tmp/rpm-tmp.n99IC8 (%check)

Thanks
Billa Surendra

Fu Wei

unread,
Jun 1, 2022, 9:27:45 AM6/1/22
to Billa Surendra, RISC-V SW Dev
Hi Billa,
we have built rpm-4.17.0-9.fc36.src.rpm successfully, If you need ,
we can share the repo, we are plan to move all the package to CAS's
cloud server.
according to your information, I guess the build environment is not
right , I suggest you that maybe you can try mock build , but not
"rpmbuild" directly .

Billa Surendra <billa.i...@gmail.com> 于2022年6月1日周三 20:47写道:
> --
> You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
> To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CAKBF_5pLRQ6c-FTMt%2BTS-MnnsZM5orVinFQXSLdSHuVAfhZrSQ%40mail.gmail.com.

Andreas Schwab

unread,
Jun 1, 2022, 9:47:35 AM6/1/22
to Billa Surendra, RISC-V SW Dev
On Jun 01 2022, Billa Surendra wrote:

> for cf in hosts resolv.conf passwd shadow group gshadow mtab ; do [ -f
> /etc/${cf} ] && ln -s /etc/${cf} testing/etc/${cf}; done

If /etc/mtab doesn't exist, the loop will end unsucessfully because the
last executed command failed. This is just sloppy programming.

--
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Billa Surendra

unread,
Jun 4, 2022, 12:58:47 AM6/4/22
to Andreas Schwab, RISC-V SW Dev
/etc/mtab existing in my OS.
Reply all
Reply to author
Forward
0 new messages