qsdk编译,make menuconfig 出问题(一问一答)

本文解决了在使用makemenuconfing配置qsdk项目时遇到的ld返回1退出状态错误,详细介绍了如何通过修改zconf.hash.c和zconf.hash.c_shipped文件中的kconf_id_lookup函数来修复该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

hades@hades:~/repo/qsdk$ make menuconfing 
Collecting package info: done
make[2]: Entering directory '/home/hades/repo/qsdk/scripts/config'
zconf.tab.o: In function `zconflex':
zconf.tab.c:(.text+0x22f5): undefined reference to `kconf_id_lookup'
zconf.tab.c:(.text+0x2447): undefined reference to `kconf_id_lookup'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'conf' failed
make[2]: *** [conf] Error 1
make[2]: Leaving directory '/home/hades/repo/qsdk/scripts/config'
/home/hades/repo/qsdk/include/toplevel.mk:80: recipe for target 'scripts/config/conf' failed
make[1]: *** [scripts/config/conf] Error 2
/home/hades/repo/qsdk/include/toplevel.mk:146: recipe for target 'menuconfing' failed
make: *** [menuconfing] Error 2
hades@hades:~/repo/qsdk$  

 解答:

在scripts/config/
zconf.hash.c
zconf.hash.c_shipped
两个文件中kconf_id_lookup前加入:

#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值