You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CC build/drivers/board.o
In file included from components/lwp/arch/arm/cortex-a/lwp_arch.h:13,
from drivers/board.c:24:
components/lwp/lwp.h:99:2: error: #error "No compatible lwp set status provided for this libc"
对应 components/lwp/lwp.h:92-100:
#ifdefRT_USING_MUSLLIBC#defineLWP_CREATE_STAT_EXIT(exit_code) ...
#defineLWP_CREATE_STAT_SIGNALED(signo, coredump) ...
...
#else#error "No compatible lwp set status provided for this libc"
#endif
Activity
sexenteen commentedon Nov 1, 2026
在 5.3.1 上按"同时开 rt-smart 和 SMP"复现了一遍,结论是:这不是缺陷,而是缺少 musl 工具链;而且 v5.0.1 那个
mmu_info报错现在也不复现了。1. 现在的报错(比原来清楚)
在
bsp/qemu-vexpress-a9上打开RT_USING_SMART+RT_USING_SMP(RT_CPUS_NR=2)后编译:对应
components/lwp/lwp.h:92-100:即:rt-smart(LWP)要求
RT_USING_MUSLLIBC。2. 为什么这个 BSP 默认编不过
bsp/qemu-vexpress-a9/rtconfig.py:39:默认工具链是 arm-none-eabi(裸机 newlib)(构建日志里也会打印
Newlib version: 4.1.0),而
RT_USING_MUSLLIBC由 musl 工具链(arm-linux-musleabi-)提供 —— 主仓里没有任何 Kconfig 定义它。3. 结论与建议
#error明确拦下了(比 v5.0.1 的mmu_info未声明要友好得多,那个问题已随代码重构消失)。(
RTT_CC_PREFIX=arm-linux-musleabi-)并采用 rt-smart 的内核/用户态构建方式,不是只改 menuconfig 两项就够。RT_USING_SMART加上"依赖 musl libc"的约束,让 menuconfig 阶段就能提示,而不是等到编译。