环境 Ubuntu 20.04,
GCC版本12.2.0
/opt/gcc-riscv/riscv-wch-embedded-gcc12-v1.91/bin/riscv-none-elf-gcc --version riscv-none-elf-gcc (xPack GNU RISC-V Embedded GCC x86_64) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
执行编译报错
/opt/gcc-riscv/riscv-wch-embedded-gcc12-v1.91/bin/riscv-none-elf-gcc -march=rv32imac -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mno-save-restore -fmessage-length=0 -fsigned-char -gdwarf-3 -Og -std=gnu99 -Wall -ffunction-sections -fdata-sections -fno-common -I ../../Apps/TimerDemo/src -I ../../Libraries/RVMSIS -I ../../Libraries/StdPeriphDriver/inc -MT ../../Build/Apps/TimerDemo/src/main.o -o ../../Build/Apps/TimerDemo/src/main.o -c ../../Apps/TimerDemo/src/main.c -MMD -MP -MF ../../Build/Apps/TimerDemo/src/main.d riscv-none-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory compilation terminated.
同样的命令用V1.91带的GCC8.2.0编译正常
请问这可能是什么问题?
热门产品 :
CH32V208: 32位无线型RISC-V单片机