RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.58k stars 5.03k forks source link

[新手任务][BSP] 编译错误 #7764

Open supperthomas opened 1 year ago

supperthomas commented 1 year ago

目录下面执行命令scons 编译错误

❌ build nuvoton/numaker-hmi-ma35d1 failed. ❌ build nuvoton/numaker-m467hj failed. ❌ build nuvoton/numaker-m2354 failed. ❌ build nuvoton/ma35-rtp failed. ❌ build nuvoton/numaker-pfm-m487 failed. ❌ build nuvoton/nk-rtu980 failed. ❌ build nuvoton/nk-980iot failed. ❌ build nuvoton/numaker-m032ki failed. ❌ build nuvoton/nk-n9h30 failed. ❌ build nuvoton/numaker-iot-ma35d1 failed. ❌ build nuvoton/numaker-iot-m467 failed. ❌ build nuvoton/numaker-iot-m487 failed. ❌ build ft2004 failed. ❌ build yichip/yc3121-pos failed. ❌ build hc32l136 failed. ❌ build airm2m/air105 failed. ❌ build mm32l07x failed. ❌ build w60x failed. ❌ build apm32/apm32f030r8-miniboard failed. ❌ build apm32/apm32f051r8-evalboard failed. ❌ build nxp/lpc/lpc54114-lite failed. ❌ build nxp/lpc/lpc5410x failed. ❌ build nxp/lpc/lpc54608-LPCXpresso failed. ❌ build nxp/imx/imx6ull-smart failed. ❌ build raspberry-pi/raspi2 failed. ❌ build essemi/es32f0654 failed. ❌ build essemi/es32f365x failed. ❌ build ti/c28x/tms320f28379d failed. ❌ build wch/arm/ch579m failed. ❌ build microchip/saml10 failed. ❌ build ht32/ht32f52352 failed. ❌ build ht32/ht32f12366 failed. ❌ build fm33lc026 failed. ❌ build amebaz failed.

参考log https://github.com/supperthomas/rt-thread/actions/runs/10545116916/job/29214908468

https://productionresultssa6.blob.core.windows.net/actions-results/98d6efa6-ed8b-4a69-b1b2-4048c56890e3/workflow-job-run-ca395085-040a-526b-2ce8-bdc85f692774/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-08-25T09%3A26%3A30Z&sig=10qMyQeoSUj8j2tAU7N92j1oBOYqwfajJDbicoQs0Tk%3D&ske=2024-08-25T17%3A40%3A02Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2024-08-25T05%3A40%3A02Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2024-05-04&sp=r&spr=https&sr=b&st=2024-08-25T09%3A16%3A25Z&sv=2024-05-04

supperthomas commented 1 year ago

https://club.rt-thread.org/ask/article/8e019d0e64e1ab31.html

supperthomas commented 1 year ago

参考action 的编译日志: https://github.com/RT-Thread/rt-thread/actions/runs/5773375752

andy27182 commented 12 months ago

有一个问题不知道在这个issue下讨论是否合适,我刚开始使用rt-thread,并使用ubuntu系统构建开发环境,当在目录rt-thread/bsp/qemu-vexpress-a9中使用scons --menuconfig进行配置时,提示错误:

AttributeError: 'str' object has no attribute 'load_config':
  File "/home/XXXX/workspace/rt-thread/bsp/qemu-vexpress-a9/SConstruct", line 29:
    objs = PrepareBuilding(env, RTT_ROOT)
  File "/home/XXXX/workspace/rt-thread/bsp/qemu-vexpress-a9/../../tools/building.py", line 316:
    menuconfig(Rtt_Root)
  File "/home/XXXX/.local/lib/python3.8/site-packages/menuconfig.py", line 685:
    _conf_changed = _load_config()
  File "/home/XXXX/.local/lib/python3.8/site-packages/menuconfig.py", line 741:
    print(_kconf.load_config())

是我python的版本有问题吗?我应如何解决此问题?

rt-thread: 2023.11.30拉取的git仓库最新版本 ubuntu:20.04 gcc:EXEC_PATH = '/opt/gcc-arm-none-eabi-9-2020-q2-update/bin' python3:3.8.10(系统环境默认没有python指令,系统只有python3命令)

-------------------已经解决

尽可能使用conda/pip安装scons而不是使用apt-get安装

supperthomas commented 12 months ago

https://github.com/RT-Thread/rt-thread/actions/runs/7077921713/job/19262826362#step:12:215 hpmicro/hpm6750evk hpmicro/hpm6750evkmini microchip/saml10 nuclei/gd32vf103_rvstar

scons: Entering directory `/home/runner/work/rt-thread/rt-thread/bsp/hpmicro/hpm6750evk'
scons: Reading SConscript files ...
AttributeError: module 'rtconfig' has no attribute 'DEVICE':
supperthomas commented 3 months ago

❌ build nuvoton/numaker-hmi-ma35d1 failed. ❌ build nuvoton/numaker-m467hj failed. ❌ build nuvoton/numaker-m2354 failed. ❌ build nuvoton/ma35-rtp failed. ❌ build nuvoton/numaker-pfm-m487 failed. ❌ build nuvoton/nk-rtu980 failed. ❌ build nuvoton/nk-980iot failed. ❌ build nuvoton/numaker-m032ki failed. ❌ build nuvoton/nk-n9h30 failed. ❌ build nuvoton/numaker-iot-ma35d1 failed. ❌ build nuvoton/numaker-iot-m467 failed. ❌ build nuvoton/numaker-iot-m487 failed. ❌ build ft2004 failed. ❌ build yichip/yc3121-pos failed. ❌ build hc32l136 failed. ❌ build airm2m/air105 failed. ❌ build mm32l07x failed. ❌ build w60x failed. ❌ build apm32/apm32f030r8-miniboard failed. ❌ build apm32/apm32f051r8-evalboard failed. ❌ build nxp/lpc/lpc54114-lite failed. ❌ build nxp/lpc/lpc5410x failed. ❌ build nxp/lpc/lpc54608-LPCXpresso failed. ❌ build nxp/imx/imxrt/imxrt1170-nxp-evk/m7 failed. ❌ build nxp/imx/imx6ull-smart failed. ❌ build raspberry-pi/raspi2 failed. ❌ build essemi/es32f0654 failed. ❌ build essemi/es32f365x failed. ❌ build ti/c28x/tms320f28379d failed. ❌ build wch/arm/ch579m failed. ❌ build microchip/saml10 failed. ❌ build ht32/ht32f52352 failed. ❌ build ht32/ht32f12366 failed. ❌ build fm33lc026 failed. ❌ build amebaz failed.

https://github.com/supperthomas/rt-thread/actions/runs/10545116916

supperthomas commented 3 months ago

顺便验证下ci 添加进去看看是否有问题