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
board/board.c: In function 'primary_cpu_entry':
board/board.c:58:5: warning: implicit declaration of function 'rt_assert_set_hook'; did you mean 'rt_free_sethook'? [-Wimplicit-function-declaration]
58 | rt_assert_set_hook(__rt_assert_handler);
| ^~~~~~~~~~~~~~~~~~
| rt_free_sethook
......
LINK rtthread.elf
/opt/Xuantie-900-gcc-elf-newlib-x86_64-V2.8.1/bin/../lib/gcc/riscv64-unknown-elf/10.4.0/../../../../riscv64-unknown-elf/bin/ld: build/board/board.o: in function `primary_cpu_entry':
/home/u/ws/duo/rt-thread/bsp/cvitek/cv18xx_risc-v/board/board.c:58: undefined reference to `rt_assert_set_hook'
Memory region Used Size Region Size %age Used
SRAM: 548808 B 32 MB 1.64%
collect2: error: ld returned 1 exit status
scons: *** [rtthread.elf] Error 1
scons: building terminated because of errors.
直接 clone 下来的版本,进入
bsp/cvitek/cv18xx_risc-v/
后运行 sconsbuild log output:
但是如果运行过
scons --menuconifg
保存后再编译就 ok初步原因分析,默认的 .config 文件中缺少
RT_DEBUGING_ASSERT
的定义导致告警和链接失败。The text was updated successfully, but these errors were encountered: