cross compile "rpm" and dependencies for riscv arch

69 views
Skip to first unread message

Billa Surendra

unread,
Aug 22, 2022, 8:19:13 AM8/22/22
to RISC-V SW Dev
Hi all,

Recently I have created an embedded Linux distro for RISC-V (RV64IMAFD) target.
Present my Linux distro status:

1. GCC native compiler (working)
2. Binutils (working)
3. glibc (working)
4. Some basic packages and shells (working)

To proceed further I need "rpm" and dependencies are required in my target image.
Compiling those packages in a limited environment I am facing difficulty.

Please suggest to me how to cross compile   "rpm" and dependencies manually in the host computer. I am not figuring out list packages required for that. Anyone has an idea regarding this please help me.

Thanks
Billa


Tommy Murphy

unread,
Aug 22, 2022, 9:22:40 AM8/22/22
to Billa Surendra, RISC-V SW Dev

> 1. GCC native compiler (working)

What do you mean by "native"?
Do you mean GCC that runs on a RISC-V host?
And presumably this is the RISC-V Linux GCC and not the newlib/bare metal version that you previously used to compile the kernel?

> Compiling those packages in a limited environment I am facing difficulty.

What exactly do you mean by "limited"?

>Please suggest to me how to cross compile "rpm" and dependencies manually in the host computer

What do you mean by "host computer"?
Do you mean that you're trying to cross compile from a non-RISC-V host computer?

What have you tried so far and what issues did you face?

You probably would be better off asking about rpm build issues on the rpm mailing lists etc.


Rpm is normally for Red Hat/CentOS family Linuxes. Is that the category of distro that you've created for your RISC-V target? Are you sure that rpm is the appropriate package management tool for your RISC-V Linux?

If your RISC-V target is rv64imafd without the C compressed extension and most or all existing RISC-V Linuxes and their package repo contents are compiled with the C extension, doesn't that mean that you're going to also need to compile all relevant packages and set up your own package repo?


Billa Surendra

unread,
Aug 22, 2022, 11:18:03 AM8/22/22
to Tommy Murphy, RISC-V SW Dev


On Mon, 22 Aug, 2022, 6:52 pm Tommy Murphy, <tommy_...@hotmail.com> wrote:

> 1. GCC native compiler (working)

What do you mean by "native"?
Do you mean GCC that runs on a RISC-V host?

Yes, gcc compiler runs on riscv host.

And presumably this is the RISC-V Linux GCC and not the newlib/bare metal version that you previously used to compile the kernel?

> Compiling those packages in a limited environment I am facing difficulty.

What exactly do you mean by "limited"?

Less number of packages are installed in my Linux distribution.

>Please suggest to me how to cross compile "rpm" and dependencies manually in the host computer

What do you mean by "host computer"?
Do you mean that you're trying to cross compile from a non-RISC-V host computer?

Yes, I am cross compiling packages on non riscv machine.

What have you tried so far and what issues did you face?

I tried cross compiling rpm package on non riscv machine with cross compilers, but I am getting error like libgcrypt not found.

You probably would be better off asking about rpm build issues on the rpm mailing lists etc.


Rpm is normally for Red Hat/CentOS family Linuxes. Is that the category of distro that you've created for your RISC-V target? Are you sure that rpm is the appropriate package management tool for your RISC-V Linux?

Yes, I am planning to use rpm for package management. After installing rpm package on riscv Linux distribution, planning to start rebuild SRPM on it.

Tommy Murphy

unread,
Aug 22, 2022, 6:05:47 PM8/22/22
to Billa Surendra, RISC-V SW Dev
You haven't clearly described/explained your setup for and approach to compiling the rpm tool or the error(s?) that you encountered. I think that you need to ask questions about compiling this tool on the rpm mailing lists/forums in the link to the rpm repo that I posted earlier.

Tommy Murphy

unread,
Aug 22, 2022, 6:11:48 PM8/22/22
to Billa Surendra, RISC-V SW Dev
And, once again, you seem to be posting repeatedly about the same or a very similar problem on this mailing list and ignoring possibly useful contributions from others for some reason.


Reply all
Reply to author
Forward
0 new messages