You are not logged in.
kernel/irq/.affinity.o.cmd:1: *** missing separator. Stop.
make[2]: *** [scripts/Makefile.build:573: kernel/irq] Error 2
make[1]: *** [Makefile:1029: kernel] Error 2
make: *** [Makefile:994: vmlinux_prereq] Error 2
Anyone any hints?
Offline
This is a broken makefile (usually spaces instead of tabs) and there's a gazillion answers to this on stackoverflow, but why that makefile is broken is impossible to say as you provided zero context on the failing build. (What, patches, how, contextual make output)
Online
@seth, thanks for quick reply. Zero context is because I didn't know what I should provide. The error came fresh compilation of kernel 4.14.8.
kernel/irq/.affinity.o.cmd is probably auto-generated (attached here: https://pastebin.com/raw/sUy5QS7Y)
Actually I searched over stackoverflow, but i didn't believe it was due to 'usually spaces instead of tabs', because other *.o.cmd files also had spaces instead of tabs but they actually worked. Since the error was in first line, probably it was caused by the utf-8 BOM characters at the beginning of the makefile. I just didn't know why this happened or where was the control?
Last edited by enihcam (2017-12-26 02:21:39)
Offline
rather look at scripts/Makefile.build
"fresh compilation of kernel 4.14.8" how? AUR? re-using a build cache? Did you apply any patches?
Seems odd to me that the vanilla kernel fails to compile with a broken makefile.
Online
rather look at scripts/Makefile.build
"fresh compilation of kernel 4.14.8" how? AUR? re-using a build cache? Did you apply any patches?
Seems odd to me that the vanilla kernel fails to compile with a broken makefile.
Alright, it was linux-ck, but my another machine compiled totally fine. No i didn't use ccache.
I went through the patches used by https://aur.archlinux.org/packages/linux-ck, but i didn't find any related changes.
Offline
but my another machine compiled totally fine
Same make & gcc versions?
Same kernel config?
Did you check the section around scripts/Makefile.build:573 ?
Online
Please run makepkg -C for the package and post the complete output probably to a pastebin if the failure is not early in the build.
Offline
Thanks all for help. I have re-installed the system (changed from xfs to ext4, although i don't know if this is the root cause) and everything is back to normal now.
Offline