I’m trying to compile GSL with RISCv compiler.
if i configure GSL for cross comiling with the following command
./configure --host=riscv64-unknown-elf --prefix=$ path to riscv install toolchain/bin
then it gives the following error
riscv-unknown-elf-gcc/lib/libgsl.a(fdiv.o): ABI is incompatible with that of the selected emulation:
elf64-littleriscv' does not matchelf32-littleriscv’
and if i use 32bit flags in the config command
./configure --host=riscv64-unknown-elf --prefix=$ path to riscv install toolchain/bin --with-march=rv32i --with-mabi=ilp32
then the failure is incompatible libraries.
Can anyone please guide me what is the mistake and what i’m missing.