Processing of No rule to make... ipt_ecn.c in linux kernel compilation

created at 09-12-2021 views: 4

Problem phenomenon

The following error occurred when compiling the kernel:

make[3]: *** No rule to make target 'net/ipv4/netfilter/ipt_ecn.c', needed by 'net/ipv4/netfilter/ipt_ecn.o'
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

Cause Analysis

The main reason is that this linux kernel code is decompressed under Windows (you also need a copy for easy reference on Windows), but there are some files (such as ipt_ecn.c, etc.) in both upper and lower case. When decompressing on Windows Because they are not case-sensitive, they overwrite each other, resulting in missing files.


Just decompress your source code again and compile it. When decompressing under Windows, you will be prompted whether the same files need to be processed. Select No for all.

created at:09-12-2021
edited at: 09-12-2021: