鍍金池/ 問答/Linux  網(wǎng)絡(luò)安全/ qsdk編譯,make menuconfig 出問題

qsdk編譯,make menuconfig 出問題

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$  

無解,找不出問題?。?/p>

回答
編輯回答
好難瘦

在scripts/config/
zconf.hash.c
zconf.hash.c_shipped
兩個(gè)文件中kconf_id_lookup前加入:

#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif

圖片描述

2018年8月19日 08:52