I've successfully compiled linux source and built into .deb
few months ago. The process roughly like:
- copy existed config file into current folder (such as: cp /boot/config-xxxxx-generic .config)
- make menuconfig
- make -j4 deb-pkg LOCALVERSION=-custom
.... then it takes long time to compile
Recently, I fail at step 3. The error message shows:
make[2]: *** [debian/rules:7: build-arch] Error2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 2
I've found some similar issues and indicating that problem is at config file. I also tried generate config file by make oldconfig
but still failed.
Anyone know how to solve it?
PS1. In my fuzzy memory, several months ago, I need to disable something in .config
to build it successfully. I'm not sure what I exactly mask and is this associated with the problem.
PS2. config file I copied is pretty close to 5.13
Thanks in advance!
make -j4 olddefconfig bindeb-pkg LOCALVERSION=-custom
. see also here. – Doug Smythies Aug 23 '21 at 14:09make olddefconfig
, I get four warning messages such as symbol value 'm' invalid for xxxx <- did this matter? – Steven Aug 24 '21 at 02:06make clean
before a new compile. – Doug Smythies Aug 24 '21 at 03:51