alibaba / alibaba/AliOS-Things
[Bug Report]: 源码中选择helloworld_demo编译报错
- Dominant language
- C
- Stars
- 4.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
### Contact Details
563376881@qq.com
### What happened?
A bug happened!
运行环境:vscode开发环境
固件版本:
### Version
master (Default)
### What soultions are you seeing the problem on?
helloworld_demo
### Relevant log output
```shell
操作方式:
1、使用vscode打开alios-things,选择项目helloworld_demo
2、选择√号编译
3、提示如下异常
scons: *** [aos_sdk\lib\libuservice.a] Error 1
CC out\lwip\lwip2.0.0\core\tcp_in.o
scons: building terminated because of errors.
make: *** [all] Error 2
Build takes 0 Minutes 23 Seconds.
终端将被任务重用,按任意键关闭。
4、下面是更详细的一些信息(由于信息比较多,只截取了部分-使用管理员打开VSCODE也是这样)
change dir to G:\Item\Code\espressif_ESP32\AliOS-Things\solutions\helloworld_demo.
save aos make params !!!
get current path
G:\Item\Code\espressif_ESP32\AliOS-Things\solutions\helloworld_demo\package.yaml
helloworld_demo
3
configuration haas100 written to G:\Item\Code\espressif_ESP32\AliOS-Things.config.
Build Solution by haas100
scons: Reading SConscript files ...
build toolchain checked = arm-ali-aoseabi
CC out\lwip\lwip2.0.0\core\init.o
C:\Users\56337.aliot\arm-ali-aoseabi\main\bin\arm-ali-aoseabi-ranlib.exe: unable to rename 'aos_sdk\lib\libuservice.a'; reason: Permission denied
注解:由于异常提示不详细,仅仅提示失败,但是没有告知失败原因。不好解决问题
```
Contributor guide
Research direction
Start by reproducing the helloworld_demo build in VS Code for haas100 and inspect the failure around aos_sdk\lib\libuservice.a, the arm-ali-aoseabi toolchain, and out\lwip\lwip2.0.0\core\tcp_in.o. Check the complete SCons output for the reported permission-denied rename, then determine whether the build can complete and whether the failure is explained clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, vscode
- Domain
- build-system, embedded-iot, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100