I set ../configure --prefix=$RISCV --host=riscv64-unknown-elf --with-mabi=ilp64 and make
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(file.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(file.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(frontend.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(frontend.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(elf.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(elf.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(console.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(console.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(mmap.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(mmap.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(usermem.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(usermem.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(entry.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(entry.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(handlers.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(handlers.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(syscall.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(syscall.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(mtrap.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(mtrap.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(minit.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(minit.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(htif.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(htif.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(uart.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(uart.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(uart16550.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(uart16550.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(uart_litex.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(uart_litex.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(finisher.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(finisher.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(flush_icache.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(flush_icache.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(fdt.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(fdt.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(emulation.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(emulation.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(fp_emulation.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(fp_emulation.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(misaligned_ldst.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(misaligned_ldst.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_add.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_add.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_div.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_div.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_eq.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_eq.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_lt.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_lt.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_lt_quiet.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_lt_quiet.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_mul.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_mul.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_sqrt.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_sqrt.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_to_f64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_to_f64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_classify.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_classify.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_add.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_add.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_div.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_div.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_eq.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_eq.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_lt.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_lt.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_lt_quiet.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_lt_quiet.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_mul.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_mul.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_sqrt.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_sqrt.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_to_f32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_to_f32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_to_ui64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_to_ui64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_classify.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_classify.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_addMagsF32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_addMagsF32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_addMagsF64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_addMagsF64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecip32_1.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecip32_1.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecipSqrt32_1.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecipSqrt32_1.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_mul64To128M.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_mul64To128M.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_mulAddF32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_mulAddF32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_mulAddF64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_mulAddF64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_negXM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_negXM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normSubnormalF32Sig.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normSubnormalF32Sig.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normSubnormalF64Sig.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normSubnormalF64Sig.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_roundMToUI64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_roundMToUI64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_roundPackToF32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_roundPackToF32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_roundPackToF64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_roundPackToF64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftLeftM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftLeftM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftRightJam32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftRightJam32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftRightJam64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftRightJam64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftRightJamM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftRightJamM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftLeftM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftLeftM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftRightM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftRightM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftRightJam64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftRightJam64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftRightJamM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftRightJamM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_subM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_subM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_subMagsF32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_subMagsF32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_subMagsF64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_subMagsF64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(ui64_to_f64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(ui64_to_f64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_propagateNaNF32UI.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_propagateNaNF32UI.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_propagateNaNF64UI.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_propagateNaNF64UI.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_addM.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_addM.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecip_1Ks.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecip_1Ks.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecipSqrt_1Ks.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecipSqrt_1Ks.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_countLeadingZeros32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_countLeadingZeros32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_countLeadingZeros64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_countLeadingZeros64.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_countLeadingZeros8.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_countLeadingZeros8.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normRoundPackToF32.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normRoundPackToF32.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normRoundPackToF64.o): can't link double-float modules with soft-float modules
/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normRoundPackToF64.o)
collect2: error: ld returned 1 exit status
make: *** [Makefile:336:pk]
I don't know how to solve. And It doesn't seem to be riscv-unkown-elf-gcc problcdem because I use it to complie my hello.c and succeed. Could someone help me, Thank you
I set
../configure --prefix=$RISCV --host=riscv64-unknown-elf --with-mabi=ilp64
and make/opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(file.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(file.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(frontend.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(frontend.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(elf.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(elf.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(console.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(console.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(mmap.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(mmap.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(usermem.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(usermem.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(entry.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(entry.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(handlers.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(handlers.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libpk.a(syscall.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libpk.a(syscall.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(mtrap.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(mtrap.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(minit.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(minit.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(htif.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(htif.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(uart.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(uart.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(uart16550.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(uart16550.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(uart_litex.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(uart_litex.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(finisher.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(finisher.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(flush_icache.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(flush_icache.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(fdt.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(fdt.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(emulation.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(emulation.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(fp_emulation.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(fp_emulation.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libmachine.a(misaligned_ldst.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libmachine.a(misaligned_ldst.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_add.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_add.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_div.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_div.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_eq.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_eq.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_lt.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_lt.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_lt_quiet.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_lt_quiet.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_mul.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_mul.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_sqrt.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_sqrt.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_to_f64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_to_f64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f32_classify.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f32_classify.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_add.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_add.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_div.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_div.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_eq.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_eq.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_lt.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_lt.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_lt_quiet.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_lt_quiet.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_mul.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_mul.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_sqrt.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_sqrt.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_to_f32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_to_f32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_to_ui64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_to_ui64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(f64_classify.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(f64_classify.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_addMagsF32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_addMagsF32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_addMagsF64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_addMagsF64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecip32_1.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecip32_1.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecipSqrt32_1.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecipSqrt32_1.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_mul64To128M.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_mul64To128M.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_mulAddF32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_mulAddF32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_mulAddF64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_mulAddF64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_negXM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_negXM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normSubnormalF32Sig.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normSubnormalF32Sig.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normSubnormalF64Sig.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normSubnormalF64Sig.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_roundMToUI64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_roundMToUI64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_roundPackToF32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_roundPackToF32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_roundPackToF64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_roundPackToF64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftLeftM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftLeftM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftRightJam32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftRightJam32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftRightJam64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftRightJam64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shiftRightJamM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shiftRightJamM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftLeftM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftLeftM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftRightM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftRightM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftRightJam64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftRightJam64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_shortShiftRightJamM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_shortShiftRightJamM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_subM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_subM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_subMagsF32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_subMagsF32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_subMagsF64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_subMagsF64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(ui64_to_f64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(ui64_to_f64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_propagateNaNF32UI.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_propagateNaNF32UI.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_propagateNaNF64UI.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_propagateNaNF64UI.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_addM.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_addM.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecip_1Ks.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecip_1Ks.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_approxRecipSqrt_1Ks.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_approxRecipSqrt_1Ks.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_countLeadingZeros32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_countLeadingZeros32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_countLeadingZeros64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_countLeadingZeros64.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_countLeadingZeros8.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_countLeadingZeros8.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normRoundPackToF32.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normRoundPackToF32.o) /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: ./libsoftfloat.a(s_normRoundPackToF64.o): can't link double-float modules with soft-float modules /opt/riscv/lib/gcc/riscv64-unknown-elf/11.1.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file ./libsoftfloat.a(s_normRoundPackToF64.o) collect2: error: ld returned 1 exit status make: *** [Makefile:336:pk]
I don't know how to solve. And It doesn't seem to be riscv-unkown-elf-gcc problcdem because I use it to complie my hello.c and succeed. Could someone help me, Thank you