确认问题原因: 这个问题通常出现在使用交叉编译工具链时,目标模拟类型(target emulation)与预期的不匹配。elf64-littleriscv 表示64位的Little Endian RISC-V目标架构,而 elf32-littleriscv 表示32位的Little Endian RISC-V目标架构。错误表明编译环境或参数设置不正确,导致编译工具链尝试生成与目标架构不匹配的二进制...
target emulation elf64-littleriscv' does not match elf32-littleriscv' /opt/riscv/lib/gcc/riscv64-unknown-elf/12.2.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /opt/riscv/lib/gcc/riscv64-unknown-elf/12.2.0/libgcc.a(div.o) /opt/risc...