掌機 - GP2X Wiz - 解決lkc_defs.h: No such file or directory問題



參考資訊:
https://lists.kernelnewbies.org/pipermail/kernelnewbies/2011-July/002686.html

問題如下:

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:215:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
  int type;
      ^~~~
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:287:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
  int type;
      ^~~~
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:87:
scripts/kconfig/lkc.h:26:10: fatal error: lkc_defs.h: No such file or directory
 #include "lkc_defs.h"
          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:134: scripts/kconfig/zconf.tab.o] Error 1
make: *** [Makefile:442: pollux_wiz_defconfig] Error 2

解法如下:

$ make mrproper