Re: make olddefconfig cmd failing
On Apr 21, 2018 7:11 AM, Sumit Kumar <sumit686215@gmail.com> wrote:
Hi,
I was following instructions given on this web page: https://kernelnewbies.org/OutreachyfirstpatchSetup
I get errors when I execute make olddefconfig cmd:
sumitsum@sumit-personal:~/Documents/linux_kernel/git/kernels/staging$ make olddefconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c /bin/sh: 1: bison: not found
You need to install bison. Make sure to install all other build dependencies as well (there's a list in the kernel docs).
scripts/Makefile.lib:210: recipe for target 'scripts/kconfig/zconf.tab.c' failed make[1]: *** [scripts/kconfig/zconf.tab.c] Error 127 Makefile:525: recipe for target 'olddefconfig' failed make: *** [olddefconfig] Error 2
Regards, Alex
Hi Alex, Thanks a lot for the quick response. I installed flex and bison. Now the errors have gone away but there are still some warnings: sumitsum@sumit-personal:~/Documents/linux_kernel/git/kernels/staging$ make olddefconfig YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --olddefconfig Kconfig # # using defaults found in /boot/config-4.13.0-37-generic # /boot/config-4.13.0-37-generic:1125:warning: symbol value 'm' invalid for NF_TABLES_INET /boot/config-4.13.0-37-generic:1126:warning: symbol value 'm' invalid for NF_TABLES_NETDEV /boot/config-4.13.0-37-generic:1308:warning: symbol value 'm' invalid for NF_TABLES_IPV4 /boot/config-4.13.0-37-generic:1313:warning: symbol value 'm' invalid for NF_TABLES_ARP /boot/config-4.13.0-37-generic:1355:warning: symbol value 'm' invalid for NF_TABLES_IPV6 /boot/config-4.13.0-37-generic:1393:warning: symbol value 'm' invalid for NF_TABLES_BRIDGE /boot/config-4.13.0-37-generic:3986:warning: symbol value 'm' invalid for HW_RANDOM_TPM /boot/config-4.13.0-37-generic:4760:warning: symbol value 'm' invalid for INTEL_SOC_PMIC_CHTWC /boot/config-4.13.0-37-generic:4976:warning: symbol value 'm' invalid for LIRC /boot/config-4.13.0-37-generic:7712:warning: symbol value 'm' invalid for HWSPINLOCK # # configuration written to .config # -- Thanks and Regards, Sumit On Saturday 21 April 2018 05:18 PM, Alex Arvelaez wrote:
On Apr 21, 2018 7:11 AM, Sumit Kumar <sumit686215@gmail.com> wrote:
Hi,
I was following instructions given on this web page:
https://kernelnewbies.org/OutreachyfirstpatchSetup
I get errors when I execute make olddefconfig cmd:
sumitsum@sumit-personal:~/Documents/linux_kernel/git/kernels/staging$ make olddefconfig
HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c /bin/sh: 1: bison: not found
You need to install bison. Make sure to install all other build dependencies as well (there's a list in the kernel docs).
scripts/Makefile.lib:210: recipe for target 'scripts/kconfig/zconf.tab.c' failed make[1]: *** [scripts/kconfig/zconf.tab.c] Error 127 Makefile:525: recipe for target 'olddefconfig' failed make: *** [olddefconfig] Error 2
Regards,
Alex
On Sun, Apr 22, 2018 at 11:25:13PM +0530, Sumit Kumar wrote:
Hi Alex,
Thanks a lot for the quick response.
I installed flex and bison. Now the errors have gone away but there are still some warnings:
sumitsum@sumit-personal:~/Documents/linux_kernel/git/kernels/staging$ make olddefconfig YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --olddefconfig Kconfig # # using defaults found in /boot/config-4.13.0-37-generic # /boot/config-4.13.0-37-generic:1125:warning: symbol value 'm' invalid for NF_TABLES_INET /boot/config-4.13.0-37-generic:1126:warning: symbol value 'm' invalid for NF_TABLES_NETDEV /boot/config-4.13.0-37-generic:1308:warning: symbol value 'm' invalid for NF_TABLES_IPV4 /boot/config-4.13.0-37-generic:1313:warning: symbol value 'm' invalid for NF_TABLES_ARP /boot/config-4.13.0-37-generic:1355:warning: symbol value 'm' invalid for NF_TABLES_IPV6 /boot/config-4.13.0-37-generic:1393:warning: symbol value 'm' invalid for NF_TABLES_BRIDGE /boot/config-4.13.0-37-generic:3986:warning: symbol value 'm' invalid for HW_RANDOM_TPM /boot/config-4.13.0-37-generic:4760:warning: symbol value 'm' invalid for INTEL_SOC_PMIC_CHTWC /boot/config-4.13.0-37-generic:4976:warning: symbol value 'm' invalid for LIRC /boot/config-4.13.0-37-generic:7712:warning: symbol value 'm' invalid for HWSPINLOCK # # configuration written to .config #
That's fine, all should be good now, have you tried to build this configuration? Also, 4.13 is really old and obsolete and insecure, I strongly recommend using 4.16 at the oldest if you are starting something new like this. good luck! greg k-h
Hi Greg, Thanks a lot for the quick response. The kernel seems to build fine with this configuration as well. -- Thanks and Regards, Sumit On Sunday 22 April 2018 11:50 PM, Greg KH wrote:
On Sun, Apr 22, 2018 at 11:25:13PM +0530, Sumit Kumar wrote:
Hi Alex,
Thanks a lot for the quick response.
I installed flex and bison. Now the errors have gone away but there are still some warnings:
sumitsum@sumit-personal:~/Documents/linux_kernel/git/kernels/staging$ make olddefconfig YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --olddefconfig Kconfig # # using defaults found in /boot/config-4.13.0-37-generic # /boot/config-4.13.0-37-generic:1125:warning: symbol value 'm' invalid for NF_TABLES_INET /boot/config-4.13.0-37-generic:1126:warning: symbol value 'm' invalid for NF_TABLES_NETDEV /boot/config-4.13.0-37-generic:1308:warning: symbol value 'm' invalid for NF_TABLES_IPV4 /boot/config-4.13.0-37-generic:1313:warning: symbol value 'm' invalid for NF_TABLES_ARP /boot/config-4.13.0-37-generic:1355:warning: symbol value 'm' invalid for NF_TABLES_IPV6 /boot/config-4.13.0-37-generic:1393:warning: symbol value 'm' invalid for NF_TABLES_BRIDGE /boot/config-4.13.0-37-generic:3986:warning: symbol value 'm' invalid for HW_RANDOM_TPM /boot/config-4.13.0-37-generic:4760:warning: symbol value 'm' invalid for INTEL_SOC_PMIC_CHTWC /boot/config-4.13.0-37-generic:4976:warning: symbol value 'm' invalid for LIRC /boot/config-4.13.0-37-generic:7712:warning: symbol value 'm' invalid for HWSPINLOCK # # configuration written to .config #
That's fine, all should be good now, have you tried to build this configuration?
Also, 4.13 is really old and obsolete and insecure, I strongly recommend using 4.16 at the oldest if you are starting something new like this.
good luck!
greg k-h
participants (3)
-
Alex Arvelaez -
Greg KH -
Sumit Kumar