OpenHarmony开发者论坛

标题: 提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory” [打印本页]

作者: edice    时间: 2023-11-2 14:46
标题: 提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”
[md]【问题描述】

编译失败,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”。

【运行环境】

硬件:RK3568

ROM版本:OpenHarmony 3.2 Beta5

DevEvoStudio版本:

SDK版本:API 9

[/md]
作者: 羊毛不卷    时间: 2023-11-6 09:45
标题: 提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”

当前用户对riscv编译器路径下的文件访问权限不够。
查询gcc_riscv32所在目录。
  1. which riscv32-unknown-elf-gcc
复制代码

使用chmod命令修改目录权限为755。









欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5