<
billa.i...@gmail.com> wrote:
>
>
>
> On Tue, 17 May, 2022, 8:54 pm Khem Raj, <
raj....@gmail.com> wrote:
>>
>> On Tue, May 17, 2022 at 5:27 AM Billa Surendra
>> <
billa.i...@gmail.com> wrote:
>> >
>> > Dear All,
>> >
>> > I am trying to rebuild rpm-4.17.0-1 SRPM in my RISC-V Linux distro. I am rebuilding with rpmbuild -ba rpm.spec command. The rebuilding went fine for some time, after that it gave an error.
>> >
>> > Error:
>> >
>> > libtool: link: gcc -shared -fPIC -DPIC .libs/argv.o .libs/base64.o .libs/digest.o .libs/expression.o .libs/macro.o .libs/rpmhook.o .libs/rpmio.o .libs/rpmlog.o .libs/rpmmalloc.o .libs/rpmpgp.o .libs/rpmsq.o .libs/rpmsw.o .libs/url.o .libs/rpmvercmp.o .libs/rpmver.o .libs/rpmstring.o .libs/rpmfileutil.o .libs/rpmglob.o .libs/rpmkeyring.o .libs/rpmstrpool.o .libs/digest_openssl.o .libs/rpmlua.o -Wl,--whole-archive ../misc/.libs/libmisc.a ../luaext/.libs/libluaext.a -Wl,--no-whole-archive -lbz2 -lz /usr/lib/libpopt.so /usr/lib/liblzma.so -lzstd -llua -lm /usr/lib/libaudit.so -L/usr/lib /usr/lib/libcap-ng.so -lcrypto -ldl -lpthread %{_hardened_ldflags} -fstack-protector -O2 -g -pthread -Wl,-soname -Wl,librpmio.so.9 -o .libs/librpmio.so.9.1.3
>> > gcc: error: %{_hardened_ldflags}: No such file or directory
>> > make[2]: *** [Makefile:625:
librpmio.la] Error 1
>> > make[2]: Leaving directory '/root/rpmbuild/BUILD/rpm-4.16.1.3/rpmio'
>> > make[1]: *** [Makefile:1366: all-recursive] Error 1
>> > make: *** [Makefile:795: all] Error 2
>> > error: Bad exit status from /usr/var/tmp/rpm-tmp.HY1ivj (%build)
>> >
>> >
>> > RPM build errors:
>> > Could not canonicalize hostname: C-DAC
>> > Bad exit status from /usr/var/tmp/rpm-tmp.HY1ivj (%build)
>> >
>> > Can anyone please suggest to me where I am doing wrong?. I have understood that problem with GCC but I am not sure what I have to do.
>> >
>>
>> it looks like you need to adapt rpm to your platform.
>
>
> rpm package installed already.
yeah maybe thats not enough. See the error
This need to be fed into it somehow. I dont know much about how rpm