qsdk编译,make menuconfig 出问题

原文链接:https://segmentfault.com/q/1010000014899536

qsdk编译,make menuconfig 出问题

发布于 2018-05-17
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

 

 

 
iChenwin

编译Openwrt时也碰到同样问题,此方法有效,谢谢?

回复2019-08-27

posted on 2022-05-16 09:38  sudochen  阅读(344)  评论(0)    收藏  举报

导航