ultraembedded / biriscv

32-bit Superscalar RISC-V CPU
Apache License 2.0
838 stars 146 forks source link

make failed...error #20

Open crayon7442 opened 1 year ago

crayon7442 commented 1 year ago

'makefile:8: *** riscv32-unknown-elf-objcopy missing from PATH. Stop.'

Hello, an error occurred while trying to run the simulation as follows. How can I solve the above error?

jacklu333333 commented 1 year ago

Hi, I have the same error. You need to replace it with the matching package on your Linux Distribution. Open the makefile under directory biriscv/tb/tb_core_icarus and find the line of OBJCOPY ?= riscv32-unknown-elf-objcopy In my case, I use arch, this it is under the package of riscv32-elf-binutils and the name is riscv32-elf-objcopy.

from

OBJCOPY ?= riscv32-unknown-elf-objcopy

to

riscv32-elf-objcopy

Hope this can resolve your problem.

Best Regards, Jack Lu