linuxlinux-kernellinux-from-scratch

Lfs 8.4 ch8. 3 : kernel config fail


I am currently following the book Linux From Scratch v8.4, i am at the kernel configuration part, part 8.3, and when i run make defconfig or make menuconfig, i have this error:

... YACC scripts/kconfig/zconf.tab.c
bison: m4 subprocess failed: No such file or directory
make[1]: *** [scripts/Makefile.lib:196: scripts/kconfig/zconf.tab.c] Error 1
make: *** [Makefile:544: defconfig] Error 2 ...

Can anyone could help me how i could resolve this please ? i really really really don't want to start all over again... i followed the book and so far i didn't have any issues. I tryed to rebuild the m4 package and reinstall it but still doesn't work. How do i do to generate this zconf.tab.c ?

Thanks a lot


Solution

  • Problem solved in case someone else run into this issue, my m4 package was being installed only in /usr/bin, creating a symlink to /bin solved the issue.
    ln -s /usr/bin/m4 /bin/m4