No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.๊ฐ€ ๋œฌ๋‹ค๋ฉด????


์—๋Ÿฌ ๋ฐœ์ƒ

๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค

make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make[1]: *** [arch/x86/Makefile:217: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-46-generic'
make: *** [Makefile:7: default] Error 2

์‰ฝ๊ฒŒ ํ•ด๊ฒฐํ•˜์ž. ${PWD} ๊ฒฝ๋กœ๊ฐ€ ๊ผฌ์—ฌ์„œ ๊ทธ๋Ÿฐ๊ฑฐ๋‹ค


ํ•ด๊ฒฐ!

์ฒซ ๋ฒˆ์งธ ํ„ฐ๋ฏธ๋„์— ๋‹ค์Œ์„ ์ž…๋ ฅํ•ด์ค€๋‹ค
๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•ด์ฃผ์ž

# Before
$(MAKE) -C $(KDIR) M=$(PWD) modules
# After
$(MAKE) -C $(KDIR) M=$(shell pwd) modules

Reference

Leave a comment