Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
BSP移植
沁恒CH32V
编译报错
Studio导入 rt-thread v5.0.0 沁恒BSP编译失败问题
发布于 2023-09-04 23:51:47 浏览:675
订阅该版
基于Rt-thread v5.0.0 版本,导入沁恒BSP ch32v208 board BSP proj ,编译报以下错误: ``` 23:29:01 **** Build of configuration Debug for project rt-thread_ch32v20x_v5.0.0 **** make -j8 all riscv-none-embed-gcc "../rt-thread/src/clock.c" riscv-none-embed-gcc "../rt-thread/src/components.c" riscv-none-embed-gcc "../rt-thread/src/device.c" riscv-none-embed-gcc "../rt-thread/src/idle.c" riscv-none-embed-gcc "../rt-thread/src/ipc.c" riscv-none-embed-gcc "../rt-thread/src/irq.c" riscv-none-embed-gcc "../rt-thread/src/kservice.c" riscv-none-embed-gcc "../rt-thread/src/mem.c" riscv-none-embed-gcc "../rt-thread/src/object.c" riscv-none-embed-gcc "../rt-thread/src/scheduler_up.c" riscv-none-embed-gcc "../rt-thread/src/thread.c" riscv-none-embed-gcc "../rt-thread/src/timer.c" riscv-none-embed-gcc "../rt-thread/libcpu/risc-v/common/atomic_riscv.c" riscv-none-embed-gcc "../rt-thread/libcpu/risc-v/common/context_gcc.S" riscv-none-embed-gcc "../rt-thread/libcpu/risc-v/common/cpuport.c" riscv-none-embed-gcc "../rt-thread/libcpu/risc-v/common/interrupt_gcc.S" riscv-none-embed-gcc "../rt-thread/libcpu/risc-v/common/trap_common.c" riscv-none-embed-gcc "../rt-thread/components/libc/compilers/common/cctype.c" riscv-none-embed-gcc "../rt-thread/components/libc/compilers/common/cstdio.c" riscv-none-embed-gcc "../rt-thread/components/libc/compilers/common/cstdlib.c" riscv-none-embed-gcc "../rt-thread/components/libc/compilers/common/cstring.c" riscv-none-embed-gcc "../rt-thread/components/libc/compilers/common/ctime.c" riscv-none-embed-gcc "../rt-thread/components/libc/compilers/common/cwchar.c" riscv-none-embed-gcc "../rt-thread/components/finsh/cmd.c" ../rt-thread/libcpu/risc-v/common/trap_common.c: In function 'rt_hw_interrupt_install': ../rt-thread/libcpu/risc-v/common/trap_common.c:51:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *user_name = name; ^~~~ ../rt-thread/components/libc/compilers/common/cstdlib.c: In function 'ltoa': .**./rt-thread/components/libc/compilers/common/cstdlib.c:62:19: error: 'NULL' undeclared (first use in this function)** if (string == NULL) ^~~~ ../rt-thread/components/libc/compilers/common/cstdlib.c:62:19: note: 'NULL' is defined in header '
'; did you forget to '#include
'? ../rt-thread/components/libc/compilers/common/cstdlib.c:32:1: +#include
{ ../rt-thread/components/libc/compilers/common/cstdlib.c:62:19: if (string == NULL) ^~~~ ../rt-thread/components/libc/compilers/common/cstdlib.c:62:19: note: each undeclared i**dentifier is reported only once for each function it appears in ../rt-thread/components/libc/compilers/common/cstdlib.c: In function 'ultoa': ../rt-thread/components/libc/compilers/common/cstdlib.c:117:19: error: 'NULL' undeclared (first use in this function) if (string == NULL)** ^~~~ ../rt-thread/components/libc/compilers/common/cstdlib.c:117:19: note: 'NULL' is defined in header '
'; did you forget to '#include
'? make: *** [rt-thread/components/libc/compilers/common/subdir.mk:33: rt-thread/components/libc/compilers/common/cstdlib.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from D:\RT-ThreadStudio\workspace\rt-thread_ch32v20x_v5.0.0\rt-thread\components\libc\compilers\common\include/sys/time.h:18, from D:\RT-ThreadStudio\workspace\rt-thread_ch32v20x_v5.0.0\rt-thread\components\libc\compilers\common\include/sys/select.h:17, from d:\rt-threadstudio\repo\extract\toolchain_support_packages\wch\risc-v-gcc-wch\8.2.0\riscv-none-embed\include\sys\types.h:68, from d:\rt-threadstudio\repo\extract\toolchain_support_packages\wch\risc-v-gcc-wch\8.2.0\riscv-none-embed\include\stdio.h:61, from D:\RT-ThreadStudio\workspace\rt-thread_ch32v20x_v5.0.0\rt-thread\components\libc\compilers\common\include/posix/stdio.h:18, from ../rt-thread/components/libc/compilers/common/cstdio.c:11: d:\rt-threadstudio\repo\extract\toolchain_support_packages\wch\risc-v-gcc-wch\8.2.0\riscv-none-embed\include\time.h:56:1: error: unknown type name 'clock_t'; did you mean '_flock_t'? clock_t clock (void); ^~~~~~~ _flock_t In file included from D:\RT-ThreadStudio\workspace\rt-thread_ch32v20x_v5.0.0\rt-thread\components\libc\compilers\common\include/sys/select.h:17, from d:\rt-threadstudio\repo\extract\toolchain_support_packages\wch\risc-v-gcc-wch\8.2.0\riscv-none-embed\include\sys\types.h:68, from d:\rt-threadstudio\repo\extract\toolchain_support_packages\wch\risc-v-gcc-wch\8.2.0\riscv-none-embed\include\stdio.h:61, from D:\RT-ThreadStudio\workspace\rt-thread_ch32v20x_v5.0.0\rt-thread\components\libc\compilers\common\include/posix/stdio.h:18, from ../rt-thread/components/libc/compilers/common/cstdio.c:11: D:\RT-ThreadStudio\workspace\rt-thread_ch32v20x_v5.0.0\rt-thread\components\libc\compilers\common\include/sys/time.h:56:5: error: unknown type name 'suseconds_t' suseconds_t tv_usec; /* and microseconds */ ^~~~~~~~~~~ make: *** [rt-thread/components/libc/compilers/common/subdir.mk:33: rt-thread/components/libc/compilers/common/cstdio.o] Error 1 "make -j8 all" terminated with exit code 2. Build might be incomplete. 23:29:04 Build Failed. 7 errors, 1 warnings. (took 3s.230ms) ```
查看更多
2
个回答
默认排序
按发布时间排序
RT-Thread小师弟
2023-09-05
微信:rtthread2020
建议相同的问题,直接在原来的问题上面更新就行了哈! https://club.rt-thread.org/ask/question/6d61861f12cef659.html
道友
2023-09-05
这家伙很懒,什么也没写!
个人建议,一个个问题可以尝试一个个解决。 比如: ```c error: 'NULL' undeclared (first use in this function)** if (string == NULL) ``` 这个错误信息表示在"compilers/common/cstdlib.c"文件中找不到"NULL"的定义。
撰写答案
登录
注册新账号
关注者
0
被浏览
675
关于作者
Bakewell
这家伙很懒,什么也没写!
提问
14
回答
7
被采纳
1
关注TA
发私信
相关问题
1
在 studio 中添加emwin,编译报错问题
2
studio创建芯片项目添加LWIP编译报错?
3
BSP首次使用编译不过
4
DHT软件包下载后编译错误
5
1.1.3版本的RTstudio导入1.1.4下面建立的工程后设置芯片编译就报错
6
STM32F103使用EMU添加PWM组件后出现编译报错
7
求助,关于串口配置编译报错的问题
8
Azure SDK for C移植中遇到的编译问题
9
Studio 报错 unknown 'HAL_StatusTypeDef'
10
studio建工程,并使能AT组件和Air720出现的一些问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
简单两步配置RTT源码阅读环境 vsc+clangd
2
恩智浦[FRDM-MCXN947]初探 之 ADC与DAC
3
LVGL使用字库IC芯片显示中文
4
基于STM32H750和Rt-Thread的CANFD通信实现的记录(一)
5
freemodbus主机在freertos的适配,参考rtthread例程
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
SFUD
msh
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1443
个答案
289
次被采纳
张世争
805
个答案
174
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
出出啊
1
篇文章
4
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
1
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部