Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: 源码中选择helloworld_demo编译报错 #2014

Open
woshi520laoxie opened this issue Feb 29, 2024 · 2 comments
Open

[Bug Report]: 源码中选择helloworld_demo编译报错 #2014

woshi520laoxie opened this issue Feb 29, 2024 · 2 comments
Labels

Comments

@woshi520laoxie
Copy link

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

操作方式:
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

注解:由于异常提示不详细,仅仅提示失败,但是没有告知失败原因。不好解决问题
@woshi520laoxie
Copy link
Author

使用清理也会提示错误

正在执行任务: aos make clean
......
Removed out\select\select\select.o
scons: done cleaning targets.
/usr/bin/bash: -c: line 2: syntax error: unexpected end of file
make: *** [clean] Error 2

  • 终端将被任务重用,按任意键关闭。

@woshi520laoxie
Copy link
Author

根据描述

交叉编译器是安装到 C:\Users\56337.aliot\arm-ali-aoseabi\main\bin 下面

理论上来说,有了交叉编译器,有了工程,工程是正常的,应该可以编译通过才对

交叉编译工具是

toolchain is C:\Users\56337.aliot\arm-ali-aoseabi\main\bin\arm-ali-aoseabi

Haas百事通,一直提示网络错误,我建议可以留一个章节,里面放常用问题的解决办法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant