riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
570 stars 304 forks source link

error when build RV32 #302

Closed buloruabutata closed 11 months ago

buloruabutata commented 11 months ago

cmd: ../configure --prefix=$RISCV --host=riscv32-unknown-elf --with-arch=rv32i error: /riscv/bin/../lib/gcc/riscv32-unknown-elf/12.2.0/libgcc.a(_divdi3.o): can't link double-float modules with soft-float modules

cmd: ../configure --prefix=$RV64Elf --host=riscv64-unknown-elf --with-arch=rv32i error:

riscv64-unknown-elf/bin/ld:` ./libmachine.a(muldiv_emulation.o): in function `.L13':
muldiv_emulation.c:(.text+0xf8): undefined reference to `__mulsi3''

if cmd uses "--with-abi=ilp32", RV32 keep same error, RV64 error with: riscv64/sysroot/usr/include/gnu/stubs.h:8:11: fatal error: gnu/stubs-ilp32.h: No such file or directory

Any solutions?

buloruabutata commented 11 months ago

I download riscv gnu toolchain from: https://github.com/riscv-collab/riscv-gnu-toolchain/releases