Hi, Am 22.07.2017 um 13:23 schrieb Andreas Färber:
I'm facing an error trying to locally build a custom kernel module:
This issue is still around at -rc7... Any ideas? Regards, Andreas
make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/lora/built-in.o CC [M] /home/andreas/lora/af_lora.o LD [M] /home/andreas/lora/lora.o CC [M] /home/andreas/lora/dev.o LD [M] /home/andreas/lora/lora-dev.o CC [M] /home/andreas/lora/sx1276.o CC [M] /home/andreas/lora/rn2483.o Building modules, stage 2. MODPOST 4 modules CC /home/andreas/lora/lora-dev.mod.o LD [M] /home/andreas/lora/lora-dev.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/lora/lora-dev.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2
If I pass KDIR=/lib/modules/4.12.*/build it builds okay.
To reproduce: git clone https://github.com/afaerber/lora-modules.git cd lora-modules make
It's not specific to that module of mine:
make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/netx-module/built-in.o CC [M] /home/andreas/netx-module/netx.o Building modules, stage 2. MODPOST 1 modules CC /home/andreas/netx-module/netx.mod.o LD [M] /home/andreas/netx-module/netx.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/netx-module/netx.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2
git clone https://github.com/afaerber/netx-module.git cd netx-module make
On x86_64 (Leap host) lora-modules.git builds okay. armv7hl 4.13-rc1 packages haven't finished building yet for comparison.
Any ideas what's going wrong here? Our config/arm64/default Kconfig? Our kernel[-default]-devel packaging? Something in the upstream kernel?
Thanks, Andreas
-- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org