-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
编译之后display_map_summary失败 #34
Comments
看一下out目录map文件内容,可能是语言等问题查找失败导致。可以提个PR @xzwang001 |
哥们儿,你的问题解决了吗?我也遇到了同样的问题。@xzwang001 |
@notagoodman,还没搞定呢,没有什么头绪 |
@xzwang001 @notagoodman 可以给一下完整的编译log吗,把debug打开,比如 |
@junjiec ,以下信息是我这边打印的log echo Build AOS Now
|
@xzwang001 out/helloworld@linuxhost/binary/helloworld@linuxhost.elf 已经生成了? |
@junjiec @xzwang001 "/usr/bin/python" .//build/scripts/map_parse_gcc.py out/helloworld@linuxhost/binary/helloworld@linuxhost.map > out/helloworld@linuxhost/binary/helloworld@linuxhost_map.csv
|
@junjiec 纠正下,out/helloworld@linuxhost/binary/helloworld@linuxhost.elf已经生成了。map_parse_gcc.py貌似有问题,我没有改过,按照编译的提示,其中第15行如下: |
@notagoodman 最好不要用sudo,把out目录删除,不用sudo编译看看 |
@junjiec 试过,不行。每次编译之前都会手动删除out目录。 |
@notagoodman 是语言设置的问题,设置为中文会有问题,编译前 |
@junjiec 厉害,就是语言设置问题。重新设置了语言后就通过了。 |
@oujunli 同学发现的,map文件里面有中文字符 |
按照例程编译helloworld,结果编译出现错误,二进制文件已经生成,且可以执行。但是编译还是存在错误,具体如下:
Build AOS Now
Traceback (most recent call last):
File ".//build/scripts/map_parse_gcc.py", line 15, in
mem_config_text = re.findall('Memory Configuration\n\nName Origin Length Attributes\n([\s\S]+)\nLinker script and memory map', s)[0]
IndexError: list index out of range
build/aos_target_build.mk:239: recipe for target 'display_map_summary' failed
make[1]: *** [display_map_summary] Error 1
build/Makefile:151: recipe for target 'main_app' failed
The text was updated successfully, but these errors were encountered: