第一个demo重编译失败

Viewed 114

一、描述你遇到的问题

hispark无法重编译,不知道是不是一键配置环境的时候到pip install 显示pip not exist

二、你具体做的所有步骤结果截图

三、当前开发板状态全景照片

四、开发板串口所有日志

warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_COMPRESS (defined at middleware/chips/ws63/Kconfig:52) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_AB (defined at middleware/chips/ws63/Kconfig:59) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_REBOOT (defined at middleware/chips/ws63/Kconfig:85) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_WAITFOREVER (defined at middleware/chips/ws63/Kconfig:91) will have no effect, as defaults do not affect choice symbols


python path:  C:\Users\FengYH\AppData\Local\Programs\Python\Python311\python.exe
[ws63][acore] run custom cmd success!
D:\bearpi-pico_h3863\build\script\.\..\..\config.in
d:\bearpi-pico_h3863
Kconfig header saved to 'D:\bearpi-pico_h3863\output\ws63\acore\ws63-flashboot\mconfig.h'
######### Build target:ws63_flashboot failed


warning: the int symbol LFS_PARTITION_ID (defined at middleware/chips/ws63/Kconfig:105) has a non-int default 0x21 (undefined)
warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_COMPRESS (defined at middleware/chips/ws63/Kconfig:52) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_AB (defined at middleware/chips/ws63/Kconfig:59) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_REBOOT (defined at middleware/chips/ws63/Kconfig:85) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_WAITFOREVER (defined at middleware/chips/ws63/Kconfig:91) will have no effect, as defaults do not affect choice symbols


python path:  C:\Users\FengYH\AppData\Local\Programs\Python\Python311\python.exe
[ws63][acore] run custom cmd success!
D:\bearpi-pico_h3863\build\script\.\..\..\config.in
d:\bearpi-pico_h3863
Kconfig header saved to 'D:\bearpi-pico_h3863\output\ws63\acore\ws63-loaderboot\mconfig.h'
######### Build target:ws63_loaderboot failed


warning: the int symbol LFS_PARTITION_ID (defined at middleware/chips/ws63/Kconfig:105) has a non-int default 0x21 (undefined)
warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_COMPRESS (defined at middleware/chips/ws63/Kconfig:52) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_AB (defined at middleware/chips/ws63/Kconfig:59) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_REBOOT (defined at middleware/chips/ws63/Kconfig:85) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_WAITFOREVER (defined at middleware/chips/ws63/Kconfig:91) will have no effect, as defaults do not affect choice symbols


python path:  C:\Users\FengYH\AppData\Local\Programs\Python\Python311\python.exe
flashboot start build .....
['C:\\Users\\FengYH\\AppData\\Local\\Programs\\Python\\Python311\\python.exe', 'build.py', 'ws63-flashboot']
loaderboot start build .....
['C:\\Users\\FengYH\\AppData\\Local\\Programs\\Python\\Python311\\python.exe', 'build.py', 'ws63-loaderboot']
[ws63][acore] run custom cmd success!
D:\bearpi-pico_h3863\build\script\.\..\..\config.in
d:\bearpi-pico_h3863
Kconfig header saved to 'D:\bearpi-pico_h3863\output\ws63\acore\ws63-liteos-app\mconfig.h'
######### Build target:ws63_liteos_app failed
1 Answers

从你提供的日志来看,构建过程中出现了多个警告和错误,导致构建目标 ws63_flashbootws63_loaderbootws63_liteos_app 都失败了。以下是这些问题的详细分析:

1. 关于 defaultchoice 符号上的警告

  • 警告内容
    warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_COMPRESS (defined at middleware/chips/ws63/Kconfig:52) will have no effect, as defaults do not affect choice symbols
    
  • 原因
    在 Kconfig 中,choice 符号用于表示一组互斥的选项。default 语句在 choice 符号上是无效的,因为 choice 符号本身并不直接接受默认值,而是通过选择其中一个选项来间接设置默认值。
  • 解决方法
    你需要检查 middleware/chips/ws63/Kconfig 文件中的 choice 块,并确保每个 choice 块中的选项(config 条目)有正确的 default 值,而不是在 choice 符号上设置 default

2. 关于 LFS_PARTITION_ID 的警告

  • 警告内容
    warning: the int symbol LFS_PARTITION_ID (defined at middleware/chips/ws63/Kconfig:105) has a non-int default 0x21 (undefined)
    
  • 原因
    LFS_PARTITION_ID 被定义为一个整数符号(int),但其默认值 0x21 被解释为未定义的。这可能是由于默认值的格式不正确,或者 Kconfig 解析器无法正确识别该值。
  • 解决方法
    检查 middleware/chips/ws63/Kconfig 文件中 LFS_PARTITION_ID 的定义,确保默认值是一个有效的整数。如果 0x21 是十六进制值,确保它在 Kconfig 中正确表示(例如,使用 0x2133)。

3. 构建失败

  • 错误内容
    ######### Build target:ws63_flashboot failed
    ######### Build target:ws63_loaderboot failed
    ######### Build target:ws63_liteos_app failed
    
  • 原因
    构建失败可能是由于上述 Kconfig 配置问题导致的,也可能是由于其他编译错误或依赖问题。Kconfig 配置问题可能会导致生成的配置文件(如 mconfig.h)不正确,进而影响编译过程。
  • 解决方法
    • 首先,解决 Kconfig 中的警告问题,确保配置正确。
    • 然后,重新运行构建过程,查看是否还有其他错误。
    • 如果构建仍然失败,检查编译日志,找出具体的编译错误,并解决这些错误。

4. 其他建议

  • 检查 Kconfig 文件
    仔细检查 middleware/chips/ws63/Kconfig 文件,确保所有符号的定义和默认值都正确。
  • 清理构建环境
    在修复 Kconfig 问题后,清理构建环境(例如,删除 build 目录或运行 make clean),然后重新构建,以确保所有文件都基于最新的配置生成。
  • 查看详细日志
    如果构建失败,查看详细的编译日志,找出具体的错误信息,并根据错误信息进行修复。

通过解决上述问题,你应该能够成功构建目标 ws63_flashbootws63_loaderbootws63_liteos_app


以上回复来自于AI,要擅长用AI,能解决绝大多数问题