当前位置:网站首页>Solution: riscv nucleus elf gcc: command not found/ Makefile:78: recipe for target ‘rv32ui-p-simple‘ faile

Solution: riscv nucleus elf gcc: command not found/ Makefile:78: recipe for target ‘rv32ui-p-simple‘ faile

2022-06-09 06:36:00 Jie_ MSD

solve :riscv-nuclei-elf-gcc: Command not found ../Makefile:78: recipe for target 'rv32ui-p-simple' failed make: *** [rv32ui-p-simple] Error 127


…/Makefile:78: recipe for target ‘rv32ui-p-simple’ failed make: *** [rv32ui-p-simple] Error 127)

stay linux Install Hummingbird E203 The compiler of gcc Wrong time

[email protected]:~/e203_hbirdv2/riscv-tools/riscv-tests/isa$ source regen.sh
make: Entering directory ‘/home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/generated’
/home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/…/…/prebuilt_tools/prefix/bin/riscv-nuclei-elf-gcc -march=rv32imafdc -mabi=ilp32 -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I…//…/env/p -I…//macros/scalar -T…//…/env/p/link.ld …/rv32ui/simple.S -o rv32ui-p-simple
make: /home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/…/…/prebuilt_tools/prefix/bin/riscv-nuclei-elf-gcc: Command not found
…/Makefile:78: recipe for target ‘rv32ui-p-simple’ failed
make: *** [rv32ui-p-simple] Error 127
make: Leaving directory ‘/home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/generated’
 Insert picture description here

Solution

https://blog.csdn.net/liudehuadelianxi/article/details/106873601
According to the report ( Look at... In contrast )
make: /home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/…/…/prebuilt_tools/prefix/bin/riscv-nuclei-elf-gcc: Command not found
Can't find riscv-nuclei-elf-gcc The location of
Find here :
find / -name riscv-nuclei-elf-gcc

After finding it RISCV_PREFIX, This parameter , Repositioning gcc-riscv Tool chain
sudo nano Makefile
change Makefile The first 32 Yes
 Insert picture description here
linux There are two points in the instruction “…” Represents a higher level , Count it .

result

 Insert picture description here
It's a success !!

原网站

版权声明
本文为[Jie_ MSD]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021424519655.html